|
Lines 19-24
Link Here
|
| 19 |
CONFLICTS= milter-greylist-devel-[1-9]*.* |
19 |
CONFLICTS= milter-greylist-devel-[1-9]*.* |
| 20 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
20 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
| 21 |
|
21 |
|
|
|
22 |
OPTIONS= MANPAGES "Install manpages" YES \ |
| 23 |
LIBSPF2 "Include SPF support" NO \ |
| 24 |
GEOIP "Include GeoIP support" NO \ |
| 25 |
CURL "Include curl support" NO \ |
| 26 |
POSTFIX "Use Postfix instead of Sendmail" NO |
| 27 |
|
| 28 |
.include <bsd.port.pre.mk> |
| 29 |
|
| 22 |
## |
30 |
## |
| 23 |
# Use the following quirks to choose which sendmail to use (ports or system): |
31 |
# Use the following quirks to choose which sendmail to use (ports or system): |
| 24 |
# |
32 |
# |
|
Lines 30-36
Link Here
|
| 30 |
# installed port preference over it. |
38 |
# installed port preference over it. |
| 31 |
## |
39 |
## |
| 32 |
|
40 |
|
| 33 |
.if !defined (NO_INSTALL_MANPAGES) |
41 |
.if defined (WITH_MANPAGES) |
| 34 |
MAN5= greylist.conf.5 |
42 |
MAN5= greylist.conf.5 |
| 35 |
MAN8= milter-greylist.8 |
43 |
MAN8= milter-greylist.8 |
| 36 |
.endif |
44 |
.endif |
|
Lines 50-55
Link Here
|
| 50 |
BUILD_DEPENDS+= curl>=7.18:${PORTSDIR}/ftp/curl |
58 |
BUILD_DEPENDS+= curl>=7.18:${PORTSDIR}/ftp/curl |
| 51 |
CONFIGURE_ARGS+= --with-curl=${LOCALBASE} |
59 |
CONFIGURE_ARGS+= --with-curl=${LOCALBASE} |
| 52 |
.endif |
60 |
.endif |
|
|
61 |
.if defined(WITH_POSTFIX) |
| 62 |
CONFIGURE_ARGS+= --enable-postfix |
| 63 |
.endif |
| 53 |
RUN_DEPENDS+= ${BUILD_DEPENDS} |
64 |
RUN_DEPENDS+= ${BUILD_DEPENDS} |
| 54 |
|
65 |
|
| 55 |
CFLAGS+= ${PTHREAD_CFLAGS} |
66 |
CFLAGS+= ${PTHREAD_CFLAGS} |
|
Lines 67-74
Link Here
|
| 67 |
|
78 |
|
| 68 |
do-install: |
79 |
do-install: |
| 69 |
@${MKDIR} ${PREFIX}/etc/mail |
80 |
@${MKDIR} ${PREFIX}/etc/mail |
|
|
81 |
.if defined (WITH_MANPAGES) |
| 70 |
@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5 |
82 |
@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5 |
| 71 |
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8 |
83 |
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8 |
|
|
84 |
.endif |
| 72 |
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/libexec |
85 |
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/libexec |
| 73 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \ |
86 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \ |
| 74 |
${PREFIX}/etc/mail/greylist.conf.sample |
87 |
${PREFIX}/etc/mail/greylist.conf.sample |
|
Lines 100-107
Link Here
|
| 100 |
) || ${TRUE} |
113 |
) || ${TRUE} |
| 101 |
@${CAT} ${PKGMESSAGE} |
114 |
@${CAT} ${PKGMESSAGE} |
| 102 |
|
115 |
|
| 103 |
.include <bsd.port.pre.mk> |
|
|
| 104 |
|
| 105 |
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" |
116 |
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" |
| 106 |
|
117 |
|
| 107 |
.include <bsd.port.post.mk> |
118 |
.include <bsd.port.post.mk> |