void-packages/srcpkgs/rspamd/template
2015-07-23 14:20:24 +02:00

59 lines
1.7 KiB
Bash

# Template file for 'rspamd'
pkgname=rspamd
version=0.9.9
revision=2
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=bb4e6d7f69376f8d9fcd4b5a84cc9973a3551eb3e430e7c10b1bd9094db7c211
system_accounts="rspamd"
rspamd_homedir="/var/lib/rspamd"
conf_files="
/etc/rspamd/2tld.inc
/etc/rspamd/common.conf
/etc/rspamd/composites.conf
/etc/rspamd/logging.inc
/etc/rspamd/lua/hfilter.lua
/etc/rspamd/lua/regexp/drugs.lua
/etc/rspamd/lua/regexp/fraud.lua
/etc/rspamd/lua/regexp/headers.lua
/etc/rspamd/lua/regexp/lotto.lua
/etc/rspamd/lua/rspamd.classifiers.lua
/etc/rspamd/lua/rspamd.lua
/etc/rspamd/metrics.conf
/etc/rspamd/modules.conf
/etc/rspamd/options.inc
/etc/rspamd/rspamd.conf
/etc/rspamd/statistic.conf
/etc/rspamd/surbl-whitelist.inc
/etc/rspamd/worker-controller.inc
/etc/rspamd/worker-normal.inc"
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
}