diff options
Diffstat (limited to 'community/dspam')
-rw-r--r-- | community/dspam/PKGBUILD | 8 | ||||
-rw-r--r-- | community/dspam/dspam | 37 |
2 files changed, 2 insertions, 43 deletions
diff --git a/community/dspam/PKGBUILD b/community/dspam/PKGBUILD index daf1572a0..7bdba6e41 100644 --- a/community/dspam/PKGBUILD +++ b/community/dspam/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 86999 2013-03-25 19:16:37Z bpiotrowski $ +# $Id: PKGBUILD 90661 2013-05-13 14:22:46Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: William Rea <sillywilly@gmail.com> pkgname=dspam pkgver=3.10.2 -pkgrel=4 +pkgrel=5 pkgdesc="A scalable, open-source statistical anti-spam filter" arch=('i686' 'x86_64') url="http://dspam.nuclearelephant.com/" @@ -24,13 +24,11 @@ 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.service dspam.tmpfiles dspam_maintenance.cron) md5sums=('0e0e405d3284485b2a43f47eaf6b09bb' 'cec7e3df4cbc6feca387fb516a5b3490' - 'bb2300eff5b2a6eb987750c71a2c2169' '1581a94598cec370b66f37b118970676' '933643f2204ccbd7e451a439f83db1ea' 'ebfb0fec16a56f6e1a3a61ced2d5015d') @@ -58,10 +56,8 @@ package() { find $pkgdir/srv/http/dspam/ -type f -name '*.in' -exec rm -f {} \; install -d $pkgdir/etc/logrotate.d \ - $pkgdir/etc/rc.d \ $pkgdir/usr/share/dspam/{mysql,pgsql} install -m644 ../dspam.logrotated $pkgdir/etc/logrotate.d/dspam - install -m755 ../dspam $pkgdir/etc/rc.d sed -i 's|#ServerPID|ServerPID|' $pkgdir/etc/dspam/dspam.conf diff --git a/community/dspam/dspam b/community/dspam/dspam deleted file mode 100644 index be533ba5f..000000000 --- a/community/dspam/dspam +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -PID=`pidof -o %PPID /usr/bin/dspam` -case "$1" in - start) - stat_busy "Starting DSPAM Daemon" - [ -d /var/run/dspam ] || mkdir -p /var/run/dspam - [ -z "$PID" ] && /usr/bin/dspam --daemon &> /dev/null & - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon dspam - stat_done - fi - ;; - stop) - stat_busy "Stopping DSPAM Daemon" - [ ! -z "$PID" ] && kill $PID &> /dev/null - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon dspam - stat_done - fi - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 |