aboutsummaryrefslogtreecommitdiff
path: root/security/trousers
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-12-05 00:23:35 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-12-05 00:23:35 +0000
commit3fbf04e5e0c6d94a391e3cfe920d58c723b88699 (patch)
treef6cc11470accc4397fd0e21ae0b08c6e4884465f /security/trousers
parent3604826cc9387608eac26069d05fafe33530caa2 (diff)
downloadports-3fbf04e5e0c6d94a391e3cfe920d58c723b88699.tar.gz
ports-3fbf04e5e0c6d94a391e3cfe920d58c723b88699.zip
Notes
Diffstat (limited to 'security/trousers')
-rw-r--r--security/trousers/Makefile5
-rw-r--r--security/trousers/pkg-plist9
2 files changed, 10 insertions, 4 deletions
diff --git a/security/trousers/Makefile b/security/trousers/Makefile
index 737abfcaa5cb..29cfa84a681c 100644
--- a/security/trousers/Makefile
+++ b/security/trousers/Makefile
@@ -3,7 +3,7 @@
PORTNAME= trousers
PORTVERSION= 0.3.10
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
@@ -38,7 +38,7 @@ DEBUG_CONFIGURE_ENABLE= debug
.if ${PORT_OPTIONS:MEMULATOR}
PKGNAMESUFFIX+= -no_tddl
-LIB_DEPENDS+= tddl.1:${PORTSDIR}/emulators/tpm-emulator
+LIB_DEPENDS+= libtddl.so:${PORTSDIR}/emulators/tpm-emulator
EXTRA_PATCHES= ${FILESDIR}/extra-patch-src-tcs-Makefile.am \
${FILESDIR}/extra-patch-src-tcsd-Makefile.am \
@@ -63,5 +63,6 @@ run-autotools-autoreconf:
post-install:
${INSTALL_DATA} \
${WRKSRC}/dist/tcsd.conf ${STAGEDIR}${PREFIX}/etc/tcsd.conf.dist
+ ${MKDIR} ${STAGEDIR}${PREFIX}/var/lib/tpm
.include <bsd.port.mk>
diff --git a/security/trousers/pkg-plist b/security/trousers/pkg-plist
index 545ac48a3dd0..b5de356bcbd2 100644
--- a/security/trousers/pkg-plist
+++ b/security/trousers/pkg-plist
@@ -121,11 +121,16 @@ man/man3/Tspi_TPM_TakeOwnership.3.gz
man/man5/tcsd.conf.5.gz
man/man8/tcsd.8.gz
@unexec cmp -s %D/etc/tcsd.conf %D/etc/tcsd.conf.dist && rm -f %D/etc/tcsd.conf || true
+@owner _tss
+@group _tss
+@mode 0600
etc/tcsd.conf.dist
-@exec chown _tss:_tss %D/etc/tcsd.conf.dist
-@exec chmod 0600 %D/etc/tcsd.conf.dist
@exec [ -f %D/etc/tcsd.conf ] || cp -p %D/etc/tcsd.conf.dist %D/etc/tcsd.conf
+@mode 0700
@dirrmtry var/lib/tpm
+@owner
+@group
+@mode
@dirrmtry var/lib
@dirrmtry var
@dirrm include/tss