blob: 0a664ce1fffba8a8bf5b6510819811cc1a76cce6 (
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
|
# $NetBSD: Makefile,v 1.17 2022/11/23 16:19:00 adam Exp $
VERSION= 2.6.1
DISTNAME= softhsm-${VERSION}
PKGNAME= softhsm2-${VERSION}
PKGREVISION= 9
CATEGORIES= security
MASTER_SITES= http://www.opendnssec.org/files/source/
MAINTAINER= he@NetBSD.org
HOMEPAGE= https://www.opendnssec.org/softhsm/
COMMENT= Cryptographic store accessible through a PKCS\#11 interface
LICENSE= 2-clause-bsd
BUILD_DEFS+= VARBASE
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-botan=${PREFIX}
CONFIGURE_ARGS+= --with-objectstore-backend-db
CONFIGURE_ARGS+= --with-migrate
CONFIGURE_ARGS+= --disable-gost
EGDIR= ${PREFIX}/share/examples/softhsm
SUBST_CLASSES+= paths
SUBST_FILES.paths= src/lib/common/Makefile.in
SUBST_STAGE.paths= pre-configure
SUBST_VARS.paths= EGDIR
CXXFLAGS.NetBSD+= -D_NETBSD_SOURCE
# For debugging:
CXXFLAGS+= -g
INSTALL_UNSTRIPPED= YES
CONF_FILES= ${EGDIR}/softhsm2.conf ${PKG_SYSCONFDIR}/softhsm2.conf
INSTALLATION_DIRS= ${EGDIR} etc bin lib
OWN_DIRS= ${VARBASE}/softhsm
pre-install:
${INSTALL_DATA} ${WRKSRC}/src/lib/common/softhsm2.conf ${DESTDIR}${EGDIR}
USE_BUILTIN.sqlite3=NO
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../security/botan2/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|