blob: 4abfe179724845fd1d1e4b3a3a9447a4f559a8a9 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Created by: Ralf Meister
# $FreeBSD$
PORTNAME= opencryptoki
PORTVERSION= 2.3.2
PORTREVISION= 5
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Open PKCS\#11 implementation library
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:${PORTSDIR}/security/trousers
USES= gmake
USE_BZIP2= YES
USE_LDCONFIG= YES
USE_AUTOTOOLS= autoconf libtool automake
HAS_CONFIGURE= YES
CONFIGURE_ARGS= --enable-swtok --enable-tpmtok \
--disable-crtok --disable-aeptok \
--disable-ccatok --disable-bcomtok \
--disable-pkcscca_migrate \
--libdir=${PREFIX}/lib \
--sbindir=${PREFIX}/sbin \
--localstatedir=${PREFIX}/var \
--with-pkcs11user=${USERS} \
--with-pkcs11group=${GROUPS}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_RC_SUBR= pkcsslotd
SUB_FILES= pkg-message
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS}
USERS= _pkcs11
GROUPS= _pkcs11
MAN1= pkcs11_startup.1 pkcsconf.1
MAN5= pk_config_data.5
MAN7= opencryptoki.7
MAN8= pkcsslotd.8
run-autotools: run-autotools-autoreconf
NO_STAGE= yes
run-autotools-autoreconf:
@cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTORECONF} -i
post-install:
@cd ${PREFIX}/lib && ${LN} -s opencryptoki/libopencryptoki* .
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|