rspamd: reformat template.
This commit is contained in:
parent
062657ddb4
commit
f484030f85
1 changed files with 8 additions and 11 deletions
|
@ -9,9 +9,6 @@ configure_args="
|
||||||
-DDBDIR=/var/lib/rspamd"
|
-DDBDIR=/var/lib/rspamd"
|
||||||
hostmakedepends="cmake pkg-config"
|
hostmakedepends="cmake pkg-config"
|
||||||
makedepends="LuaJIT-devel glib-devel libressl-devel gmime-devel libevent-devel sqlite-devel hiredis-devel"
|
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"
|
short_desc="Fast, free and open-source spam filtering system"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
|
@ -41,21 +38,21 @@ conf_files="
|
||||||
/etc/rspamd/worker-controller.inc
|
/etc/rspamd/worker-controller.inc
|
||||||
/etc/rspamd/worker-normal.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"
|
configure_args+=" -C $FILESDIR/TryRunResults.cmake"
|
||||||
mkdir -p build_native
|
mkdir -p build_native
|
||||||
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
|
( cd build_native; LD= CC= CFLAGS= LDFLAGS= cmake .. )
|
||||||
fi
|
}
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
make -C build_native/contrib/snowball
|
make -C build_native/contrib/snowball
|
||||||
sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \
|
sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \
|
||||||
build/contrib/snowball/CMakeFiles/stemmer.dir/build.make
|
build/contrib/snowball/CMakeFiles/stemmer.dir/build.make
|
||||||
fi
|
}
|
||||||
}
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv rspamd
|
vsv rspamd
|
||||||
|
|
Loading…
Reference in a new issue