summaryrefslogtreecommitdiff
path: root/community/dspam/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/dspam/PKGBUILD')
-rw-r--r--community/dspam/PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/community/dspam/PKGBUILD b/community/dspam/PKGBUILD
index cb14285f2..5baa8c294 100644
--- a/community/dspam/PKGBUILD
+++ b/community/dspam/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 70948 2012-05-20 12:51:03Z spupykin $
+# $Id: PKGBUILD 77118 2012-10-05 10:37:20Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=dspam
pkgver=3.10.2
-pkgrel=1
+pkgrel=2
pkgdesc="A scalable, open-source statistical anti-spam filter"
arch=('i686' 'x86_64')
url="http://dspam.nuclearelephant.com/"
@@ -22,10 +22,14 @@ options=('zipman' 'docs' '!libtool')
install=$pkgname.install
source=(http://downloads.sourceforge.net/project/dspam/dspam/dspam-$pkgver/dspam-$pkgver.tar.gz
dspam.logrotated
- dspam)
+ dspam
+ dspam.service
+ dspam.tmpfiles)
md5sums=('0e0e405d3284485b2a43f47eaf6b09bb'
'2163ca41de383f09f4d754e2d35cb158'
- 'bb2300eff5b2a6eb987750c71a2c2169')
+ 'bb2300eff5b2a6eb987750c71a2c2169'
+ '1581a94598cec370b66f37b118970676'
+ '933643f2204ccbd7e451a439f83db1ea')
build() {
OPTS="--with-dspam-owner=dspam --with-dspam-group=dspam --enable-daemon --enable-virtual-users \
@@ -37,6 +41,7 @@ build() {
[ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --sysconfdir=/etc/dspam --localstatedir=/var ${OPTS}
make
}
+
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
@@ -66,4 +71,7 @@ package() {
find -type l -exec ln -sf libdspam.3 {} \;
chmod 0755 $pkgdir/usr/bin/*
+
+ install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+ install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
}