2014-08-17 15:59:40 +00:00
|
|
|
PORTNAME= rmilter
|
2016-11-21 12:37:48 +00:00
|
|
|
PORTVERSION= 1.10.0
|
2014-08-17 15:59:40 +00:00
|
|
|
CATEGORIES= mail
|
2009-02-16 09:43:04 +00:00
|
|
|
|
2014-08-17 15:59:40 +00:00
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
2016-01-18 17:38:01 +00:00
|
|
|
COMMENT= Milter that performs rspamd, clamav, and other checks
|
2009-02-16 09:43:04 +00:00
|
|
|
|
2013-12-27 15:28:28 +00:00
|
|
|
LICENSE= BSD2CLAUSE
|
2013-02-17 17:34:23 +00:00
|
|
|
|
2016-11-16 09:53:55 +00:00
|
|
|
LIB_DEPENDS= libpcre.so:devel/pcre
|
2014-08-17 15:59:40 +00:00
|
|
|
|
2017-05-22 16:04:19 +00:00
|
|
|
NOT_FOR_ARCHS= mips sparc64
|
|
|
|
NOT_FOR_ARCHS_REASON= fails to compile: error: Unsupported word size
|
2016-10-05 19:33:24 +00:00
|
|
|
|
2014-08-17 15:59:40 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= vstakhov
|
2013-11-30 02:22:05 +00:00
|
|
|
|
2020-01-01 20:53:40 +00:00
|
|
|
USES= compiler:c11 cmake pkgconfig bison ssl gnome
|
2016-07-25 15:43:17 +00:00
|
|
|
USE_GNOME= glib20
|
2013-11-30 02:22:05 +00:00
|
|
|
|
2015-11-18 00:58:15 +00:00
|
|
|
USERS= _rmilter
|
|
|
|
GROUPS= _rmilter
|
2009-02-16 09:43:04 +00:00
|
|
|
|
2010-02-15 14:23:32 +00:00
|
|
|
WITH_SENDMAIL_BASE= yes
|
2009-02-16 09:43:04 +00:00
|
|
|
|
2016-11-16 09:53:55 +00:00
|
|
|
OPTIONS_DEFINE= DKIM
|
|
|
|
OPTIONS_DEFAULT= DKIM
|
|
|
|
|
|
|
|
DKIM_DESC= DKIM signing support
|
|
|
|
DKIM_LIB_DEPENDS= libopendkim.so:mail/opendkim
|
|
|
|
|
2012-06-07 17:25:04 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2014-03-31 10:36:02 +00:00
|
|
|
|
|
|
|
# Workaround to prevent bsd.milter.mk from breaking the build with the recent clang
|
|
|
|
WITHOUT_MILTER_LDFLAGS= yes
|
2009-02-16 09:43:04 +00:00
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
|
|
|
|
2016-11-16 09:53:55 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MDKIM}
|
|
|
|
CMAKE_ARGS+= -DENABLE_DKIM=OFF
|
|
|
|
.endif
|
|
|
|
|
2015-11-18 00:58:15 +00:00
|
|
|
post-patch:
|
|
|
|
${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${WRKSRC}/freebsd/rmilter > ${WRKDIR}/rmilter
|
|
|
|
|
2009-02-16 09:43:04 +00:00
|
|
|
do-install:
|
2015-11-18 00:58:15 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/rmilter ${STAGEDIR}${PREFIX}/etc/rc.d/
|
2014-03-24 11:11:02 +00:00
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/rmilter ${STAGEDIR}${PREFIX}/sbin
|
2013-11-30 02:22:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/rmilter.conf.sample ${STAGEDIR}${PREFIX}/etc/
|
2009-02-16 09:43:04 +00:00
|
|
|
|
2015-11-18 00:58:15 +00:00
|
|
|
${INSTALL} -d ${STAGEDIR}/var/run/rmilter
|
2016-12-02 11:58:21 +00:00
|
|
|
|
2012-06-07 17:25:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|