mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
5c2173b0df
- Update to 0.3.13. - Remove CONFLICTS with emulators/tpm-emulator. Two separate binaries, sbin/tcsd (for actual TPM device) and sbin/tcsd_emu (for TPM emulator) are now installed. rc.d/tcsd chooses one of them depending on $tcsd_mode. When tcsd_mode="native" (default) it runs sbin/tcsd, and when tcsd_mode="emulator" it runs sbin/tcsd_emu. Note that sbin/tcsd_emu depends on tpmd in emulators/tpm-emulator. - Simplify @sample. emulators/tpm-emulator: - Remove CONFLICTS with security/trousers. - Simplify rc.d/tpmd.
35 lines
860 B
Makefile
35 lines
860 B
Makefile
# Created by: Sebastian Schuetz <sschuetz@fhm.edu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tpm-emulator
|
|
PORTVERSION= 0.7.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= emulators security
|
|
MASTER_SITES= SF/${PORTNAME}.berlios
|
|
DISTNAME= ${PORTNAME:S,-,_,}-${PORTVERSION}
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= Trusted Platform Module (TPM) emulator
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libgmp.so:math/gmp
|
|
|
|
USES= cmake:outsource
|
|
USE_RC_SUBR= tpmd
|
|
CONFIGURE_ENV= PREFIX="${PREFIX}"
|
|
CMAKE_ARGS= -DTPM_INCLUDE_DIRS:STRING="${LOCALBASE}/include" \
|
|
-DTDDL_LIBRARY_DIRS:STRING="${LOCALBASE}/lib/tddl_emu" \
|
|
-DTPM_LIBRARY_DIRS:STRING="${LOCALBASE}/lib"
|
|
USE_LDCONFIG= yes
|
|
USERS= _tss
|
|
GROUPS= _tss
|
|
SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}"
|
|
PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}"
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}/var/run/tpm
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/var/db/tpm
|
|
|
|
.include <bsd.port.mk>
|