blob: a6733ffb5e9916a51d953ad4cdd35c60cbc756a9 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
# $FreeBSD$
PORTNAME= opendnssec
PORTVERSION= 1.4.14
CATEGORIES= dns
MASTER_SITES= http://dist.opendnssec.org/source/
MAINTAINER= jaap@NLnetLabs.nl
COMMENT= Tool suite for maintaining DNSSEC
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ldns>=1.6.16:dns/ldns
LIB_DEPENDS= libldns.so:dns/ldns
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir="${PREFIX}/var"
USE_RC_SUBR= opendnssec
USE_GNOME= libxml2
USES= perl5 ssl
USE_LDCONFIG= yes
CONFLICTS= opendnssec-1.[0-3]* opendnssec2-[0-9]*
USERS= opendnssec
GROUPS= opendnssec
PORTDOCS= KNOWN_ISSUES MIGRATION NEWS README.md
OPTIONS_DEFINE= SOFTHSM DOCS
OPTIONS_SUB= yes
OPTIONS_SINGLE= DB
OPTIONS_SINGLE_DB= MYSQL SQLITE
OPTIONS_DEFAULT= MYSQL
SOFTHSM_DESC= SoftHSM cryptographic store for PKCS \#11 interface
MYSQL_DESC= Use MYSQL backend
SQLITE_DESC= Use SQLite backend
SQLITE_USE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
CONFIGURE_ARGS+= --with-database-backend=mysql
USES+= mysql
SCRIPTDATA= migrate_adapters_1.mysql migrate_keyshare_mysql.pl \
migrate_zone_delete.mysql migrate_id_mysql.pl \
migrate_to_ng_mysql.pl migrate_1_4_8.mysql
.endif
.if ${PORT_OPTIONS:MSQLITE}
CONFIGURE_ARGS+= --with-sqlite3=${LOCALBASE}
CONFIGURE_ARGS+= --with-database-backend=sqlite3
BUILD_DEPENDS+= sqlite3>=3.3.9:databases/sqlite3
SCRIPTDATA= database_create.sqlite3 migrate_keyshare_sqlite3.pl \
migrate_adapters_1.sqlite3 migrate_to_ng_sqlite.pl \
migrate_1_4_8.sqlite3
.endif
.if ${PORT_OPTIONS:MSOFTHSM}
CONFIGURE_ARGS+= --with-pkcs11-softhsm=${LOCALBASE}/lib/softhsm/libsofthsm.so
RUN_DEPENDS+= softhsm>=1.2.0:security/softhsm
.endif
SCRIPTDATA+= convert_database.pl
PKGMESSAGE= ${WRKSRC}/MIGRATION
post-patch:
${REINPLACE_CMD} -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \
${WRKSRC}/configure
pre-install:
.if ${PORT_OPTIONS:MMYSQL}
@${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/opendnssec
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
${INSTALL_DATA} ${SCRIPTDATA:S|^|${WRKSRC}/enforcer/utils/|} ${STAGEDIR}${DATADIR}
# ${CHOWN} -R ${USERS}:${GROUPS} ${PREFIX}/var/opendnssec
.include <bsd.port.mk>
|