freebsd-ports/emulators/tpm-emulator/Makefile
John Marino 9ca8e16ceb stage emulators/tpm-emulator
While here, simplify powerpc breakage, remove reference to BERLIOS

PR:		191727
Submitted by:	Dan Lukes
2014-07-27 13:28:00 +00:00

38 lines
1.1 KiB
Makefile

# Created by: Sebastian Schuetz <sschuetz@fhm.edu>
# $FreeBSD$
PORTNAME= tpm-emulator
PORTVERSION= 0.7.4
CATEGORIES= emulators security
MASTER_SITES= SF/${PORTNAME}.berlios
DISTNAME= ${PORTNAME:S,-,_,}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Trusted Platform Module (TPM) emulator
LICENSE= GPLv2
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
CONFLICTS= trousers-tddl-[0-9]*
USES= cmake:outsource
USE_RC_SUBR= tpmd
CMAKE_ENV= PREFIX="${PREFIX}"
CMAKE_ARGS= -DTPM_INCLUDE_DIRS:STRING="${LOCALBASE}/include" \
-DTPM_LIBRARY_DIRS:STRING="${LOCALBASE}/lib"
USE_LDCONFIG= yes
USERS= _tss
GROUPS= _tss
SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}"
BROKEN_powerpc= Does not compile on powerpc
post-install:
@${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.mk>