6058705eb9
- bump PORTREVISION on ports using libmilter - rename WITH_SENDMAIL_PORT to WITH_MILTER_PORT - rename WITH_SENDMAIL_BASE to WITH_MILTER_BASE - rename WITH_SENDMAIL_STATIC_MILTER to WITH_MILTER_STATIC - cleanup ifdefs - fix build on batv-filter with libmilter from ports
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# Created by: Victor Balada Diaz <victor@bsdes.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bogom
|
|
PORTVERSION= 1.9.2
|
|
PORTREVISION= 4
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.usebox.net/jjm/bogom/ \
|
|
http://blackshell.usebox.net/bogom/
|
|
PKGNAMEPREFIX= milter-
|
|
|
|
MAINTAINER= victor@bsdes.net
|
|
COMMENT= Simple sendmail milter to interface bogofilter
|
|
|
|
RUN_DEPENDS= bogofilter:mail/bogofilter
|
|
|
|
.if !exists(/usr/lib/libmilter.so)
|
|
LIB_DEPENDS= libmilter.so:mail/libmilter
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
.endif
|
|
|
|
MAKE_ARGS= CPPFLAGS="-DDEF_CONF=\\\"${PREFIX}/etc/bogom.conf\\\"" \
|
|
LIBS="-lmilter -lpthread" LDFLAGS="${LDFLAGS}"
|
|
|
|
USE_RC_SUBR= milter-bogom
|
|
SUB_FILES= pkg-message
|
|
|
|
PLIST_FILES= sbin/bogom \
|
|
man/man8/bogom.8.gz \
|
|
etc/bogom.conf-example
|
|
|
|
PORTDOCS= README CHANGELOG
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/bogom.8
|
|
${REINPLACE_CMD} -e \
|
|
's|/usr/local/bin/bogofilter|${LOCALBASE}/bin/bogofilter|g' \
|
|
${WRKSRC}/bogom.8 \
|
|
${WRKSRC}/bogom.conf-example \
|
|
${WRKSRC}/milter.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bogom ${STAGEDIR}${PREFIX}/sbin/
|
|
${INSTALL_MAN} ${WRKSRC}/bogom.8 ${STAGEDIR}${PREFIX}/man/man8/
|
|
${INSTALL_DATA} ${WRKSRC}/bogom.conf-example ${STAGEDIR}${PREFIX}/etc/
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|