diff options
Diffstat (limited to 'testing/dspam')
-rw-r--r-- | testing/dspam/APKBUILD | 78 | ||||
-rw-r--r-- | testing/dspam/dspam.initd | 46 | ||||
-rw-r--r-- | testing/dspam/dspam.logrotate | 6 | ||||
-rw-r--r-- | testing/dspam/dspam.pre-install | 6 |
4 files changed, 0 insertions, 136 deletions
diff --git a/testing/dspam/APKBUILD b/testing/dspam/APKBUILD deleted file mode 100644 index 2b17cacb3f..0000000000 --- a/testing/dspam/APKBUILD +++ /dev/null @@ -1,78 +0,0 @@ -# Maintainer: Natanael Copa <ncopa@alpinelinux.org> -pkgname=dspam -pkgver=3.9.1_rc1 -_ver=3.9.1-RC1 -pkgrel=1 -pkgdesc="A statistical-algorithmic hybrid anti-spam filter" -url="http://dspam.nuclearelephant.com/" -pkgusers="dspam" -pkggroups="dspam" -arch="all" -license="GPL-2" -depends= -install="$pkgname.pre-install" -makedepends="postgresql-dev sqlite-dev mysql-dev autoconf automake libtool" -subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-mysql - $pkgname-sqlite" - -install= #dspam.install -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_ver.tar.gz - dspam.logrotate - dspam.initd" - - -prepare() { - cd "$srcdir"/$pkgname-$_ver - for i in "$srcdir"/*.patch; do - [ -f "$i" ] || continue - msg "Applying $i" - patch -p1 -i "$i" || return 1 - done - aclocal -I m4 && libtoolize && autoconf && automake -} - -build() { - cd "$srcdir"/$pkgname-$_ver - ./configure --prefix=/usr \ - --sysconfdir=/etc/dspam \ - --with-dspam-home=/var/lib/dspam \ - --enable-virtual-users \ - --enable-preferences-extension \ - --enable-daemon \ - --with-storage-driver="hash_drv,sqlite3_drv,pgsql_drv,mysql_drv" \ - --with-mysql-includes=/usr/include/mysql \ - --with-mysql-libraries=/usr/lib/mysql \ - || return 1 - make -} - -package() { - cd "$srcdir"/$pkgname-$_ver - make install DESTDIR="$pkgdir" - install -Dm755 "$srcdir"/dspam.initd "$pkgdir"/etc/init.d/dspam - install -Dm644 "$srcdir"/dspam.logrotate "$pkgdir"/etc/logrotate.d/dspam - rm "$pkgdir"/usr/lib/*.la - rm "$pkgdir"/usr/lib/dspam/*.la -} - -pgsql() { - pkgdesc="dspam postgresql driver" - install -d "$subpkgdir"/usr/lib/dspam - mv "$pkgdir"/usr/lib/dspam/*pgsql* "$subpkgdir"/usr/lib/dspam/ -} - -mysql() { - pkgdesc="dspam mysql driver" - install -d "$subpkgdir"/usr/lib/dspam - mv "$pkgdir"/usr/lib/dspam/*mysql* "$subpkgdir"/usr/lib/dspam/ -} - -sqlite() { - pkgdesc="dspam sqlite driver" - install -d "$subpkgdir"/usr/lib/dspam - mv "$pkgdir"/usr/lib/dspam/*sqlite* "$subpkgdir"/usr/lib/dspam/ -} - -md5sums="326677b30af2711a8fa4b52facb52f37 dspam-3.9.1-RC1.tar.gz -a798e9a6e2d5c30724f84d004bb96339 dspam.logrotate -7d1fb0820f4a23f593f22186ef77d02a dspam.initd" diff --git a/testing/dspam/dspam.initd b/testing/dspam/dspam.initd deleted file mode 100644 index d91fefeb89..0000000000 --- a/testing/dspam/dspam.initd +++ /dev/null @@ -1,46 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/dspam/files/dspam.rc,v 1.1 2005/03/21 00:10:30 st_lim Exp $ - -conf=/etc/dspam/dspam.conf - -depend() { - use logger - need net - before mta - after pg_autovacuum postgresql mysql -} - -checkconfig() { - if [ ! -f "$conf" ] - then - eerror "You need a DSPAM configuration in $conf" - return 1 - fi - if (! grep -q "^ServerPID" $conf); then - eerror "ServerPID missing in DSPAM configuration $conf" - return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting DSPAM" - start-stop-daemon --start --quiet --background \ - --exec /usr/bin/dspam -- --daemon - eend ${?} -} - -stop() { - checkconfig || return 1 - - local DSPAM_PID="$(grep "^ServerPID" $conf)" - DSPAM_PID="${DSPAM_PID/ServerPID/}" - - ebegin "Stopping DSPAM" - start-stop-daemon --stop --quiet --pidfile ${DSPAM_PID} - eend ${?} -} - diff --git a/testing/dspam/dspam.logrotate b/testing/dspam/dspam.logrotate deleted file mode 100644 index 1fb3e04ccb..0000000000 --- a/testing/dspam/dspam.logrotate +++ /dev/null @@ -1,6 +0,0 @@ -/var/log/dspam/sql.errors /var/log/dspam/dspam.log /var/log/dspam/dspam.debug /var/log/dspam/dspam.messages { - weekly - compress - missingok - copytruncate -} diff --git a/testing/dspam/dspam.pre-install b/testing/dspam/dspam.pre-install deleted file mode 100644 index 9a6cc6f1e3..0000000000 --- a/testing/dspam/dspam.pre-install +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -adduser -h /var/lib/dspam -s /bin/false -D dspam 2>/dev/null -chown dspam:dspam /var/lib/dspam -exit 0 - |