Bug 183754 - [PATCH] emulators/open-vm-tools: Stageify.
[PATCH] emulators/open-vm-tools: Stageify.
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Steve Wills
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-07 16:00 UTC by Mathieu Arnold
Modified: 2013-11-07 22:00 UTC (History)
1 user (show)

See Also:


Attachments
open-vm-tools-425873_4,1.patch (5.22 KB, patch)
2013-11-07 16:00 UTC, Mathieu Arnold
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Arnold freebsd_committer 2013-11-07 16:00:00 UTC
- Stageify

Port maintainer (swills@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_9 (mode: change, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer 2013-11-07 16:00:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter freebsd_committer 2013-11-07 21:50:28 UTC
Author: swills
Date: Thu Nov  7 21:50:19 2013
New Revision: 333158
URL: http://svnweb.freebsd.org/changeset/ports/333158

Log:
  - Add stage support
  - Convert to USES=kmod
  
  PR:		ports/183754
  Submitted by:	mat

Modified:
  head/emulators/open-vm-tools/Makefile
  head/emulators/open-vm-tools/files/patch-libguestlib-Makefile
  head/emulators/open-vm-tools/files/patch-services-Makefile
  head/emulators/open-vm-tools/pkg-plist

Modified: head/emulators/open-vm-tools/Makefile
==============================================================================
--- head/emulators/open-vm-tools/Makefile	Thu Nov  7 21:46:34 2013	(r333157)
+++ head/emulators/open-vm-tools/Makefile	Thu Nov  7 21:50:19 2013	(r333158)
@@ -5,7 +5,7 @@ PORTNAME=		open-vm-tools
 PORTVERSION=		${BUILD_VER}
 PORTREVISION=		4
 PORTEPOCH=		1
-CATEGORIES=		emulators kld
+CATEGORIES=		emulators
 MASTER_SITES=		SF/${PORTNAME}/${PORTNAME}/stable-8.6.x
 DISTNAME=		open-vm-tools-${RELEASE_VER}-${BUILD_VER}
 
@@ -20,10 +20,11 @@ BUILD_VER=		425873
 
 WRKSRC=			${WRKDIR}/open-vm-tools-${RELEASE_VER}-${BUILD_VER}
 GNU_CONFIGURE=		yes
-USES=			pkgconfig
+USES=			pkgconfig kmod
 USE_GNOME=		glib20
 USE_LDCONFIG=		yes
 CPPFLAGS+=		-Wno-deprecated-declarations
+KMODDIR=		${PREFIX}/lib/vmware-tools/modules/drivers
 
 SSP_UNSAFE=		kernel module does not support ssp
 
@@ -75,7 +76,6 @@ LIB_DEPENDS+=		libicuuc.so:${PORTSDIR}/d
 
 USE_RC_SUBR=		vmware-guestd vmware-kmod
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "sparc64"
@@ -83,16 +83,17 @@ IGNORE=		not yet ported to sparc64
 .endif
 
 post-build:
-	(cd ${WRKSRC}/modules && ${MAKE})
+	(cd ${WRKSRC}/modules && env ${MAKE_ENV} ${MAKE} ${MAKE_ARGS})
 
 post-install:
-	${MKDIR} ${PREFIX}/lib/vmware-tools/modules/drivers
-	${MKDIR} ${PREFIX}/lib/vmware-tools/modules/input
-	${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko
-	${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko
-	${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko
-	${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko
-	@-kldxref ${PREFIX}/lib/vmware-tools/modules/drivers 2>/dev/null
-	@${CAT} ${PKGMESSAGE}
+	${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers
+	${MKDIR} ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/input
+	${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmmemctl.ko ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers/vmmemctl.ko
+	${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmxnet.ko ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers/vmxnet.ko
+	${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmhgfs.ko ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers/vmhgfs.ko
+	${INSTALL_DATA} ${WRKSRC}/modules/freebsd/vmblock.ko ${STAGEDIR}${PREFIX}/lib/vmware-tools/modules/drivers/vmblock.ko
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/open-vm-tools/scripts/vmware/
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/open-vm-tools/scripts/
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/open-vm-tools/tests/
 
 .include <bsd.port.post.mk>

Modified: head/emulators/open-vm-tools/files/patch-libguestlib-Makefile
==============================================================================
--- head/emulators/open-vm-tools/files/patch-libguestlib-Makefile	Thu Nov  7 21:46:34 2013	(r333157)
+++ head/emulators/open-vm-tools/files/patch-libguestlib-Makefile	Thu Nov  7 21:50:19 2013	(r333158)
@@ -5,7 +5,7 @@
  EXTRA_DIST = vmguestlib.pc.in
  
 -pkgconfigdir   = $(libdir)/pkgconfig
-+pkgconfigdir   = $(DESTDIR)$(prefix)/libdata/pkgconfig
++pkgconfigdir   = $(prefix)/libdata/pkgconfig
  pkgconfig_DATA = vmguestlib.pc
  
  $(pkgconfig_DATA): $(top_builddir)/config.status
@@ -16,7 +16,7 @@
  	$(top_srcdir)/lib/include/vm_basic_types.h
  EXTRA_DIST = vmguestlib.pc.in
 -pkgconfigdir = $(libdir)/pkgconfig
-+pkgconfigdir = $(DESTDIR)$(prefix)/libdata/pkgconfig
++pkgconfigdir = $(prefix)/libdata/pkgconfig
  pkgconfig_DATA = vmguestlib.pc
  all: all-am
  

Modified: head/emulators/open-vm-tools/files/patch-services-Makefile
==============================================================================
--- head/emulators/open-vm-tools/files/patch-services-Makefile	Thu Nov  7 21:46:34 2013	(r333157)
+++ head/emulators/open-vm-tools/files/patch-services-Makefile	Thu Nov  7 21:50:19 2013	(r333158)
@@ -6,7 +6,7 @@
  install-exec-local:
 -	mkdir -p $(DESTDIR)/etc/vmware-tools
 -	ln -sf `dirname $(VMSVC_PLUGIN_INSTALLDIR)` $(DESTDIR)/etc/vmware-tools/plugins
-+	mkdir -p $(prefix)/etc/vmware-tools
++	mkdir -p $(DESTDIR)$(prefix)/etc/vmware-tools
  
 --- services/Makefile.in.orig	2009-02-28 20:48:52.000000000 +0100
 +++ services/Makefile.in	2009-02-28 20:49:46.000000000 +0100
@@ -16,7 +16,7 @@
  install-exec-local:
 -	mkdir -p $(DESTDIR)/etc/vmware-tools
 -	ln -sf `dirname $(VMSVC_PLUGIN_INSTALLDIR)` $(DESTDIR)/etc/vmware-tools/plugins
-+	mkdir -p $(prefix)/etc/vmware-tools
++	mkdir -p $(DESTDIR)$(prefix)/etc/vmware-tools
  
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.

Modified: head/emulators/open-vm-tools/pkg-plist
==============================================================================
--- head/emulators/open-vm-tools/pkg-plist	Thu Nov  7 21:46:34 2013	(r333157)
+++ head/emulators/open-vm-tools/pkg-plist	Thu Nov  7 21:50:19 2013	(r333158)
@@ -30,7 +30,6 @@ lib/libguestlib.la
 lib/libguestlib.so
 lib/libguestlib.so.0
 libdata/pkgconfig/vmguestlib.pc
-lib/vmware-tools/modules/drivers/linker.hints
 lib/vmware-tools/modules/drivers/vmblock.ko
 lib/vmware-tools/modules/drivers/vmhgfs.ko
 lib/vmware-tools/modules/drivers/vmmemctl.ko
@@ -53,11 +52,8 @@ share/open-vm-tools/messages/ja/toolbox.
 share/open-vm-tools/messages/zh_CN/toolbox.vmsg
 share/vmware-tools/statechange.subr
 share/vmware-tools/scripts/vmware/network
-@exec kldxref %D/lib/vmware-tools/modules/drivers 2>/dev/null || true
-@unexec if test -f %D/lib/vmware-tools/modules/drivers/linker.hints; then rm -f %D/lib/vmware-tools/modules/drivers/linker.hints; fi
 @unexec if test -f %D/share/vmware-tools/tools.conf; then rm -f %D/share/vmware-tools/tools.conf; fi
 @unexec if test -h %D/etc/vmware-tools/plugins; then rm -f %D/etc/vmware-tools/plugins; fi
-@dirrmtry lib/vmware-tools/modules/drivers
 @dirrmtry lib/vmware-tools/modules/input
 @dirrmtry lib/vmware-tools/modules
 @dirrmtry lib/vmware-tools
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Steve Wills freebsd_committer 2013-11-07 21:50:42 UTC
State Changed
From-To: open->closed

Committed. Thanks!