Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jul 2014 01:54:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191727] New: [ staging ] emulators/tpm-emulator
Message-ID:  <bug-191727-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191727

            Bug ID: 191727
           Summary: [ staging ] emulators/tpm-emulator
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: Normal
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dan@obluda.cz

emulators/tpm-emulator require staging or will be removed

Fix:
Patch is attached. 

--- emulators/tpm-emulator/Makefile.orig    2014-07-08 03:08:32.000000000 +0200
+++ emulators/tpm-emulator/Makefile    2014-07-08 03:49:59.000000000 +0200
@@ -27,7 +27,6 @@
 GROUPS=        _tss
 SUB_LIST=    USERS="${USERS}" GROUPS="${GROUPS}"

-NO_STAGE=    yes
 .include <bsd.port.pre.mk>

 .if ${ARCH} == "powerpc"
@@ -35,13 +34,10 @@
 .endif

 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>

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191727-13>