void-packages/srcpkgs/rspamd/template
2015-08-20 07:32:21 +02:00

59 lines
1.7 KiB
Bash

# Template file for 'rspamd'
pkgname=rspamd
version=0.9.10
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=5ff557610cc5b7000abe2df727d6b9bfec7e3fe019ce3fdcc386d16262b45652
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
}