aboutsummaryrefslogtreecommitdiff
path: root/emulators/tpm-emulator/Makefile
blob: 7fb25f14e45d6ee58936fcd374c7dd4b154e7f0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Sebastian Schuetz <sschuetz@fhm.edu>

PORTNAME=	tpm-emulator
PORTVERSION=	0.7.4
PORTREVISION=	2
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
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>