void-packages/srcpkgs/rspamd/template

63 lines
1.7 KiB
Bash
Raw Normal View History

2015-07-10 07:11:34 +00:00
# Template file for 'rspamd'
pkgname=rspamd
version=0.9.9
2015-07-23 06:04:20 +00:00
revision=2
2015-07-10 07:11:34 +00:00
build_style=cmake
2015-07-23 06:04:20 +00:00
configure_args="
-DRSPAMD_USER=rspamd \
2015-07-10 07:11:34 +00:00
-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"
2015-07-23 06:04:20 +00:00
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" $makedepends"
fi
2015-07-10 07:11:34 +00: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"
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"
2015-07-23 06:04:20 +00:00
pre_configure() {
if [ "$CROSS_BUILD" ]; then
configure_args+=" -C $FILESDIR/TryRunResults.cmake"
mkdir -p build_native
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
fi
}
pre_build() {
if [ "$CROSS_BUILD" ]; then
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
}
2015-07-10 07:11:34 +00:00
post_install() {
vsv rspamd
}