Lines 32-44
Link Here
|
32 |
MAN7= opendnssec.7 |
32 |
MAN7= opendnssec.7 |
33 |
MAN8= ods-control.8 ods-enforcerd.8 ods-signer.8 ods-signerd.8 |
33 |
MAN8= ods-control.8 ods-enforcerd.8 ods-signer.8 ods-signerd.8 |
34 |
|
34 |
|
35 |
OPTIONS= SOFTHSM "Build/update SOFTHSM as well." Off \ |
35 |
OPTIONS_DEFAULT= AUDITOR |
36 |
AUDITOR "Build with Auditor." On \ |
|
|
37 |
MYSQL "Use with (experimental) MYSQL support" Off |
38 |
|
36 |
|
39 |
.include <bsd.port.options.mk> |
37 |
.include <bsd.port.options.mk> |
40 |
|
38 |
|
41 |
.if defined(WITH_MYSQL) |
39 |
OPTIONS_DEFINE= SOFTHSM AUDITOR MYSQL |
|
|
40 |
SOFTHSM_DESC= Build/update SOFTHSM as well. |
41 |
AUDITOR_DESC= Build with Auditor. |
42 |
|
43 |
.if ${PORT_OPTIONS:MMYSQL} |
42 |
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} |
44 |
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} |
43 |
CONFIGURE_ARGS+= --with-database-backend=mysql |
45 |
CONFIGURE_ARGS+= --with-database-backend=mysql |
44 |
USE_MYSQL= compat |
46 |
USE_MYSQL= compat |
Lines 52-58
Link Here
|
52 |
PLIST_SUB+= MYSQL="@comment " |
54 |
PLIST_SUB+= MYSQL="@comment " |
53 |
.endif |
55 |
.endif |
54 |
|
56 |
|
55 |
.if defined(WITH_AUDITOR) |
57 |
.if ${PORT_OPTIONS:MAUDITOR} |
|
|
58 |
.if ${RUBY_VER} == 1.9 |
59 |
BROKEN= does not work with ruby 1.9 |
60 |
.endif |
56 |
BUILD_DEPENDS+= rubygem-dnsruby>=1.53:${PORTSDIR}/dns/rubygem-dnsruby |
61 |
BUILD_DEPENDS+= rubygem-dnsruby>=1.53:${PORTSDIR}/dns/rubygem-dnsruby |
57 |
USE_RUBY= yes |
62 |
USE_RUBY= yes |
58 |
PLIST_SUB+= AUDITOR="" |
63 |
PLIST_SUB+= AUDITOR="" |
Lines 62-68
Link Here
|
62 |
PLIST_SUB+= AUDITOR="@comment " |
67 |
PLIST_SUB+= AUDITOR="@comment " |
63 |
.endif |
68 |
.endif |
64 |
|
69 |
|
65 |
.if defined(WITH_SOFTHSM) |
70 |
.if ${PORT_OPTIONS:MSOFTHSM} |
66 |
CONFIGURE_ARGS+= --with-softhsm |
71 |
CONFIGURE_ARGS+= --with-softhsm |
67 |
CONFIGURE_ARGS+= --with-pkcs11-softhsm=${LOCALBASE}/lib/libsofthsm.so |
72 |
CONFIGURE_ARGS+= --with-pkcs11-softhsm=${LOCALBASE}/lib/libsofthsm.so |
68 |
RUN_DEPENDS+= softhsm>=1.2.0:${PORTSDIR}/security/softhsm |
73 |
RUN_DEPENDS+= softhsm>=1.2.0:${PORTSDIR}/security/softhsm |
Lines 71-77
Link Here
|
71 |
PKGMESSAGE= ${WRKSRC}/MIGRATION |
76 |
PKGMESSAGE= ${WRKSRC}/MIGRATION |
72 |
|
77 |
|
73 |
pre-install: |
78 |
pre-install: |
74 |
.if defined(WITH_MYSQL) |
79 |
.if ${PORT_OPTIONS:MMYSQL} |
75 |
@${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/opendnssec |
80 |
@${REINPLACE_CMD} -e '/REQUIRE:/ s|$$| mysql|' ${WRKDIR}/opendnssec |
76 |
.endif |
81 |
.endif |
77 |
|
82 |
|
Lines 81-88
Link Here
|
81 |
.endif |
86 |
.endif |
82 |
${CHOWN} -R ${USERS}:${GROUPS} ${PREFIX}/var/opendnssec |
87 |
${CHOWN} -R ${USERS}:${GROUPS} ${PREFIX}/var/opendnssec |
83 |
|
88 |
|
84 |
.include <bsd.port.pre.mk> |
89 |
.include <bsd.port.mk> |
85 |
.if defined(WITH_AUDITOR) && ${RUBY_VER} == 1.9 |
|
|
86 |
BROKEN= does not work with ruby 1.9 |
87 |
.endif |
88 |
.include <bsd.port.post.mk> |