Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= spamd |
4 |
PORTNAME= spamd |
5 |
PORTVERSION= 4.9.1 |
5 |
PORTVERSION= 4.9.1 |
6 |
PORTREVISION= 2 |
6 |
PORTREVISION= 3 |
7 |
CATEGORIES= mail |
7 |
CATEGORIES= mail |
8 |
MASTER_SITES= SF/freebsdspamd/spamd |
8 |
MASTER_SITES= SF/freebsdspamd/spamd |
9 |
|
9 |
|
Lines 17-22
Link Here
|
17 |
USERS= _spamd |
17 |
USERS= _spamd |
18 |
GROUPS= _spamd |
18 |
GROUPS= _spamd |
19 |
|
19 |
|
|
|
20 |
USE_OPENSSL= yes |
21 |
|
20 |
PORTDOCS= ipfw-spamd.txt spamdb.txt |
22 |
PORTDOCS= ipfw-spamd.txt spamdb.txt |
21 |
|
23 |
|
22 |
PLIST_FILES= %%ETCDIR%%/spamd.conf.sample \ |
24 |
PLIST_FILES= %%ETCDIR%%/spamd.conf.sample \ |
Lines 29-35
Link Here
|
29 |
man/man8/spamdb.8.gz \ |
31 |
man/man8/spamdb.8.gz \ |
30 |
man/man8/spamlogd.8.gz |
32 |
man/man8/spamlogd.8.gz |
31 |
|
33 |
|
32 |
PLIST_SUB= SPAMDUSER=${USERS} \ |
34 |
SUB_LIST= SPAMDUSER=${USERS} \ |
33 |
SPAMDGROUP=${GROUPS} |
35 |
SPAMDGROUP=${GROUPS} |
34 |
|
36 |
|
35 |
# If you are a CPANEL user the this option is for you! |
37 |
# If you are a CPANEL user the this option is for you! |
Lines 39-60
Link Here
|
39 |
# be adjusted. Man page and pid file will not be renamed! |
41 |
# be adjusted. Man page and pid file will not be renamed! |
40 |
.if !defined(CPANEL) |
42 |
.if !defined(CPANEL) |
41 |
PLIST_FILES+= libexec/spamd |
43 |
PLIST_FILES+= libexec/spamd |
42 |
PLIST_SUB+= SPAMDBIN=spamd |
44 |
SUB_LIST+= SPAMDBIN=spamd |
43 |
.else |
45 |
.else |
44 |
PLIST_FILES+= libexec/obspamd |
46 |
PLIST_FILES+= libexec/obspamd |
45 |
PLIST_SUB+= SPAMDBIN=obspamd |
47 |
SUB_LIST+= SPAMDBIN=obspamd |
46 |
.endif |
48 |
.endif |
47 |
|
49 |
|
48 |
SUB_FILES= pkg-install \ |
50 |
SUB_FILES= pkg-install \ |
49 |
pkg-message |
51 |
pkg-message |
50 |
|
52 |
|
51 |
SUB_LIST= PREFIX=${PREFIX} \ |
|
|
52 |
${PLIST_SUB} |
53 |
|
54 |
OPTIONS_DEFINE= DOCS |
53 |
OPTIONS_DEFINE= DOCS |
55 |
|
54 |
|
56 |
.include <bsd.port.options.mk> |
55 |
.include <bsd.port.pre.mk> |
57 |
|
56 |
|
|
|
57 |
CFLAGS+= -I${OPENSSLINC} |
58 |
LDFLAGS+= -L${OPENSSLLIB} |
59 |
|
58 |
do-install: |
60 |
do-install: |
59 |
.if !defined(CPANEL) |
61 |
.if !defined(CPANEL) |
60 |
${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${STAGEDIR}${PREFIX}/libexec |
62 |
${INSTALL_PROGRAM} ${WRKSRC}/spamd/spamd ${STAGEDIR}${PREFIX}/libexec |
Lines 69-78
Link Here
|
69 |
${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${STAGEDIR}${PREFIX}/man/man8 |
71 |
${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${STAGEDIR}${PREFIX}/man/man8 |
70 |
${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${STAGEDIR}${PREFIX}/man/man8 |
72 |
${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${STAGEDIR}${PREFIX}/man/man8 |
71 |
${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${STAGEDIR}${PREFIX}/man/man8 |
73 |
${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${STAGEDIR}${PREFIX}/man/man8 |
72 |
${INSTALL} -d ${STAGEDIR}${ETCDIR} |
74 |
@${MKDIR} ${STAGEDIR}${ETCDIR} |
73 |
${INSTALL_DATA} ${WRKSRC}/etc/spamd.conf ${STAGEDIR}${ETCDIR}/spamd.conf.sample |
75 |
${INSTALL_DATA} ${WRKSRC}/etc/spamd.conf ${STAGEDIR}${ETCDIR}/spamd.conf.sample |
74 |
|
76 |
|
75 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
77 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
76 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}/ |
78 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}/ |
77 |
|
79 |
|
78 |
.include <bsd.port.mk> |
80 |
.include <bsd.port.post.mk> |