# Created by: Sebastian Schuetz # $FreeBSD: head/security/trousers/Makefile 412349 2016-04-01 14:25:16Z mat $ PORTNAME= trousers PORTVERSION= 0.3.14 PORTREVISION= 3 CATEGORIES= security MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} MAINTAINER= hrs@FreeBSD.org COMMENT= The open-source TCG Software Stack LICENSE= BSD3CLAUSE #LICENSE_NAME= BSDS 3 Clause License LICENSE_FILE= ${WRKSRC}/LICENSE #LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept USES= cpe dos2unix alias autoreconf gmake iconv libtool pkgconfig ssl CPE_VENDOR= ${PORTNAME}_project DOS2UNIX_GLOB= *.h *.c NO_WRKSUBDIR= yes USE_OPENSSL= YES USE_LDCONFIG= YES USE_RC_SUBR= tcsd INSTALL_TARGET= install-strip GNU_CONFIGURE= YES CONFIGURE_ARGS= --with-gui=none --enable-static \ --localstatedir=${PREFIX}/var \ --with-tssuser=${USERS} \ --with-tssgroup=${GROUPS} \ --with-openssl=${OPENSSLBASE} \ RANLIB=: MAKE_ENV= ICONV_LIB=${ICONV_LIB} \ ICONV_PREFIX=${ICONV_PREFIX} CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} SUB_FILES= pkg-message SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} USERS= _tss GROUPS= _tss OPTIONS_DEFINE= DEBUG DEBUG_CONFIGURE_ENABLE= debug BUILD_DEPENDS= tpm-emulator>=0.7.4_1:emulators/tpm-emulator RUN_DEPENDS:= ${BUILD_DEPENDS} #.include # #.if ${PORT_OPTIONS:MEMULATOR} #PKGNAMESUFFIX+= -no_tddl #LIB_DEPENDS+= libtddl.so:emulators/tpm-emulator # #EXTRA_PATCHES= ${FILESDIR}/extra-patch-src-tcs-Makefile.am \ # ${FILESDIR}/extra-patch-src-tcsd-Makefile.am \ # ${FILESDIR}/extra-patch-src-tddl-Makefile.am ## The emulator has already a libttddl.so, so comment out trousers' libtddl in the pkg-plist #PLIST_SUB+= TDDL="@comment " #.else #PKGNAMESUFFIX+= -tddl #CONFLICTS+= tpm-emulator-[0-9]* #PLIST_SUB+= TDDL="" #.endif post-install: ${INSTALL_DATA} \ ${WRKSRC}/dist/tcsd.conf ${STAGEDIR}${PREFIX}/etc/tcsd.conf.dist ${MKDIR} ${STAGEDIR}${PREFIX}/var/lib/tpm .include