community/rspamd to 2.3-2

This commit is contained in:
Kevin Mihelich 2020-02-11 13:42:35 +00:00
parent 3e144158df
commit 7343660406

View file

@ -10,7 +10,7 @@
pkgname=rspamd
pkgver=2.3
pkgrel=1
pkgrel=2
epoch=
pkgdesc='Fast, free and open-source spam filtering system'
arch=(x86_64)
@ -19,6 +19,7 @@ license=(BSD)
depends=(
file
glib2
glibc
icu
jemalloc
libevent
@ -34,6 +35,7 @@ makedepends=(
cmake
git
ninja
perl
ragel
)
optdepends=('redis: Redis cache and data storage')
@ -141,11 +143,6 @@ pkgver() {
}
prepare() {
if [[ -d build ]]; then
rm -rf build
fi
mkdir build
cd rspamd
sed 's/_rspamd/rspamd/g' -i rspamd.service
@ -153,9 +150,7 @@ prepare() {
}
build() {
cd build
cmake ../rspamd \
cmake -S rspamd -B build \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCONFDIR=/etc/rspamd \
@ -168,18 +163,16 @@ build() {
-DENABLE_HYPERSCAN=OFF \
-DENABLE_JEMALLOC=ON \
-DENABLE_OPTIMIZATION=OFF
cmake --build .
cmake --build build
}
package() {
cd build
DESTDIR="${pkgdir}" cmake --build build --target install
DESTDIR="${pkgdir}" cmake --build . --target install
install -Dm 644 ../rspamd/LICENSE.md -t "${pkgdir}"/usr/share/licenses/rspamd
install -Dm 644 ../rspamd.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rspamd.conf
install -Dm 644 ../rspamd.sysusers "${pkgdir}"/usr/lib/sysusers.d/rspamd.conf
install -Dm 644 ../rspamd.logrotate "${pkgdir}"/etc/logrotate.d/rspamd
install -Dm 644 rspamd/LICENSE.md -t "${pkgdir}"/usr/share/licenses/rspamd
install -Dm 644 rspamd.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rspamd.conf
install -Dm 644 rspamd.sysusers "${pkgdir}"/usr/lib/sysusers.d/rspamd.conf
install -Dm 644 rspamd.logrotate "${pkgdir}"/etc/logrotate.d/rspamd
}
# vim: set ts=2 sw=2 et:
# vim: ts=2 sw=2 et: