73 lines
2.2 KiB
Bash
73 lines
2.2 KiB
Bash
# Template file for 'rspamd'
|
|
pkgname=rspamd
|
|
version=1.0.6
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="
|
|
-DRSPAMD_USER=rspamd \
|
|
-DCONFDIR=/etc/rspamd
|
|
-DDBDIR=/var/lib/rspamd"
|
|
hostmakedepends="cmake pkg-config"
|
|
makedepends="LuaJIT-devel glib-devel libressl-devel gmime-devel libevent-devel sqlite-devel hiredis-devel"
|
|
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"
|
|
checksum=95ba042c5e539406d13aafee2af4b42fe277a1c7201f1498215bfcc8b63557ac
|
|
system_accounts="rspamd"
|
|
rspamd_homedir="/var/lib/rspamd"
|
|
conf_files="
|
|
/etc/rspamd/spf_dkim_whitelist.inc
|
|
/etc/rspamd/2tld.inc
|
|
/etc/rspamd/metrics.conf
|
|
/etc/rspamd/rspamd.conf
|
|
/etc/rspamd/logging.inc
|
|
/etc/rspamd/rspamd.sysvinit.conf
|
|
/etc/rspamd/worker-normal.inc
|
|
/etc/rspamd/modules.conf
|
|
/etc/rspamd/surbl-whitelist.inc
|
|
/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
|
|
/etc/rspamd/worker-controller.inc
|
|
/etc/rspamd/statistic.conf"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" $makedepends"
|
|
|
|
pre_configure() {
|
|
configure_args+=" -C $FILESDIR/TryRunResults.cmake"
|
|
mkdir -p build_native
|
|
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
|
|
}
|
|
|
|
pre_build() {
|
|
make -C build_native/contrib/snowball
|
|
sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \
|
|
build/contrib/snowball/CMakeFiles/stemmer.dir/build.make
|
|
}
|
|
fi
|
|
|
|
post_install() {
|
|
vsv rspamd
|
|
}
|