Lines 2-31
Link Here
|
2 |
# $FreeBSD: head/mail/milter-greylist-devel/Makefile 364628 2014-08-11 17:05:50Z adamw $ |
2 |
# $FreeBSD: head/mail/milter-greylist-devel/Makefile 364628 2014-08-11 17:05:50Z adamw $ |
3 |
|
3 |
|
4 |
PORTNAME= milter-greylist |
4 |
PORTNAME= milter-greylist |
5 |
PORTVERSION= 4.5.7 |
5 |
PORTVERSION= 4.5.11 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= mail |
6 |
CATEGORIES= mail |
8 |
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/ \ |
7 |
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/ \ |
9 |
http://fossies.org/unix/privat/ |
8 |
http://fossies.org/unix/privat/ \ |
|
|
9 |
ftp://ftpmirror.uk/freebsd-ports/milter-greylist/ |
10 |
PKGNAMESUFFIX= -devel |
10 |
PKGNAMESUFFIX= -devel |
11 |
EXTRACT_SUFX= .tgz |
11 |
EXTRACT_SUFX= .tgz |
12 |
|
12 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= freebsd-ports@dan.me.uk |
14 |
COMMENT= Easy-to-use greylist milter for sendmail and postfix (development) |
14 |
COMMENT= Easy-to-use greylist milter for sendmail and postfix (development) |
15 |
|
15 |
|
16 |
LICENSE= BSD |
16 |
LICENSE= BSD3CLAUSE |
17 |
|
17 |
|
18 |
CONFLICTS= milter-greylist-4.2.* milter-greylist-4.4.* |
18 |
CONFLICTS= milter-greylist-[0-9]*.* |
19 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
19 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
20 |
|
20 |
|
21 |
MAKE_JOBS_UNSAFE= yes |
21 |
MAKE_JOBS_UNSAFE= yes |
22 |
|
22 |
|
23 |
OPTIONS_DEFINE= LIBSPF2 GEOIP CURL LDAP POSTFIX |
23 |
OPTIONS_DEFINE= MANPAGES SPF GEOIP CURL LDAP P0F POSTFIX DOCS EXAMPLES |
24 |
LIBSPF2_DESC= Include SPF support |
24 |
OPTIONS_DEFAULT= MANPAGES |
|
|
25 |
SPF_DESC= Include SPF support |
26 |
CURL_DESC= curl support |
27 |
P0F_DESC= P0F support |
25 |
POSTFIX_DESC= Use Postfix instead of Sendmail |
28 |
POSTFIX_DESC= Use Postfix instead of Sendmail |
26 |
|
29 |
|
27 |
NO_STAGE= yes |
30 |
.include <bsd.port.options.mk> |
28 |
.include <bsd.port.pre.mk> |
|
|
29 |
|
31 |
|
30 |
## |
32 |
## |
31 |
# Use the following quirks to choose which sendmail to use (ports or system): |
33 |
# Use the following quirks to choose which sendmail to use (ports or system): |
Lines 38-50
Link Here
|
38 |
# installed port preference over it. |
40 |
# installed port preference over it. |
39 |
## |
41 |
## |
40 |
|
42 |
|
41 |
MAN5= greylist.conf.5 |
43 |
.if ${PORT_OPTIONS:MMANPAGES} |
42 |
MAN8= milter-greylist.8 |
44 |
PLIST_FILES+= man/man5/greylist.conf.5.gz \ |
43 |
|
45 |
man/man8/milter-greylist.8.gz |
|
|
46 |
.endif |
44 |
## |
47 |
## |
45 |
# If you have a reentrant resolver (starting with RELENG_5_2) you can use SPF |
48 |
# If you have a reentrant resolver (starting with RELENG_5_2) you can use SPF |
46 |
## |
49 |
## |
47 |
.if ${PORT_OPTIONS:MLIBSPF2} |
50 |
.if ${PORT_OPTIONS:MSPF} |
48 |
BUILD_DEPENDS+= libspf2>=1.2.5:${PORTSDIR}/mail/libspf2 |
51 |
BUILD_DEPENDS+= libspf2>=1.2.5:${PORTSDIR}/mail/libspf2 |
49 |
CONFIGURE_ARGS+= --with-libspf2=${LOCALBASE} |
52 |
CONFIGURE_ARGS+= --with-libspf2=${LOCALBASE} |
50 |
.endif |
53 |
.endif |
Lines 60-65
Link Here
|
60 |
USE_OPENLDAP=yes |
63 |
USE_OPENLDAP=yes |
61 |
CONFIGURE_ARGS+= --with-openldap |
64 |
CONFIGURE_ARGS+= --with-openldap |
62 |
.endif |
65 |
.endif |
|
|
66 |
.if ${PORT_OPTIONS:MP0F} |
67 |
RUN_DEPENDS+= p0f:${PORTSDIR}/net-mgmt/p0f |
68 |
CONFIGURE_ARGS+= --enable-p0f306 |
69 |
.endif |
63 |
.if ${PORT_OPTIONS:MPOSTFIX} |
70 |
.if ${PORT_OPTIONS:MPOSTFIX} |
64 |
CONFIGURE_ARGS+= --enable-postfix |
71 |
CONFIGURE_ARGS+= --enable-postfix |
65 |
.else |
72 |
.else |
Lines 73-79
Link Here
|
73 |
|
80 |
|
74 |
GNU_CONFIGURE= yes |
81 |
GNU_CONFIGURE= yes |
75 |
CONFIGURE_ARGS+= --with-user=mailnull --with-libmilter=${MILTERBASE} \ |
82 |
CONFIGURE_ARGS+= --with-user=mailnull --with-libmilter=${MILTERBASE} \ |
76 |
--enable-dnsrbl --with-thread-safe-resolver |
83 |
--enable-dnsrbl --with-thread-safe-resolver \ |
|
|
84 |
--with-dumpfile=/var/milter-greylist/greylist.db |
77 |
|
85 |
|
78 |
ALL_TARGET= milter-greylist |
86 |
ALL_TARGET= milter-greylist |
79 |
SUB_FILES+= pkg-message |
87 |
SUB_FILES+= pkg-message |
Lines 81-103
Link Here
|
81 |
USE_RC_SUBR= milter-greylist |
89 |
USE_RC_SUBR= milter-greylist |
82 |
|
90 |
|
83 |
do-install: |
91 |
do-install: |
84 |
@${MKDIR} ${PREFIX}/etc/mail |
92 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail |
85 |
@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5 |
93 |
.if ${PORT_OPTIONS:MMANPAGES} |
86 |
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8 |
94 |
@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${STAGEDIR}${PREFIX}/man/man5 |
87 |
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/libexec |
95 |
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${STAGEDIR}${PREFIX}/man/man8 |
|
|
96 |
.endif |
97 |
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${STAGEDIR}${PREFIX}/libexec/ |
88 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \ |
98 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \ |
89 |
${PREFIX}/etc/mail/greylist.conf.sample |
99 |
${STAGEDIR}${PREFIX}/etc/mail/greylist.conf.sample |
90 |
|
100 |
|
91 |
post-install: |
101 |
post-install: |
92 |
@${MKDIR} /var/milter-greylist |
|
|
93 |
@${CHOWN} -R mailnull /var/milter-greylist |
94 |
.if ${PORT_OPTIONS:MDOCS} |
102 |
.if ${PORT_OPTIONS:MDOCS} |
95 |
@${MKDIR} ${DOCSDIR} |
103 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
96 |
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
104 |
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ |
97 |
.endif |
105 |
.endif |
98 |
.if ${PORT_OPTIONS:MEXAMPLES} |
106 |
.if ${PORT_OPTIONS:MEXAMPLES} |
99 |
@${MKDIR} ${EXAMPLESDIR} |
107 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
100 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR} |
108 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${STAGEDIR}${EXAMPLESDIR}/ |
101 |
.endif |
109 |
.endif |
102 |
@${TEST} -f /var/db/milter-greylist/greylist.db && ( \ |
110 |
@${TEST} -f /var/db/milter-greylist/greylist.db && ( \ |
103 |
${ECHO} "************************************************************"; \ |
111 |
${ECHO} "************************************************************"; \ |
Lines 117-120
Link Here
|
117 |
|
125 |
|
118 |
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" |
126 |
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" |
119 |
|
127 |
|
120 |
.include <bsd.port.post.mk> |
128 |
.include <bsd.port.mk> |