diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-06 16:36:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-06 16:36:19 +0000 |
commit | 768e3586d89f22da78c1655f851ed759255cf556 (patch) | |
tree | 8a0c529b36d93eb3dc2db9c8c0a0effb6d95a98c /testing/dspam/APKBUILD | |
parent | 8533b151798c4012d6f179f1b84cd9ad0f6bebbd (diff) | |
download | aports-768e3586d89f22da78c1655f851ed759255cf556.tar.bz2 aports-768e3586d89f22da78c1655f851ed759255cf556.tar.xz |
testing/dspam: new aport
A statistical-algorithmic hybrid anti-spam filter
http://dspam.nuclearelephant.com/
Diffstat (limited to 'testing/dspam/APKBUILD')
-rw-r--r-- | testing/dspam/APKBUILD | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/testing/dspam/APKBUILD b/testing/dspam/APKBUILD new file mode 100644 index 0000000000..1d049cfbe7 --- /dev/null +++ b/testing/dspam/APKBUILD @@ -0,0 +1,78 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=dspam +pkgver=3.9.0_rc2 +_ver=3.9.0-RC2 +pkgrel=0 +pkgdesc="A statistical-algorithmic hybrid anti-spam filter" +url="http://dspam.nuclearelephant.com/" +pkgusers="dspam" +pkggroups="dspam" +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 + 0001-Support-for-parallell-builds.patch + 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 + +} + +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="013dc6700f7c5a757b7a656626b36248 dspam-3.9.0-RC2.tar.gz +0f9f6b32cab7b8e3ad342daad119535d 0001-Support-for-parallell-builds.patch +a798e9a6e2d5c30724f84d004bb96339 dspam.logrotate +7d1fb0820f4a23f593f22186ef77d02a dspam.initd" |