1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/mail/milter-bogom/Makefile
2021-04-06 16:31:07 +02:00

56 lines
1.4 KiB
Makefile

# Created by: Victor Balada Diaz <victor@bsdes.net>
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>