Date: Tue, 7 Oct 2014 20:27:29 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r370396 - head/emulators/hyperv-is Message-ID: <201410072027.s97KRTS4096429@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Tue Oct 7 20:27:29 2014 New Revision: 370396 URL: https://svnweb.freebsd.org/changeset/ports/370396 QAT: https://qat.redports.org/buildarchive/r370396/ Log: emulators/hyperv-is: Use kmod, support non-default prefix USES= kmod correctly installs the kernel modules at /boot/modules instead of /boot/kernel. Also use the post-install target to support prefixes other than /usr/local. Suggested by: bapt and bdrewery Modified: head/emulators/hyperv-is/Makefile head/emulators/hyperv-is/pkg-plist Modified: head/emulators/hyperv-is/Makefile ============================================================================== --- head/emulators/hyperv-is/Makefile Tue Oct 7 20:14:21 2014 (r370395) +++ head/emulators/hyperv-is/Makefile Tue Oct 7 20:27:29 2014 (r370396) @@ -2,8 +2,8 @@ PORTNAME= hyperv-is PORTVERSION= 1.1 -PORTREVISION= 1 -CATEGORIES= emulators kld +PORTREVISION= 2 +CATEGORIES= emulators MASTER_SITES= https://github.com/${MSLINK}/ DISTNAME= ${DNAME} @@ -12,7 +12,7 @@ COMMENT= FreeBSD Integration Service on ONLY_FOR_ARCHS= amd64 i386 -USES+= uidfix +USES= kmod uidfix BIS= ${PORTVERSION} MSBASE= FreeBSDonHyper-V/Hyperv-Ports/raw/hyperv-is-master MSLINK= ${MSBASE}/BIS-${BIS}/FreeBSD-${OSREL}/ports @@ -44,7 +44,7 @@ FILE_100= hv-kvp-${BIS} DNAME= ${FILE_${OSREL:S/.//}} .if empty(DNAME) -IGNORE= OSREL ${OSREL} not supported +IGNORE?= OSREL ${OSREL} not supported .endif post-patch: @@ -52,13 +52,15 @@ post-patch: ${WRKSRC}/etc/rc.d/hv_kvpd pre-install: - @${MKDIR} ${STAGEDIR}/boot/kernel \ + @${MKDIR} ${STAGEDIR}${PREFIX} \ ${STAGEDIR}/etc/rc.d \ ${STAGEDIR}/usr/local/hyperv/scripts post-install: ${RM} ${STAGEDIR}/boot/kernel/linker.hints ${MV} ${STAGEDIR}/etc/rc.d/* ${STAGEDIR}${PREFIX}/etc/rc.d - +.if ${PREFIX} != /usr/local + ${MV} ${STAGEDIR}/usr/local/* ${STAGEDIR}${PREFIX} +.endif .include <bsd.port.post.mk> Modified: head/emulators/hyperv-is/pkg-plist ============================================================================== --- head/emulators/hyperv-is/pkg-plist Tue Oct 7 20:14:21 2014 (r370395) +++ head/emulators/hyperv-is/pkg-plist Tue Oct 7 20:27:29 2014 (r370396) @@ -1,15 +1,15 @@ hyperv/scripts/hv_get_dhcp_info hyperv/scripts/hv_get_dns_info hyperv/scripts/hv_set_ifconfig -%%A%%/boot/kernel/hv_ata_pci_disengage.ko -%%A%%/boot/kernel/hv_netvsc.ko -%%A%%/boot/kernel/hv_storvsc.ko -%%A%%/boot/kernel/hv_utils.ko -%%A%%/boot/kernel/hv_vmbus.ko -%%B%%/boot/kernel/hv_kvp.ko +%%A%%/boot/modules/hv_ata_pci_disengage.ko +%%A%%/boot/modules/hv_netvsc.ko +%%A%%/boot/modules/hv_storvsc.ko +%%A%%/boot/modules/hv_utils.ko +%%A%%/boot/modules/hv_vmbus.ko +%%B%%/boot/modules/hv_kvp.ko etc/rc.d/hv_kvpd -%%A%%man/man1/hyperv-is.1.gz %%B%%sbin/hv_kvp_daemon +%%A%%man/man1/hyperv-is.1.gz %%A%%man/man4/hv_ata_pci_disengage.4.gz man/man4/hv_kvp.4.gz %%A%%man/man4/hv_netvsc.4.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410072027.s97KRTS4096429>