freebsd-ports/security/trousers/Makefile
2016-09-09 22:07:48 +00:00

51 lines
1.3 KiB
Makefile

# Created by: Sebastian Schuetz <sschuetz@fhm.edu>
# $FreeBSD$
PORTNAME= trousers
PORTVERSION= 0.3.13
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= hrs@FreeBSD.org
COMMENT= Open-source TCG Software Stack
LICENSE= CPL
LICENSE_NAME= Common Public License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= tpm-emulator>=0.7.4_1:emulators/tpm-emulator
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= dos2unix alias autoreconf gmake iconv libtool pkgconfig ssl
DOS2UNIX_GLOB= *.h *.c
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}"
PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}"
USERS= _tss
GROUPS= _tss
OPTIONS_DEFINE= DEBUG
DEBUG_CONFIGURE_ENABLE= debug
post-install:
${INSTALL_DATA} \
${WRKSRC}/dist/tcsd.conf ${STAGEDIR}${PREFIX}/etc/tcsd.conf.sample
@${MKDIR} ${STAGEDIR}${PREFIX}/var/lib/tpm
.include <bsd.port.mk>