svn commit: r363061 - head/emulators/tpm-emulator

John Marino marino at FreeBSD.org
Sun Jul 27 13:28:01 UTC 2014


Author: marino
Date: Sun Jul 27 13:28:00 2014
New Revision: 363061
URL: http://svnweb.freebsd.org/changeset/ports/363061
QAT: https://qat.redports.org/buildarchive/r363061/

Log:
  stage emulators/tpm-emulator
  
  While here, simplify powerpc breakage, remove reference to BERLIOS
  
  PR:		191727
  Submitted by:	Dan Lukes

Modified:
  head/emulators/tpm-emulator/Makefile

Modified: head/emulators/tpm-emulator/Makefile
==============================================================================
--- head/emulators/tpm-emulator/Makefile	Sun Jul 27 13:04:21 2014	(r363060)
+++ head/emulators/tpm-emulator/Makefile	Sun Jul 27 13:28:00 2014	(r363061)
@@ -4,7 +4,6 @@
 PORTNAME=	tpm-emulator
 PORTVERSION=	0.7.4
 CATEGORIES=	emulators security
-#MASTER_SITES=	BERLIOS
 MASTER_SITES=	SF/${PORTNAME}.berlios
 DISTNAME=	${PORTNAME:S,-,_,}-${PORTVERSION}
 
@@ -27,21 +26,13 @@ USERS=		_tss
 GROUPS=		_tss
 SUB_LIST=	USERS="${USERS}" GROUPS="${GROUPS}"
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "powerpc"
-BROKEN=		Does not compile on powerpc
-.endif
+BROKEN_powerpc=		Does not compile on powerpc
 
 post-install:
-	@${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 ${PREFIX}/var/db/tpm
-	@${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700          /var/run/tpm
-
-add-plist-post:
-	@(${ECHO_CMD} "@cwd /"; \
-	  ${ECHO_CMD} "@unexec ${RMDIR} var/run/tpm 2>/dev/null || true"; \
-	  ${ECHO_CMD} "@exec ${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 var/run/tpm"; \
-	 ) >> ${TMPPLIST}
+	@${ECHO_CMD} "@exec ${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 /var/run/tpm" >> ${TMPPLIST}
+	@${MKDIR} ${STAGEDIR}/var/run/tpm
+	@${ECHO_CMD} "@dirrmtry /var/run/tpm" >> ${TMPPLIST}
+	@${ECHO_CMD} "@exec ${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 %D/var/db/tpm" >> ${TMPPLIST}
+	@${MKDIR} ${STAGEDIR}/${PREFIX}/var/db/tpm
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-head mailing list