Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= opendkim |
4 |
PORTNAME= opendkim |
5 |
PORTVERSION= 2.8.3 |
5 |
PORTVERSION= 2.9.2 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= mail security |
6 |
CATEGORIES= mail security |
8 |
MASTER_SITES= SF |
7 |
MASTER_SITES= SF |
9 |
MASTER_SITE_SUBDIR= ${PORTNAME} \ |
8 |
MASTER_SITE_SUBDIR= ${PORTNAME} \ |
Lines 22-28
Link Here
|
22 |
|
21 |
|
23 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
24 |
NO_OPTIONS_SORT=yes |
23 |
NO_OPTIONS_SORT=yes |
25 |
USES= pkgconfig perl5 shebangfix |
24 |
USES= pkgconfig perl5 shebangfix libtool |
26 |
USE_PERL5= run |
25 |
USE_PERL5= run |
27 |
SHEBANG_FILES= opendkim/opendkim-genkey.in |
26 |
SHEBANG_FILES= opendkim/opendkim-genkey.in |
28 |
SHEBANG_FILES= opendkim/opendkim-genkey* reputation/opendkim-* stats/opendkim-* |
27 |
SHEBANG_FILES= opendkim/opendkim-genkey* reputation/opendkim-* stats/opendkim-* |
Lines 31-154
Link Here
|
31 |
|
30 |
|
32 |
PORTDOCS= * |
31 |
PORTDOCS= * |
33 |
|
32 |
|
|
|
33 |
CONFIGURE_ARGS+= --without-tre |
34 |
|
35 |
OPTIONS_SUB= yes |
34 |
OPTIONS_SINGLE= RESOLV |
36 |
OPTIONS_SINGLE= RESOLV |
35 |
OPTIONS_SINGLE_RESOLV= STOCK_RESOLVER UNBOUND |
37 |
OPTIONS_SINGLE_RESOLV= STOCK_RESOLVER UNBOUND |
36 |
OPTIONS_DEFINE= FILTER GNUTLS LUA MEMCACHED BDB_BASE OPENDBX OPENLDAP \ |
38 |
OPTIONS_DEFINE= FILTER CURL GNUTLS JANSSON LDNS LMDB LUA MEMCACHED \ |
37 |
POPAUTH QUERY_CACHE STATS DEBUG |
39 |
BDB_BASE OPENDBX OPENLDAP POPAUTH QUERY_CACHE SASL |
38 |
OPTIONS_DEFAULT= FILTER LUA UNBOUND |
40 |
OPTIONS_DEFAULT= FILTER LUA UNBOUND |
39 |
|
41 |
|
40 |
STOCK_RESOLVER_DESC= Use the stock resolver library |
42 |
STOCK_RESOLVER_DESC= Use the stock resolver library |
|
|
43 |
|
41 |
UNBOUND_DESC= Use unbound DNS library |
44 |
UNBOUND_DESC= Use unbound DNS library |
|
|
45 |
UNBOUND_CONFIGURE_WITH= unbound |
46 |
UNBOUND_LIB_DEPENDS= libunbound.so:${PORTSDIR}/dns/unbound |
47 |
|
42 |
FILTER_DESC= OpenDKIM filter, requires libmilter/Sendmail |
48 |
FILTER_DESC= OpenDKIM filter, requires libmilter/Sendmail |
|
|
49 |
FILTER_USE= RC_SUBR=milter-opendkim |
50 |
|
51 |
CURL_DESC= Use cURL for web queries |
52 |
CURL_CONFIGURE_WITH= libcurl |
53 |
CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl |
54 |
|
43 |
GNUTLS_DESC= Use GnuTLS instead of OpenSSL |
55 |
GNUTLS_DESC= Use GnuTLS instead of OpenSSL |
|
|
56 |
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls |
57 |
GNUTLS_CONFIGURE_WITH= gnutls |
58 |
GNUTLS_CONFIGURE_OFF= --with-openssl=${OPENSSLBASE} |
59 |
|
60 |
JANSSON_DESC= Statistics and other output as JSON data |
61 |
JANSSON_CONFIGURE_WITH= libjansson |
62 |
JANSSON_LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson |
63 |
|
64 |
LDNS_DESC= Use LDNS library for DNS queries |
65 |
LDNS_CONFIGURE_WITH= ldns |
66 |
LDNS_LIB_DEPENDS= libldns.so:${PORTSDIR}/dns/ldns |
67 |
|
68 |
LMDB_DESC= Use Lightning Memory-Mapped DB key-value store |
69 |
LMDB_CONFIGURE_WITH= lmdb |
70 |
LMDB_LIB_DEPENDS= liblmdb.so:${PORTSDIR}/databases/lmdb |
71 |
|
44 |
LUA_DESC= Describe filter policy with lua |
72 |
LUA_DESC= Describe filter policy with lua |
|
|
73 |
LUA_CONFIGURE_WITH= lua |
74 |
LUA_USES= lua |
75 |
|
45 |
MEMCACHED_DESC= Use memcached as a data set |
76 |
MEMCACHED_DESC= Use memcached as a data set |
|
|
77 |
MEMCACHED_CONFIGURE_WITH= libmemcached |
78 |
MEMCACHED_LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached |
79 |
|
46 |
BDB_BASE_DESC= Use Berkeley DB from base |
80 |
BDB_BASE_DESC= Use Berkeley DB from base |
|
|
81 |
|
47 |
OPENDBX_DESC= Store filter policies via OpenDBX |
82 |
OPENDBX_DESC= Store filter policies via OpenDBX |
|
|
83 |
OPENDBX_CONFIGURE_WITH= odbx |
84 |
OPENDBX_LIB_DEPENDS= libopendbx.so:${PORTSDIR}/databases/opendbx |
85 |
|
48 |
OPENLDAP_DESC= Store filter policies in LDAP |
86 |
OPENLDAP_DESC= Store filter policies in LDAP |
|
|
87 |
OPENLDAP_CONFIGURE_WITH=openldap |
88 |
OPENLDAP_USE= OPENLDAP=yes |
89 |
|
49 |
POPAUTH_DESC= Use POP authentication DB |
90 |
POPAUTH_DESC= Use POP authentication DB |
|
|
91 |
POPAUTH_CONFIGURE_ENABLE= popauth |
92 |
|
50 |
QUERY_CACHE_DESC= Cache DNS query results locally |
93 |
QUERY_CACHE_DESC= Cache DNS query results locally |
51 |
STATS_DESC= Setup statistics tools |
94 |
QUERY_CACHE_CONFIGURE_ENABLE= query_cache |
52 |
DEBUG_DESC= Build with debug symbols |
|
|
53 |
|
95 |
|
|
|
96 |
SASL_DESC= Enable SASL authentication with LDAP |
97 |
SASL_CONFIGURE_WITH= sasl |
98 |
|
99 |
DOCS_CONFIGURE_ON= --docdir=${WRKDIR}/doc |
100 |
|
54 |
MAKE_ARGS+= pkgconfigdir="${PREFIX}/libdata/pkgconfig" |
101 |
MAKE_ARGS+= pkgconfigdir="${PREFIX}/libdata/pkgconfig" |
|
|
102 |
MAKE_ENV= INSTALL_STRIP_FLAG=${STRIP} |
55 |
|
103 |
|
56 |
.include "${.CURDIR}/Makefile.options" |
104 |
.include "${.CURDIR}/Makefile.options" |
|
|
105 |
|
57 |
.include <bsd.port.options.mk> |
106 |
.include <bsd.port.options.mk> |
58 |
|
107 |
|
|
|
108 |
.if ${PORT_OPTIONS:MSASL} && ${PORT_OPTIONS:MOPENLDAP} |
109 |
WANT_OPENLDAP_SASL= yes |
110 |
.endif |
111 |
|
59 |
.if ${PORT_OPTIONS:MFILTER} |
112 |
.if ${PORT_OPTIONS:MFILTER} |
60 |
USE_RC_SUBR= milter-opendkim |
|
|
61 |
PLIST_SUB+= FILTER="" |
62 |
SUB_FILES= pkg-message |
113 |
SUB_FILES= pkg-message |
63 |
WITHOUT_MILTER_CFLAGS= yes |
114 |
WITHOUT_MILTER_CFLAGS= yes |
64 |
WITHOUT_MILTER_LDFLAGS= yes |
115 |
WITHOUT_MILTER_LDFLAGS= yes |
65 |
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" |
116 |
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" |
66 |
CONFIGURE_ARGS+= --with-milter=${MILTERBASE} |
117 |
CONFIGURE_ARGS+= --with-milter=${MILTERBASE} |
67 |
.else |
|
|
68 |
CONFIGURE_ARGS+= --disable-filter |
69 |
PLIST_SUB+= FILTER="@comment " |
70 |
.endif |
118 |
.endif |
71 |
|
119 |
|
72 |
.if ${PORT_OPTIONS:MGNUTLS} |
120 |
.if ${PORT_OPTIONS:MLUA_ONLY_SIGNING} || \ |
73 |
LIB_DEPENDS+= libgnutls.so:${PORTSDIR}/security/gnutls |
121 |
${PORT_OPTIONS:MRBL} |
74 |
CONFIGURE_ARGS+= --with-gnutls=${LOCALBASE} |
122 |
.if !${PORT_OPTIONS:MLUA} |
75 |
.else |
123 |
IGNORE= Options LUA_ONLY_SIGNING and RBL require LUA as well |
76 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} |
|
|
77 |
.endif |
124 |
.endif |
|
|
125 |
.endif |
78 |
|
126 |
|
79 |
.include "${.CURDIR}/Makefile.features" |
127 |
.if ${PORT_OPTIONS:MREPUTATION} |
80 |
|
128 |
.if !${PORT_OPTIONS:MCURL} || !${PORT_OPTIONS:MJANNSON} |
81 |
.if ${PORT_OPTIONS:MDEBUG} |
129 |
IGNORE= Option REPUTATION requires CURL and JANSSON as well |
82 |
CONFIGURE_ARGS+= --enable-debug |
|
|
83 |
.endif |
130 |
.endif |
|
|
131 |
.endif |
84 |
|
132 |
|
85 |
.if ! ${PORT_OPTIONS:MDOCS} |
133 |
.if ${PORT_OPTIONS:MSTATSEXT} |
86 |
CONFIGURE_ARGS+=--docdir=${WRKDIR}/doc |
134 |
.if !${PORT_OPTIONS:MSTATS} || !${PORT_OPTIONS:MLUA} |
|
|
135 |
IGNORE= Option STATSEXT requires STATS and LUA as well |
87 |
.endif |
136 |
.endif |
|
|
137 |
.endif |
88 |
|
138 |
|
89 |
.if ${PORT_OPTIONS:MSTATS} |
139 |
.if ${PORT_OPTIONS:MPOPAUTH} \ |
90 |
CONFIGURE_ARGS+= --enable-stats |
140 |
|| ${PORT_OPTIONS:MQUERY_CACHE} \ |
91 |
PLIST_SUB+= STATS="" |
141 |
|| ${PORT_OPTIONS:MLDAP_CACHING} \ |
92 |
.else |
142 |
|| ${PORT_OPTIONS:MREPUTATION} \ |
93 |
PLIST_SUB+= STATS="@comment " |
|
|
94 |
.endif |
95 |
.if ${PORT_OPTIONS:MPOPAUTH} \ |
96 |
|| ${PORT_OPTIONS:MQUERY_CACHE} \ |
97 |
|| (${PORT_OPTIONS:MFFR} && ${PORT_OPTIONS:MLDAP_CACHING} ) \ |
98 |
|| (${PORT_OPTIONS:MFFR} && ${PORT_OPTIONS:MREPUTATION} ) \ |
99 |
|| ${PORT_OPTIONS:MSTATS} |
143 |
|| ${PORT_OPTIONS:MSTATS} |
100 |
. if ${PORT_OPTIONS:MBDB_BASE} |
144 |
. if ${PORT_OPTIONS:MBDB_BASE} |
101 |
CONFIGURE_ARGS+= --with-db-lib=c |
145 |
CONFIGURE_ARGS+= --with-db-lib=c |
102 |
. else |
146 |
. else |
103 |
CONFIGURE_ARGS+= --with-db-incdir=${BDB_INCLUDE_DIR} \ |
147 |
CONFIGURE_ARGS+= --with-db-incdir=${BDB_INCLUDE_DIR} \ |
104 |
--with-db-libdir=${BDB_LIB_DIR} \ |
148 |
--with-db-libdir=${BDB_LIB_DIR} \ |
105 |
--with-db-lib=${BDB_LIB_NAME} |
149 |
--with-db-lib=${BDB_LIB_NAME} |
106 |
USE_BDB= 40+ |
150 |
USE_BDB= 40+ |
107 |
. endif |
151 |
. endif |
108 |
.endif |
152 |
.endif |
109 |
.if ${PORT_OPTIONS:MUNBOUND} |
|
|
110 |
CONFIGURE_ARGS+= --with-unbound |
111 |
LIB_DEPENDS+= libunbound.so:${PORTSDIR}/dns/unbound |
112 |
.endif |
113 |
.if ${PORT_OPTIONS:MPOPAUTH} |
114 |
CONFIGURE_ARGS+= --enable-popauth |
115 |
.endif |
116 |
.if ${PORT_OPTIONS:MQUERY_CACHE} |
117 |
CONFIGURE_ARGS+= --enable-query_cache |
118 |
.endif |
119 |
.if ${PORT_OPTIONS:MMEMCACHED} |
120 |
CONFIGURE_ARGS+= --with-libmemcached |
121 |
LIB_DEPENDS+= libmemcached.so:${PORTSDIR}/databases/libmemcached |
122 |
.else |
123 |
CONFIGURE_ARGS+= --without-libmemcached |
124 |
.endif |
125 |
.if ${PORT_OPTIONS:MOPENDBX} |
126 |
CONFIGURE_ARGS+= --with-odbx |
127 |
LIB_DEPENDS+= libopendbx.so:${PORTSDIR}/databases/opendbx |
128 |
PLIST_SUB+= ODBX="" |
129 |
.else |
130 |
CONFIGURE_ARGS+= --without-odbx |
131 |
PLIST_SUB+= ODBX="@comment " |
132 |
.endif |
133 |
.if ${PORT_OPTIONS:MOPENLDAP} |
134 |
CONFIGURE_ARGS+= --with-openldap |
135 |
LIB_DEPENDS+= libldap.so:${PORTSDIR}/net/openldap24-sasl-client |
136 |
USE_OPENLDAP= yes |
137 |
.else |
138 |
CONFIGURE_ARGS+= --without-openldap |
139 |
.endif |
140 |
.if ${PORT_OPTIONS:MLUA} |
141 |
CONFIGURE_ARGS+= --with-lua |
142 |
PLIST_SUB+= LUA="" |
143 |
USES+= lua |
144 |
.else |
145 |
PLIST_SUB+= LUA="@comment " |
146 |
.endif |
147 |
|
153 |
|
148 |
pre-configure: |
154 |
pre-configure: |
149 |
${REINPLACE_CMD} -e '/PKG_CONFIG/s/lua5\.2/lua-${LUA_VER}/' \ |
155 |
${REINPLACE_CMD} -e '/LIBLUA_LIBS/s/lua5\.[0-9]/lua-${LUA_VER}/' \ |
150 |
-e '/PKG_CONFIG/s/cyrussasl/libsasl2/' \ |
156 |
-e '/PKG_CONFIG/s/lua5\.[0-9]/lua-${LUA_VER}/' \ |
151 |
${WRKSRC}/configure |
157 |
-e '/PKG_CONFIG/s/cyrussasl/libsasl2/' \ |
|
|
158 |
${WRKSRC}/configure |
152 |
|
159 |
|
153 |
post-patch: |
160 |
post-patch: |
154 |
.if ${PORT_OPTIONS:MLCOV} |
161 |
.if ${PORT_OPTIONS:MLCOV} |
Lines 158-169
Link Here
|
158 |
.endif |
165 |
.endif |
159 |
|
166 |
|
160 |
post-install: |
167 |
post-install: |
161 |
.if ! ${PORT_OPTIONS:MDEBUG} && ${PORT_OPTIONS:MFILTER} |
|
|
162 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/opendkim |
163 |
.endif |
164 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopendkim.so.9 |
165 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail |
168 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail |
166 |
${INSTALL_DATA} ${WRKSRC}/opendkim/opendkim.conf.sample ${STAGEDIR}${PREFIX}/etc/mail/ |
169 |
${INSTALL_DATA} ${WRKSRC}/opendkim/opendkim.conf.sample \ |
|
|
170 |
${STAGEDIR}${PREFIX}/etc/mail/ |
167 |
|
171 |
|
168 |
regression-test: build |
172 |
regression-test: build |
169 |
cd ${WRKSRC} ; ${MAKE} check |
173 |
cd ${WRKSRC} ; ${MAKE} check |