void-packages/srcpkgs/rspamd/template

42 lines
1.2 KiB
Bash
Raw Normal View History

2015-07-10 07:11:34 +00:00
# Template file for 'rspamd'
pkgname=rspamd
2016-05-26 06:14:25 +00:00
version=1.2.7
2016-04-04 04:58:59 +00:00
revision=1
2015-07-10 07:11:34 +00:00
build_style=cmake
2015-07-23 06:04:20 +00:00
configure_args="
2016-01-31 11:40:27 +00:00
-DRSPAMD_USER=rspamd
2015-07-10 07:11:34 +00:00
-DCONFDIR=/etc/rspamd
-DDBDIR=/var/lib/rspamd"
2016-03-25 21:36:36 +00:00
hostmakedepends="pkg-config perl"
2016-01-21 00:02:14 +00:00
makedepends="LuaJIT-devel libressl-devel gmime-devel libevent-devel sqlite-devel hiredis-devel file-devel"
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"
2016-05-26 06:14:25 +00:00
checksum=7a19b2f49cb39d5839785d261a2d6d0d9cca24e760d5adb2b597b1eeb0831c3a
2015-07-10 07:11:34 +00:00
system_accounts="rspamd"
rspamd_homedir="/var/lib/rspamd"
2016-02-24 06:57:47 +00:00
conf_files="/etc/rspamd/*.conf /etc/rspamd/*.inc /etc/rspamd/modules.d/*.conf"
2015-07-10 07:11:34 +00:00
2015-07-23 12:19:45 +00:00
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" $makedepends"
pre_configure() {
2015-07-23 06:04:20 +00:00
configure_args+=" -C $FILESDIR/TryRunResults.cmake"
mkdir -p build_native
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
2015-07-23 12:19:45 +00:00
}
2015-07-23 06:04:20 +00:00
2015-07-23 12:19:45 +00:00
pre_build() {
2015-07-23 06:04:20 +00: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 12:19:45 +00:00
}
fi
2015-07-23 06:04:20 +00:00
2015-07-10 07:11:34 +00:00
post_install() {
vsv rspamd
2016-03-22 17:01:23 +00:00
vlicense LICENSE
2015-07-10 07:11:34 +00:00
}