41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'rspamd'
|
|
pkgname=rspamd
|
|
version=1.3.2
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="
|
|
-DRSPAMD_USER=rspamd
|
|
-DCONFDIR=/etc/rspamd
|
|
-DDBDIR=/var/lib/rspamd"
|
|
hostmakedepends="pkg-config perl ragel"
|
|
makedepends="LuaJIT-devel libressl-devel gmime-devel libevent-devel sqlite-devel hiredis-devel file-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=283227d8f38fcc4c5d4b913996b52f55370c5445ec6f8dbb550aec2bb2d46c2a
|
|
system_accounts="rspamd"
|
|
rspamd_homedir="/var/lib/rspamd"
|
|
conf_files="/etc/rspamd/*.conf /etc/rspamd/*.inc /etc/rspamd/modules.d/*.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
|
|
vlicense LICENSE
|
|
}
|