diff options
Diffstat (limited to 'mail/rspamd/Makefile')
-rw-r--r-- | mail/rspamd/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/mail/rspamd/Makefile b/mail/rspamd/Makefile new file mode 100644 index 00000000000..bdeea20333b --- /dev/null +++ b/mail/rspamd/Makefile @@ -0,0 +1,51 @@ +# $NetBSD: Makefile,v 1.1 2014/02/07 14:39:19 wiedi Exp $ + +DISTNAME= rspamd-0.6.8 +CATEGORIES= mail +MASTER_SITES= https://rspamd.com/downloads/ + +MAINTAINER= wiedi@frubar.net +HOMEPAGE= https://www.rspamd.com/ +COMMENT= Fast, free and open-source spam filtering system +LICENSE= 2-clause-bsd + +USE_CMAKE= yes +USE_TOOLS+= perl + +LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/rspamd + +PKG_SYSCONFSUBDIR= rspamd +EGDIR= ${PREFIX}/share/examples/${PKGBASE} + +CMAKE_ARGS+= -DMANDIR:PATH=${PREFIX}/${PKGMANDIR} +CMAKE_ARGS+= -DCONFDIR:PATH=${EGDIR} + +MAKE_DIRS+= ${PKG_SYSCONFDIR}/lua +MAKE_DIRS+= ${PKG_SYSCONFDIR}/lua/regexp + +CONF_FILES= ${EGDIR}/2tld.inc ${PKG_SYSCONFDIR}/2tld.inc +CONF_FILES+= ${EGDIR}/composites.conf ${PKG_SYSCONFDIR}/composites.conf +CONF_FILES+= ${EGDIR}/logging.conf ${PKG_SYSCONFDIR}/logging.conf +CONF_FILES+= ${EGDIR}/lua/hfilter.lua ${PKG_SYSCONFDIR}/lua/hfilter.lua +CONF_FILES+= ${EGDIR}/lua/regexp/drugs.lua ${PKG_SYSCONFDIR}/lua/regexp/drugs.lua +CONF_FILES+= ${EGDIR}/lua/regexp/fraud.lua ${PKG_SYSCONFDIR}/lua/regexp/fraud.lua +CONF_FILES+= ${EGDIR}/lua/regexp/headers.lua ${PKG_SYSCONFDIR}/lua/regexp/headers.lua +CONF_FILES+= ${EGDIR}/lua/regexp/lotto.lua ${PKG_SYSCONFDIR}/lua/regexp/lotto.lua +CONF_FILES+= ${EGDIR}/lua/rspamd.classifiers.lua ${PKG_SYSCONFDIR}/lua/rspamd.classifiers.lua +CONF_FILES+= ${EGDIR}/lua/rspamd.lua ${PKG_SYSCONFDIR}/lua/rspamd.lua +CONF_FILES+= ${EGDIR}/metrics.conf ${PKG_SYSCONFDIR}/metrics.conf +CONF_FILES+= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/modules.conf +CONF_FILES+= ${EGDIR}/options.conf ${PKG_SYSCONFDIR}/options.conf +CONF_FILES+= ${EGDIR}/rspamd.conf ${PKG_SYSCONFDIR}/rspamd.conf +CONF_FILES+= ${EGDIR}/statistic.conf ${PKG_SYSCONFDIR}/statistic.conf +CONF_FILES+= ${EGDIR}/surbl-whitelist.inc ${PKG_SYSCONFDIR}/surbl-whitelist.inc +CONF_FILES+= ${EGDIR}/workers.conf ${PKG_SYSCONFDIR}/workers.conf + +post-extract: + cd ${WRKSRC} && chmod 644 conf/* + +.include "../../devel/libevent/buildlink3.mk" +.include "../../devel/glib2/buildlink3.mk" +.include "../../mail/gmime/buildlink3.mk" +.include "../../lang/lua/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" |