Lines 6-36
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= dspam |
8 |
PORTNAME= dspam |
9 |
PORTVERSION= 2.10.6 |
9 |
PORTVERSION= 3.0.0 |
10 |
CATEGORIES= mail |
10 |
CATEGORIES= mail |
11 |
MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/ |
11 |
MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/ |
12 |
|
12 |
|
13 |
MAINTAINER= rob@debank.tv |
13 |
MAINTAINER= rob@debank.tv |
14 |
COMMENT= A server-side bayesian spam filter |
14 |
COMMENT= A server-side bayesian spam filter |
15 |
|
15 |
|
16 |
OPTIONS= MYSQL "Use MySQL and not db4 as database" off \ |
16 |
## debug / log options |
17 |
MYSQL_COMPRESS "Compress dspam <--> MySQL" off \ |
17 |
OPTIONS= NO_CONFLICTS "DO NOT conflict with dspam-2.x" off |
18 |
MAILDROP "Use Maildrop as local delivery agent" off \ |
18 |
OPTIONS+= DEBUG "Enable debug in DSPAM_HOME/dspam.debug" on |
19 |
PROCMAIL "Use Procmail as local delivery agent" off \ |
19 |
OPTIONS+= VERBOSE_DEBUG "Enable verbose debug" on |
20 |
SENDMAIL_LDA "Use Sendmail as local delivery agent" off \ |
20 |
OPTIONS+= USER_LOGGING "Log mail in DSPAM_HOME/data/user/user.log" on |
21 |
SENDMAIL "Play nice with sendmail server" off \ |
21 |
OPTIONS+= SYSTEM_LOGGING "Log some info DSPAM_HOME/system.log" on |
22 |
QMAIL "Play nice with Qmail mail server" off \ |
22 |
OPTIONS+= SAT "Log spam source addresses to syslog" on |
23 |
ENABLE_SPAM_DELIVERY "Deliver messages marked as spam" off \ |
23 |
## algorithm options |
24 |
SIGNATURE_HEADERS "Put signatures in the header" off \ |
24 |
OPTIONS+= TRAD_BAYES "Enable traditional-bayesian" on |
25 |
WHITELIST "Automatic whitelisting of ham" off \ |
25 |
OPTIONS+= ALT_BAYES "Enable alternative-bayesian" on |
26 |
OPT_IN "Enable opt in" off \ |
26 |
OPTIONS+= RNB "Use Robinson Naive Bayesian calculation" off |
27 |
TRUSTED_USERS "Disable trusted user security" off \ |
27 |
OPTIONS+= CHI_SQUARE "Use Fisher-Robinson Inv Chi-Square" off |
28 |
TUM "Enables TuM (Train until Mature)" off \ |
28 |
OPTIONS+= RPV "Use Robinson technique combining p-values" off |
29 |
ALT_BAYESIAN "Enable alternative-bayesian" on \ |
29 |
OPTIONS+= TEST_COND "More inoculous results rapidly, risk fps" on |
30 |
NO_BIAS "Disable bias" off \ |
30 |
OPTIONS+= NO_BIAS "No bias toward innocent mail" off |
31 |
VIRT_USERS "Enable virtual users (needs MYSQL)" off \ |
31 |
OPTIONS+= WHITELIST "Automatic whitelisting of ham" off |
32 |
SAT "Enable spam source address logging" off \ |
32 |
OPTIONS+= NEURAL_NET "Enable neural networking" off |
33 |
VERBOSE_DEBUG "Enable verbose debug" off |
33 |
## run-time configure options |
|
|
34 |
OPTIONS+= HOMEDIR_DOT "Dot files in ~/USER not DSPAM_HOME" off |
35 |
OPTIONS+= OPT_IN "Run only for users with .dspam" off |
36 |
OPTIONS+= TRUSTED_USERS "Disable trusted user security" off |
37 |
## mesage taging options |
38 |
OPTIONS+= SPAM_SUBJ "Prepends SPAM to the Subject header" off |
39 |
OPTIONS+= SIGNATURE_HEADERS "Put signatures IDs in the header" off |
40 |
OPTIONS+= WEBMAIL "Only with mail stored server-side" off |
41 |
## back-end |
42 |
OPTIONS+= MYSQL "Use MySQL as back-end" off |
43 |
OPTIONS+= MYSQL_COMPRESS "Compress dspam <--> MySQL" off |
44 |
OPTIONS+= POSTGRESQL73 "Use PostgreSQL v.7.3 as back-end" off |
45 |
OPTIONS+= POSTGRESQL74 "Use PostgreSQL v.7.4 as back-end" off |
46 |
#OPTIONS+= PGSQL_INSTALLED "You have the client installed" on |
47 |
OPTIONS+= ORACLE "Use Oracle as back-end (BROKEN)" off |
48 |
OPTIONS+= VIRT_USERS "Enable virtual users (needs SQL back-end)" off |
49 |
OPTIONS+= LONG_USERNAMES "Usernames longer that OS supports" off |
50 |
OPTIONS+= LARGE_SCALE "File structure for large scale" off |
51 |
OPTIONS+= DOMAIN_SCALE "File structure for multiple domains" off |
52 |
OPTIONS+= SIGNATURE_ATACH "Put server-side signature in mails" off |
53 |
## MTA and LDA |
54 |
OPTIONS+= MAILDROP "Use Maildrop as local delivery agent" off |
55 |
OPTIONS+= PROCMAIL "Use Procmail as local delivery agent" off |
56 |
OPTIONS+= SENDMAIL_LDA "Use Sendmail as local delivery agent" off |
57 |
OPTIONS+= SENDMAIL "Play nice with sendmail server" off |
58 |
OPTIONS+= QMAIL "Play nice with Qmail mail server" off |
59 |
OPTIONS+= BROKEN_ERR_CODES "99=spam, 0=not, other=error (qmailish)" off |
60 |
OPTIONS+= BROKEN_MTA "Enable if MTA pases ^M to dspam" off |
61 |
OPTIONS+= CGI "Install CGI (pulls in apache)" off |
34 |
|
62 |
|
35 |
USE_LIBTOOL_VER=13 |
63 |
USE_LIBTOOL_VER=13 |
36 |
USE_REINPLACE= yes |
64 |
USE_REINPLACE= yes |
Lines 47-52
Link Here
|
47 |
|
75 |
|
48 |
.include <bsd.port.pre.mk> |
76 |
.include <bsd.port.pre.mk> |
49 |
|
77 |
|
|
|
78 |
.if !defined(WITH_NO_CONFLICTS) |
79 |
CONFLICTS= dspam-2* |
80 |
.endif |
81 |
|
82 |
.if defined(WITH_DEBUG) |
83 |
CONFIGURE_ARGS+= --enable-debug |
84 |
.else |
85 |
CONFIGURE_ARGS+= --disable-debug |
86 |
.endif |
87 |
|
88 |
.if defined(WITH_VERBOSE_DEBUG) |
89 |
CONFIGURE_ARGS+= --enable-verbose-debug |
90 |
.else |
91 |
CONFIGURE_ARGS+= --disable-verbose-debug |
92 |
.endif |
93 |
|
94 |
.if defined(WITH_SYSTEM_LOGGING) |
95 |
CONFIGURE_ARGS+= --enable-logging |
96 |
.else |
97 |
CONFIGURE_ARGS+= --disable-system-logging |
98 |
.endif |
99 |
|
100 |
.if defined(WITH_USER_LOGGING) |
101 |
CONFIGURE_ARGS+= --disable-user-logging |
102 |
.else |
103 |
CONFIGURE_ARGS+= --enable-user-logging |
104 |
.endif |
105 |
|
106 |
.if defined(WITH_SAT) |
107 |
CONFIGURE_ARGS+= --enable-source-address-tracking |
108 |
.endif |
109 |
|
110 |
.if defined(WITH_TRAD_BAYES) |
111 |
CONFIGURE_ARGS+= --enable-traditional-bayesian |
112 |
.else |
113 |
CONFIGURE_ARGS+= --disable-traditional-bayesian |
114 |
.endif |
115 |
|
116 |
.if defined(WITH_ALT_BAYES) |
117 |
CONFIGURE_ARGS+= --enable-alternative-bayesian |
118 |
.else |
119 |
CONFIGURE_ARGS+= --disable-alternative-bayesian |
120 |
.endif |
121 |
|
122 |
.if defined(WITH_RNB) |
123 |
CONFIGURE_ARGS+= --enable-robinson |
124 |
else |
125 |
CONFIGURE_ARGS+= --disable-robinson |
126 |
.endif |
127 |
|
128 |
.if defined(WITH_CHI_SQUARE) |
129 |
CONFIGURE_ARGS+= --enable-robinson |
130 |
.else |
131 |
CONFIGURE_ARGS+= --disable-robinson |
132 |
.endif |
133 |
|
134 |
.if defined(WITH_RPV) |
135 |
CONFIGURE_ARGS+= --enable-robinson-pvalues |
136 |
.else |
137 |
CONFIGURE_ARGS+= --disable-robinson-pvalues |
138 |
.endif |
139 |
|
140 |
.if defined(WITH_TEST_COND) |
141 |
CONFIGURE_ARGS+= --enable-test-conditional |
142 |
.else |
143 |
CONFIGURE_ARGS+= --disable-test-conditional |
144 |
.endif |
145 |
|
146 |
.if defined(WITH_NO_BIAS) |
147 |
CONFIGURE_ARGS+= --disable-bias |
148 |
.endif |
149 |
|
150 |
.if defined(WITH_WHITELIST) |
151 |
CONFIGURE_ARGS+= --enable-whitelist |
152 |
.endif |
153 |
|
154 |
.if defined(WITH_NEURAL_NET) |
155 |
CONFIGURE_ARGS+= --enable-neural-networking |
156 |
#NEED_M_P=. @${TRUE} |
157 |
.endif |
158 |
|
159 |
.if defined(WITH_HOMEDIR_DOT) |
160 |
CONFIGURE_ARGS+= --enable-homedir-dotfiles |
161 |
.endif |
162 |
|
163 |
.if defined(WITH_OPT_IN) |
164 |
CONFIGURE_ARGS+= --enable-opt-in |
165 |
.endif |
166 |
|
167 |
.if defined(WITH_TRUSTED_USERS) |
168 |
CONFIGURE_ARGS+= --disable-trusted-user-security |
169 |
.endif |
170 |
|
171 |
.if defined(WITH_SPAM_SUBJ) |
172 |
CONFIGURE_ARGS+= --enable-spam-subject |
173 |
.endif |
174 |
|
175 |
.if defined(WITH_SIGNATURE_HEADERS) |
176 |
CONFIGURE_ARGS+= --enable-signature-headers |
177 |
.endif |
178 |
|
179 |
.if defined(SIGNATURE_ATACH) |
180 |
CONFIGURE_ARGS+= --enable-signature-attachments |
181 |
.endif |
182 |
|
183 |
.if defined(WITH_WEBMAIL) |
184 |
CONFIGURE_ARGS+= --enable-webmail |
185 |
.endif |
186 |
|
50 |
.if defined(WITH_MYSQL) |
187 |
.if defined(WITH_MYSQL) |
51 |
USE_MYSQL= yes |
188 |
USE_MYSQL= yes |
52 |
CONFIGURE_ARGS+= --with-storage-driver=mysql_drv \ |
189 |
CONFIGURE_ARGS+= --with-storage-driver=mysql_drv \ |
Lines 54-93
Link Here
|
54 |
--with-mysql-libraries=${LOCALBASE}/lib/mysql |
191 |
--with-mysql-libraries=${LOCALBASE}/lib/mysql |
55 |
PLIST_SUB+= DB4="@comment " |
192 |
PLIST_SUB+= DB4="@comment " |
56 |
PLIST_SUB+= MYSQL="" |
193 |
PLIST_SUB+= MYSQL="" |
|
|
194 |
PLIST_SUB+= PGSQL="@comment " |
57 |
SED_SCRIPT+= -e 's,%%MYSQL%%,,g' |
195 |
SED_SCRIPT+= -e 's,%%MYSQL%%,,g' |
58 |
.else |
196 |
SED_SCRIPT+= -e '/%%PGSQL%%/D' |
|
|
197 |
.if defined(WITH_MYSQL_COMPRESS) |
198 |
CONFIGURE_ARGS+= --enable-client-compression |
199 |
.endif |
200 |
.endif |
201 |
|
202 |
.if defined(WITH_POSTGRESQL73) |
203 |
LIB_DEPENDS= pq.3:${PORTSDIR}/databases/postgresql73 |
204 |
#BUILD_DEPENDS= ${LIB_DEPENDS} |
205 |
CONFIGURE_ARGS+= --with-storage-driver=pgsql_drv \ |
206 |
--with-pgsql-includes=${LOCALBASE}/include \ |
207 |
--with-pgsql-libraries=${LOCALBASE}/lib |
208 |
PLIST_SUB+= DB4="@comment " |
209 |
PLIST_SUB+= MYSQL="@comment " |
210 |
PLIST_SUB+= PGSQL="" |
211 |
SED_SCRIPT+= -e '/%%MYSQL%%/D' |
212 |
SED_SCRIPT+= -e 's,%%PGSQL%%,,g' |
213 |
.endif |
214 |
|
215 |
.if defined(WITH_POSTGRESQL74) |
216 |
LIB_DEPENDS= ecpg.4:${PORTSDIR}/databases/postgresql7 |
217 |
#BUILD_DEPENDS= ${LIB_DEPENDS} |
218 |
CONFIGURE_ARGS+= --with-storage-driver=pgsql_drv \ |
219 |
--with-pgsql-includes=${LOCALBASE}/include \ |
220 |
--with-pgsql-libraries=${LOCALBASE}/lib |
221 |
PLIST_SUB+= DB4="@comment " |
222 |
PLIST_SUB+= MYSQL="@comment " |
223 |
PLIST_SUB+= PGSQL="" |
224 |
SED_SCRIPT+= -e '/%%MYSQL%%/D' |
225 |
SED_SCRIPT+= -e 's,%%PGSQL%%,,g' |
226 |
.endif |
227 |
|
228 |
.if defined(WITH_ORACLE) |
229 |
BUILD_DEPENDS= ${LOCALBASE}/oracle7/rdbms/lib/libnlsrtl3.a:${PORTSDIR}/databases/oracle7-client |
230 |
CONFIGURE_ARGS+= --with-storage-driver=ora_drv \ |
231 |
--with-oracle-home= ${LOCALBASE}/oracle7 |
232 |
.endif |
233 |
|
234 |
.if defined(WITH_VIRT_USERS) |
235 |
CONFIGURE_ARGS+= --enable-virtual-users |
236 |
#NEED_M_P=. @${TRUE} |
237 |
.endif |
238 |
|
239 |
.if !(defined(WITH_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE)) |
59 |
LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41 |
240 |
LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41 |
60 |
CONFIGURE_ARGS+= --with-db4-includes=${LOCALBASE}/include/db41 |
241 |
CONFIGURE_ARGS+= --with-db4-includes=${LOCALBASE}/include/db41 |
61 |
PLIST_SUB+= DB4="" |
242 |
PLIST_SUB+= DB4="" |
62 |
PLIST_SUB+= MYSQL="@comment " |
243 |
PLIST_SUB+= MYSQL="@comment " |
|
|
244 |
PLIST_SUB+= PGSQL="@comment " |
63 |
SED_SCRIPT+= -e '/%%MYSQL%%/D' |
245 |
SED_SCRIPT+= -e '/%%MYSQL%%/D' |
|
|
246 |
SED_SCRIPT+= -e '/%%PGSQL%%/D' |
64 |
.endif |
247 |
.endif |
65 |
|
248 |
|
66 |
.if defined(WITH_MYSQL_COMPRESS) |
249 |
.if defined(WITH_LONG_USERNAMES) |
67 |
CONFIGURE_ARGS+= --enable-client-compression |
250 |
CONFIGURE_ARGS+= --enable-long-usernames |
68 |
.endif |
251 |
.endif |
69 |
|
252 |
.if defined(WITH_LARGE_SCALE) |
70 |
.if defined(DSPAM_USERDIR) |
253 |
CONFIGURE_ARGS+= --enable-large-scale |
71 |
CONFIGURE_ARGS+=--with-userdir=${DSPAM_USERDIR} |
254 |
.endif |
72 |
.else |
255 |
.if defined(WITH_DOMAIN_SCALE) |
73 |
CONFIGURE_ARGS+=--with-userdir=${PREFIX}/etc/dspam |
256 |
CONFIGURE_ARGS+= --enable-domain-scale |
74 |
.endif |
257 |
.endif |
75 |
|
258 |
|
76 |
.if defined(WITH_MAILDROP) |
259 |
.if defined(WITH_MAILDROP) |
77 |
RUN_DEPENDS+= maildrop:${PORTSDIR}/mail/maildrop |
260 |
RUN_DEPENDS+= maildrop:${PORTSDIR}/mail/maildrop |
78 |
CONFIGURE_ARGS+= --with-local-delivery-agent='${LOCALBASE}/bin/maildrop $u' |
261 |
CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/bin/maildrop $u' |
79 |
.endif |
262 |
.endif |
80 |
|
263 |
|
81 |
.if defined(WITH_PROCMAIL) |
264 |
.if defined(WITH_PROCMAIL) |
82 |
RUN_DEPENDS+= procmail:${PORTSDIR}/mail/procmail |
265 |
RUN_DEPENDS+= procmail:${PORTSDIR}/mail/procmail |
83 |
CONFIGURE_ARGS+= --with-local-delivery-agent='${LOCALBASE}/bin/procmail $u' |
266 |
CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/bin/procmail $u' |
84 |
.endif |
267 |
.endif |
85 |
|
268 |
|
86 |
.if defined(WITH_SENDMAIL_LDA) && exists(/usr/sbin/sendmail) |
269 |
.if defined(WITH_SENDMAIL_LDA) && exists(/usr/sbin/sendmail) |
87 |
CONFIGURE_ARGS+= --with-local-delivery-agent=/usr/sbin/sendmail |
270 |
CONFIGURE_ARGS+= --with-delivery-agent=/usr/sbin/sendmail |
88 |
.else |
271 |
.else |
89 |
.if defined(WITH_SENDMAIL_LDA) && exists(${LOCALBASE}/sbin/sendmail) |
272 |
.if defined(WITH_SENDMAIL_LDA) && exists(${LOCALBASE}/sbin/sendmail) |
90 |
CONFIGURE_ARGS+= --with-local-delivery-agent='${LOCALBASE}/sbin/sendmail' |
273 |
CONFIGURE_ARGS+= --with-delivery-agent='${LOCALBASE}/sbin/sendmail' |
91 |
.endif |
274 |
.endif |
92 |
.endif |
275 |
.endif |
93 |
|
276 |
|
Lines 99-157
Link Here
|
99 |
CONFIGURE_ARGS+= --with-dspam-mode=4511 |
282 |
CONFIGURE_ARGS+= --with-dspam-mode=4511 |
100 |
.endif |
283 |
.endif |
101 |
|
284 |
|
102 |
.if defined(WITH_SIGNATURE_LIFE) |
285 |
.if defined(WITH_BROKEN_ERR_CODES) |
103 |
CONFIGURE_ARGS+= --with-signature-life=${WITH_SIGNATURE_LIFE} |
286 |
CONFIGURE_ARGS+= --enable-broken-return-codes |
104 |
.endif |
|
|
105 |
|
106 |
.if defined(WITH_ENABLE_SPAM_DELIVERY) |
107 |
CONFIGURE_ARGS+= --enable-spam-delivery |
108 |
.endif |
109 |
|
110 |
.if defined(WITH_SIGNATURE_HEADERS) |
111 |
CONFIGURE_ARGS+= --enable-signature-headers |
112 |
.endif |
287 |
.endif |
113 |
|
288 |
|
114 |
.if defined(WITH_WHITELIST) |
289 |
.if defined(DSPAM_HOME) |
115 |
CONFIGURE_ARGS+= --enable-whitelist |
290 |
CONFIGURE_ARGS+=--with-dspam-home=${DSPAM_HOME} |
|
|
291 |
.else |
292 |
CONFIGURE_ARGS+=--with-dspam-home=${PREFIX}/etc/dspam |
116 |
.endif |
293 |
.endif |
117 |
|
294 |
|
118 |
.if defined(WITH_OPT_IN) |
295 |
# --with-dspam-home=DIR Specify directory where per-user dictionaries |
119 |
CONFIGURE_ARGS+= --enable-opt-in |
296 |
# --with-dspam-home-mode=MODE Set access mode for DSPAM_HOME |
120 |
.endif |
297 |
# --with-dspam-home-owner=OWNER Set owner for DSPAM_HOME |
|
|
298 |
# --with-dspam-home-group=GROUP Set group for DSPAM_HOME |
121 |
|
299 |
|
122 |
.if defined(WITH_TRUSTED_USERS) |
300 |
# --with-dspam-mode=MODE Set access mode for dspam binary |
123 |
CONFIGURE_ARGS+= --disable-trusted-user-security |
301 |
# --with-dspam-owner=OWNER Set owner for dspam binary |
124 |
.endif |
302 |
# --with-dspam-group=GROUP Set group for dspam binary |
125 |
|
303 |
|
126 |
.if defined(WITH_TUM) |
304 |
.if defined(WITH_BROKEN_MTA) |
127 |
CONFIGURE_ARGS+= --enable-tum |
305 |
CONFIGURE_ARGS+= --enable-broken-mta |
128 |
.endif |
306 |
.endif |
129 |
|
307 |
|
130 |
.if defined(WITH_ALT_BAYESIAN) |
308 |
.if defined(WITH_SIGNATURE_LIFE) |
131 |
CONFIGURE_ARGS+= --enable-alternative-bayesian |
309 |
CONFIGURE_ARGS+= --with-signature-life=${WITH_SIGNATURE_LIFE} |
132 |
.endif |
310 |
.endif |
133 |
|
311 |
|
134 |
.if defined(WITH_NO_BIAS) |
312 |
.if defined(QUARANTINE_AGENT) |
135 |
CONFIGURE_ARGS+= --disable-bias |
313 |
CONFIGURE_ARGS+= --with-quarantine-agent=${QUARANTINE_AGENT} |
136 |
.endif |
314 |
.endif |
137 |
|
315 |
|
138 |
.if defined(WITH_VIRT_USERS) |
316 |
.if defined(WITH_CGI) |
139 |
CONFIGURE_ARGS+= --enable-virtual-users |
317 |
RUN_DEPENDS= ${LOCALBASE}/etc/apache/httpd.conf:${PORTSDIR}/${APACHE_PORT} |
140 |
.endif |
318 |
.endif |
141 |
|
319 |
|
142 |
.if defined(WITH_SAT) |
320 |
MAN1= dspam.1 dspam_clean.1 dspam_corpus.1 dspam_dump.1 dspam_merge.1 dspam_stats.1 |
143 |
CONFIGURE_ARGS+= --enable-source-address-tracking |
|
|
144 |
.endif |
145 |
|
321 |
|
146 |
.if defined(WITH_VERBOSE_DEBUG) |
322 |
DOCS= CHANGELOG README LICENSE RELEASE.NOTES |
147 |
CONFIGURE_ARGS+= --enable-verbose-debug |
|
|
148 |
.endif |
149 |
|
323 |
|
150 |
DOCS= CHANGE README |
324 |
pre-everything:: |
|
|
325 |
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL |
151 |
|
326 |
|
152 |
post-patch: |
327 |
post-patch: |
153 |
@${REINPLACE_CMD} -e 's|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g ; \ |
328 |
@${REINPLACE_CMD} -e 's|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g ; \ |
154 |
s|-ldb-4.1|-ldb41|g' ${WRKSRC}/configure |
329 |
s|-ldb-4.1|-ldb41|g' ${WRKSRC}/configure |
|
|
330 |
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \ |
331 |
${WRKSRC}/Makefile.in |
155 |
|
332 |
|
156 |
pre-configure: |
333 |
pre-configure: |
157 |
.if defined(WITH_MAILDROP) && (defined(WITH_PROCMAIL) || defined(WITH_SENDMAIL_LDA)) |
334 |
.if defined(WITH_MAILDROP) && (defined(WITH_PROCMAIL) || defined(WITH_SENDMAIL_LDA)) |
Lines 162-178
Link Here
|
162 |
@${ECHO_CMD} "You can only use one local delivery agent at once." |
339 |
@${ECHO_CMD} "You can only use one local delivery agent at once." |
163 |
@${FALSE} |
340 |
@${FALSE} |
164 |
.endif |
341 |
.endif |
165 |
.if !defined(WITH_MYSQL) && (defined(WITH_MYSQL_COMPRESS) || defined(WITH_VIRT_USERS)) |
342 |
.if defined(WITH_NEURAL_NET) && !(defined(WITH_MYSQL) || defined(WITH_POSTGRESQL)) |
166 |
@${ECHO_CMD} "You need MySQL support to use this feature." |
343 |
@${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking." |
|
|
344 |
@${FALSE} |
345 |
.endif |
346 |
.if defined(WITH_VIRT_USERS) && !(defined(WITH_MYSQL) || defined(WITH_POSTGRESQL) || defined(WITH_ORACLE)) |
347 |
@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users." |
167 |
@${FALSE} |
348 |
@${FALSE} |
168 |
.endif |
349 |
.endif |
169 |
|
350 |
|
170 |
post-install: |
351 |
post-install: |
171 |
.if defined(WITH_MYSQL) |
352 |
.if defined(WITH_MYSQL) |
172 |
@${MKDIR} ${EXAMPLESDIR} |
353 |
@${MKDIR} ${EXAMPLESDIR}/mysql |
173 |
cd ${WRKSRC}/tools.mysql_drv && \ |
354 |
cd ${WRKSRC}/tools.mysql_drv && \ |
174 |
${INSTALL_DATA} README *.sql* ${EXAMPLESDIR} |
355 |
${INSTALL_DATA} README *.sql* ${EXAMPLESDIR}/mysql |
175 |
${INSTALL_DATA} ${FILESDIR}/mysql.data ${EXAMPLESDIR} |
356 |
${INSTALL_DATA} ${FILESDIR}/mysql.data ${EXAMPLESDIR}/mysql |
|
|
357 |
.endif |
358 |
.if defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) |
359 |
${MKDIR} ${EXAMPLESDIR}/pgsql |
360 |
cd ${WRKSRC}/tools.pgsql_drv && \ |
361 |
${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/pgsql |
362 |
${INSTALL_DATA} ${FILESDIR}/pgsql.data ${EXAMPLESDIR}/pgsql |
176 |
.endif |
363 |
.endif |
177 |
.if !defined(NOPORTDOCS) |
364 |
.if !defined(NOPORTDOCS) |
178 |
@${MKDIR} ${DOCSDIR} |
365 |
@${MKDIR} ${DOCSDIR} |