blob: 3da165c5c9ca8b7917e1ebf3cfa07e479906bfe4 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# New ports collection makefile for: opencryptoki
# Date created: 2010-07-16
# Whom: Ralf Meister
#
# $FreeBSD$
#
PORTNAME= opencryptoki
PORTVERSION= 2.3.2
PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
MAINTAINER= nork@FreeBSD.org
COMMENT= An open PKCS\#11 implementation library
LIB_DEPENDS= tspi.2:${PORTSDIR}/security/trousers
USE_BZIP2= YES
USE_GMAKE= YES
USE_LDCONFIG= YES
USE_AUTOTOOLS= autoconf:268 libtool:22 automake:111
HAS_CONFIGURE= YES
MAKE_JOBS_SAFE= YES
USE_RC_SUBR= pkcsslotd
SUB_FILES= pkg-message
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS}
MAN1= pkcs11_startup.1 pkcsconf.1
MAN5= pk_config_data.5
MAN7= opencryptoki.7
MAN8= pkcsslotd.8
USERS= _pkcs11
GROUPS= _pkcs11
LICENSE= CPL
LICENSE_NAME= Common Public License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT}
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}
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
CFLAGS+= -I${LOCALBASE}/include
run-autotools: run-autotools-autoreconf
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.post.mk>
|