diff options
author | Rene Ladan <rene@FreeBSD.org> | 2013-11-09 19:13:27 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2013-11-09 19:13:27 +0000 |
commit | bfc52e710421bd92466b329f6fbb9be930eb4755 (patch) | |
tree | 7436338612f22a81def9ee6c2d2e3826c1504ea4 /emulators/virtualbox-ose-kmod | |
parent | 16a624cb31062d141fd07c5dc3f7794ed7fe74cd (diff) | |
download | freebsd-ports-bfc52e710421bd92466b329f6fbb9be930eb4755.zip |
Convert to USES=kmod, which removes duplicated code and ensures that all
required steps are followed.
There are no user-visible changes. The exception is multimedia/ptx-kmod,
which now installs the kernel module into /boot/modules instead of
${PREFIX}/libexec/${PORTNAME}, this was something USES=kmod cannot handle.
PR: ports/183625
Submitted by: myself
Approved by: portmgr (bdrewery)
Exp-run by: bdrewery
Diffstat (limited to 'emulators/virtualbox-ose-kmod')
-rw-r--r-- | emulators/virtualbox-ose-kmod/Makefile | 15 | ||||
-rw-r--r-- | emulators/virtualbox-ose-kmod/pkg-plist | 2 |
2 files changed, 3 insertions, 14 deletions
diff --git a/emulators/virtualbox-ose-kmod/Makefile b/emulators/virtualbox-ose-kmod/Makefile index 64f5e4c43a09..17c1cb3a996e 100644 --- a/emulators/virtualbox-ose-kmod/Makefile +++ b/emulators/virtualbox-ose-kmod/Makefile @@ -3,7 +3,7 @@ PORTNAME= virtualbox-ose DISTVERSION= 4.2.18 -CATEGORIES= emulators kld +CATEGORIES= emulators MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \ http://tmp.chruetertee.ch/ \ http://disasterarea.chruetertee.ch/ @@ -41,12 +41,9 @@ DEBUG_DESC= Debug symbols, additional logs and assertions VIMAGE_DESC= VIMAGE virtual networking support NO_STAGE= yes -.include <bsd.port.options.mk> - -PLIST_SUB+= KMODDIR=${KMODDIR:C,^/,,} -KMODDIR= /boot/modules -SRC_BASE?= /usr/src +USES= kmod +.include <bsd.port.options.mk> VBOX_BIN= ${WRKSRC}/out/${KMK_ARCH}/${KMK_BUILDTYPE}/bin/src @@ -72,10 +69,6 @@ KMK_ARCH= freebsd.x86 KMK_ARCH= freebsd.${ARCH} .endif -.if !exists(${SRC_BASE}/sys/kern/bus_if.m) -IGNORE= requires kernel sources -.endif - .include <bsd.port.pre.mk> .if ${OSVERSION} < 802000 @@ -108,7 +101,6 @@ do-build: cd ${VBOX_BIN} && make ${MAKE_FLAGS} do-install: - ${MKDIR} ${KMODDIR} ${INSTALL_KLD} ${VBOX_BIN}/vboxdrv/vboxdrv.ko ${KMODDIR} ${INSTALL_KLD} ${VBOX_BIN}/vboxnetadp/vboxnetadp.ko ${KMODDIR} ${INSTALL_KLD} ${VBOX_BIN}/vboxnetflt/vboxnetflt.ko ${KMODDIR} @@ -117,6 +109,5 @@ do-install: ${INSTALL_KLD} ${VBOX_BIN}/vboxnetadp/vboxnetadp.ko.symbols ${KMODDIR} ${INSTALL_KLD} ${VBOX_BIN}/vboxnetflt/vboxnetflt.ko.symbols ${KMODDIR} .endif - @/usr/sbin/kldxref ${KMODDIR} .include <bsd.port.post.mk> diff --git a/emulators/virtualbox-ose-kmod/pkg-plist b/emulators/virtualbox-ose-kmod/pkg-plist index 83a55bedda50..06b3e6744ea6 100644 --- a/emulators/virtualbox-ose-kmod/pkg-plist +++ b/emulators/virtualbox-ose-kmod/pkg-plist @@ -6,5 +6,3 @@ %%WITH_DEBUG%%%%KMODDIR%%/vboxnetadp.ko.symbols %%KMODDIR%%/vboxnetflt.ko %%WITH_DEBUG%%%%KMODDIR%%/vboxnetflt.ko.symbols -@exec /usr/sbin/kldxref /%%KMODDIR%% -@unexec /usr/sbin/kldxref /%%KMODDIR%% |