aboutsummaryrefslogtreecommitdiffstats
path: root/security/tpm-tools/Makefile
blob: 3b22b5711dd1bd45b5e384ee770e1c415a73e1a2 (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
# Created by: Sebastian Schuetz <sschuetz@fhm.edu>
# $FreeBSD$

PORTNAME=   tpm-tools
PORTVERSION=    1.3.8
CATEGORIES= security
MASTER_SITES=   SF/trousers/${PORTNAME}/${PORTVERSION}

MAINTAINER= hrs@FreeBSD.org
COMMENT=    Provides a basic set of TPM tools

LICENSE=    CPL
LICENSE_NAME=   Common Public License
LICENSE_FILE=   ${WRKSRC}/LICENSE
LICENSE_PERMS=  dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

LIB_DEPENDS=    libtspi.so:security/trousers
BUILD_DEPENDS=  pkcsconf:security/opencryptoki
RUN_DEPENDS=    ${LOCALBASE}/sbin/tcsd:security/trousers \
        ${LOCALBASE}/lib/pkcs11/libopencryptoki.so:security/opencryptoki

USES=       gettext gmake iconv libtool
USE_LDCONFIG=   YES
GNU_CONFIGURE=  YES
LIBS+=      -L${LOCALBASE}/lib -lintl
INSTALL_TARGET= install-strip

post-patch:
    @${REINPLACE_CMD} '/^libtpm_unseal_la_LIBADD =/s/$$/ -lcrypto/' \
        ${WRKSRC}/lib/Makefile.in

.include <bsd.port.mk>