aboutsummaryrefslogtreecommitdiffstats
path: root/security/softhsm2/Makefile
blob: 81b379ee7320cf002abddd18c595b22ed6b6b0a5 (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
# Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
# $FreeBSD$

PORTNAME=   softhsm
PORTVERSION=    2.2.0
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://dist.opendnssec.org/source/ \
        http://dist.opendnssec.org/source/testing/
PKGNAMESUFFIX=  2

MAINTAINER= jaap@NLnetLabs.nl
COMMENT=    Software implementation of a Hardware Security Module (HSM)

LICENSE=    BSD2CLAUSE

LIB_DEPENDS=    libsqlite3.so:databases/sqlite3

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-sqlite3=${LOCALBASE} --localstatedir="${PREFIX}/var"
INSTALL_TARGET= install-strip
USES=       libtool sqlite

CONFLICTS=  softhsm-1.*

USE_LDCONFIG=   yes

OPTIONS_SINGLE=     CRYP
OPTIONS_SINGLE_CRYP=    CRYP_OPEN CRYP_BOTAN

CRYP_OPEN_DESC=     Build with OpenSSL crypto library
CRYP_BOTAN_DESC=    Build with Botan crypto library

OPTIONS_DEFAULT=    CRYP_OPEN

CRYP_BOTAN_CONFIGURE_ON=    --with-crypto-backend=botan
CRYP_BOTAN_LIB_DEPENDS= libbotan-1.10.so:security/botan110
CRYP_OPEN_USES=     ssl
CRYP_OPEN_CONFIGURE_ON= --with-crypto-backend=openssl

.include <bsd.port.options.mk>

.if ${SSL_DEFAULT:Mlibressl*}
CONFIGURE_ARGS+=    --disable-gost
.endif

.include <bsd.port.mk>