rspamd: reformat template.

This commit is contained in:
Enno Boland 2015-07-23 14:19:45 +02:00
parent 062657ddb4
commit f484030f85

View File

@ -9,9 +9,6 @@ configure_args="
-DDBDIR=/var/lib/rspamd"
hostmakedepends="cmake pkg-config"
makedepends="LuaJIT-devel glib-devel libressl-devel gmime-devel libevent-devel sqlite-devel hiredis-devel"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" $makedepends"
fi
short_desc="Fast, free and open-source spam filtering system"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="BSD"
@ -41,21 +38,21 @@ conf_files="
/etc/rspamd/worker-controller.inc
/etc/rspamd/worker-normal.inc"
pre_configure() {
if [ "$CROSS_BUILD" ]; then
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 .. )
fi
}
}
pre_build() {
if [ "$CROSS_BUILD" ]; then
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
}
}
fi
post_install() {
vsv rspamd