void-packages/srcpkgs/rspamd/template

74 lines
2.2 KiB
Bash
Raw Normal View History

2015-07-10 09:11:34 +02:00
# Template file for 'rspamd'
pkgname=rspamd
2016-02-05 15:50:43 +01:00
version=1.1.3
2015-10-26 17:04:10 +01:00
revision=1
2015-07-10 09:11:34 +02:00
build_style=cmake
2015-07-23 08:04:20 +02:00
configure_args="
2016-01-31 12:40:27 +01:00
-DRSPAMD_USER=rspamd
2015-07-10 09:11:34 +02:00
-DCONFDIR=/etc/rspamd
-DDBDIR=/var/lib/rspamd"
2016-01-21 01:02:14 +01:00
hostmakedepends="cmake pkg-config perl"
makedepends="LuaJIT-devel libressl-devel gmime-devel libevent-devel sqlite-devel hiredis-devel file-devel"
2015-07-10 09:11:34 +02:00
short_desc="Fast, free and open-source spam filtering system"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="BSD"
homepage="http://rspamd.com/"
distfiles="http://rspamd.com/downloads/rspamd-${version}.tar.xz"
2016-02-05 15:50:43 +01:00
checksum=8604e980a81d6586d18d02f90236c83384754ef1debce0b4f0ca32f87e1ec135
2015-07-10 09:11:34 +02:00
system_accounts="rspamd"
rspamd_homedir="/var/lib/rspamd"
conf_files="
2015-09-18 19:00:18 +02:00
/etc/rspamd/spf_dkim_whitelist.inc
2015-07-10 09:11:34 +02:00
/etc/rspamd/2tld.inc
/etc/rspamd/metrics.conf
/etc/rspamd/rspamd.conf
2015-09-18 19:00:18 +02:00
/etc/rspamd/logging.inc
/etc/rspamd/rspamd.sysvinit.conf
/etc/rspamd/worker-normal.inc
/etc/rspamd/modules.conf
2015-07-10 09:11:34 +02:00
/etc/rspamd/surbl-whitelist.inc
2015-09-18 19:00:18 +02:00
/etc/rspamd/composites.conf
/etc/rspamd/options.inc
/etc/rspamd/common.conf
/etc/rspamd/rspamd.systemd.conf
/etc/rspamd/dmarc_whitelist.inc
/etc/rspamd/modules.d/surbl.conf
/etc/rspamd/modules.d/once_received.conf
/etc/rspamd/modules.d/phishing.conf
/etc/rspamd/modules.d/multimap.conf
/etc/rspamd/modules.d/fuzzy_check.conf
/etc/rspamd/modules.d/chartable.conf
/etc/rspamd/modules.d/regexp.conf
/etc/rspamd/modules.d/forged_recipients.conf
/etc/rspamd/modules.d/hfilter.conf
/etc/rspamd/modules.d/whitelist.conf
/etc/rspamd/modules.d/ip_score.conf
/etc/rspamd/modules.d/ratelimit.conf
/etc/rspamd/modules.d/dmarc.conf
/etc/rspamd/modules.d/dkim.conf
/etc/rspamd/modules.d/emails.conf
/etc/rspamd/modules.d/spf.conf
/etc/rspamd/modules.d/maillist.conf
2015-07-10 09:11:34 +02:00
/etc/rspamd/worker-controller.inc
2015-09-18 19:00:18 +02:00
/etc/rspamd/statistic.conf"
2015-07-10 09:11:34 +02:00
2015-07-23 14:19:45 +02:00
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" $makedepends"
pre_configure() {
2015-07-23 08:04:20 +02:00
configure_args+=" -C $FILESDIR/TryRunResults.cmake"
mkdir -p build_native
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
2015-07-23 14:19:45 +02:00
}
2015-07-23 08:04:20 +02:00
2015-07-23 14:19:45 +02:00
pre_build() {
2015-07-23 08:04:20 +02:00
make -C build_native/contrib/snowball
sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \
build/contrib/snowball/CMakeFiles/stemmer.dir/build.make
2015-07-23 14:19:45 +02:00
}
fi
2015-07-23 08:04:20 +02:00
2015-07-10 09:11:34 +02:00
post_install() {
vsv rspamd
}