aboutsummaryrefslogtreecommitdiff
path: root/security/trousers
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-10-04 10:48:50 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-10-04 10:48:50 +0000
commit0c06111c464371ac05e6e30d841fc4e86a2d5700 (patch)
treeaea79b8d9b683f52f70634531007aeb451f8f1ed /security/trousers
parent60820d612b8a6b4b5700dd02145552bb0d6011f2 (diff)
downloadports-0c06111c464371ac05e6e30d841fc4e86a2d5700.tar.gz
ports-0c06111c464371ac05e6e30d841fc4e86a2d5700.zip
Notes
Diffstat (limited to 'security/trousers')
-rw-r--r--security/trousers/Makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/security/trousers/Makefile b/security/trousers/Makefile
index 119761ae8507..9cd8883d577c 100644
--- a/security/trousers/Makefile
+++ b/security/trousers/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: trousers
-# Date created: 18 Sep 2007
-# Whom: Sebastian Schuetz <sschuetz@fhm.edu>
-#
+# Created by: Sebastian Schuetz <sschuetz@fhm.edu>
# $FreeBSD$
-#
PORTNAME= trousers
PORTVERSION= 0.3.6
@@ -41,14 +37,14 @@ CONFIGURE_ARGS= --with-gui=none --enable-static \
--localstatedir=${PREFIX}/var \
--with-tssuser=${USERS} --with-tssgroup=${GROUPS}
-OPTIONS= EMULATOR "Build for use with the tpm-emulator" off \
- DEBUG "Build with debugging flags" off
+OPTIONS_DEFINE= EMULATOR DEBUG
+EMULATOR_DESC= Build for use with the tpm-emulator
WRKSRC= ${WRKDIR}/${DISTNAME}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_EMULATOR)
+.if ${PORT_OPTIONS:MEMULATOR}
PKGNAMESUFFIX+= -no_tddl
LIB_DEPENDS+= tddl.1:${PORTSDIR}/emulators/tpm-emulator
@@ -69,8 +65,7 @@ CONFLICTS+= tpm-emulator-0*
PLIST_SUB+= TDDL=""
.endif
-.if defined(WITH_DEBUG)
-PKGNAMESUFFIX+= -debug
+.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
@@ -97,4 +92,4 @@ add-plist-post:
@${ECHO_CMD} "@unexec ${RMDIR} var/run/ima 2>/dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 var/run/ima" >> ${TMPPLIST}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>