summaryrefslogtreecommitdiff
path: root/security/tpm2-abrmd/Makefile
blob: 62d30b38ba48a6dd2a078abf311e3251c45ac5e2 (plain)
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
34
35
36
37
38
39

PORTNAME=	tpm2-abrmd
DISTVERSION=	2.4.0
CATEGORIES=	security
MASTER_SITES=	https://github.com/tpm2-software/tpm2-abrmd/releases/download/${DISTVERSION}/

MAINTAINER=	tstruk@gmail.com
COMMENT=	TPM2 Access Broker & Resource Manager Deamon

LICENSE=	BSD2CLAUSE

LIB_DEPENDS=	libtss2-esys.so:security/tpm2-tss \
		libgio-2.0.so:devel/glib20
RUN_DEPENDS=	dbus-daemon:devel/dbus

USES=		gmake libtool pkgconfig gnome
USE_LDCONFIG=	yes
USE_GNOME=	glib20
USE_RC_SUBR=	tpm2-abrmd

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-dbuspolicydir=${PREFIX}/etc/dbus-1/system.d

GROUPS=		_tss
USERS=		_tss

SUB_LIST=	DBUS_DAEMON=dbus

post-install:
	@${RM} ${STAGEDIR}${PREFIX}/lib/systemd/system-preset/tpm2-abrmd.preset
	@${RM} ${STAGEDIR}${PREFIX}/lib/systemd/system/tpm2-abrmd.service
	@${RM} ${STAGEDIR}${PREFIX}/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service
	@${RMDIR} ${STAGEDIR}${PREFIX}/lib/systemd/system
	@${RMDIR} ${STAGEDIR}${PREFIX}/lib/systemd/system-preset
	@${RMDIR} ${STAGEDIR}${PREFIX}/lib/systemd
	@${RMDIR} ${STAGEDIR}${PREFIX}/share/dbus-1/system-services
	@${RMDIR} ${STAGEDIR}${PREFIX}/share/dbus-1

.include <bsd.port.mk>