summaryrefslogtreecommitdiff
path: root/community/dspam
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-06 00:25:32 -0700
committerroot <root@rshg054.dnsready.net>2012-10-06 00:25:32 -0700
commite7552010f531ef1b114352f0ce71a307360bf1d4 (patch)
treed37bd67211f2dc084113f36b80f2b4b5b9622aa5 /community/dspam
parent777466db27694f0cad10a7159ba66f2a2b39a516 (diff)
Sat Oct 6 00:25:32 PDT 2012
Diffstat (limited to 'community/dspam')
-rw-r--r--community/dspam/PKGBUILD16
-rw-r--r--community/dspam/dspam.service11
-rw-r--r--community/dspam/dspam.tmpfiles1
3 files changed, 24 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
}
diff --git a/community/dspam/dspam.service b/community/dspam/dspam.service
new file mode 100644
index 000000000..1a5b1e710
--- /dev/null
+++ b/community/dspam/dspam.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=A highly accurate statistical spam filter that uses minimal resources
+
+[Service]
+Type=forking
+User=dspam
+ExecStart=/usr/bin/dspam --daemon 2>/dev/null
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file
diff --git a/community/dspam/dspam.tmpfiles b/community/dspam/dspam.tmpfiles
new file mode 100644
index 000000000..9f5910969
--- /dev/null
+++ b/community/dspam/dspam.tmpfiles
@@ -0,0 +1 @@
+d /var/run/dspam 0770 dspam mail -