PORTNAME= bogom PORTVERSION= 1.9.2 PORTREVISION= 5 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 WWW= https://www.usebox.net/jjm/bogom/ 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 \ share/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}/share/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