aboutsummaryrefslogtreecommitdiffstats
path: root/main/gross/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-07-06 09:17:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-07-06 09:21:32 +0000
commit5bcbe1fea9eea0ec4749a7905c3b7ef616ecce46 (patch)
treec2e57d35a587f324611fb614d5c5bc4f964a9c43 /main/gross/APKBUILD
parent26aee517954fe2874c517c93f382933fbcf6189b (diff)
downloadaports-5bcbe1fea9eea0ec4749a7905c3b7ef616ecce46.tar.bz2
aports-5bcbe1fea9eea0ec4749a7905c3b7ef616ecce46.tar.xz
main/gross: add grey_tuple feature
Allows you to do greylisting on client ip, sender domain, and helo instead of the default client ip, sender email and recipient email. Patch is discussed upstream: https://lists.utu.fi/pipermail/gross/2011/000300.html
Diffstat (limited to 'main/gross/APKBUILD')
-rw-r--r--main/gross/APKBUILD30
1 files changed, 18 insertions, 12 deletions
diff --git a/main/gross/APKBUILD b/main/gross/APKBUILD
index e1f304d8ac..e359433914 100644
--- a/main/gross/APKBUILD
+++ b/main/gross/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gross
pkgver=1.0.2
-pkgrel=3
+pkgrel=4
pkgdesc="Greylisting of suspicious sources"
url="http://code.google.com/p/gross/"
arch="all"
@@ -16,28 +16,33 @@ source="http://gross.googlecode.com/files/$pkgname-$pkgver.tar.gz
grossd.initd
grossd.confd
gross-1.0.1-default-conf.patch
+ gross-grey_tuple.patch
"
-build() {
- cd "$srcdir/$pkgname-$pkgver"
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
- for _i in ../*.patch; do
- msg "Applying $_i..."
- patch -p1 < $_i || return 1
- done
- export lt_SED='/bin/sed'
- export lt_cv_path_SED='/bin/sed'
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
- make -j1 || return 1
+ make || return 1
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install
rm "$pkgdir"/usr/lib/*.la
@@ -50,4 +55,5 @@ package() {
md5sums="cb88d88553161c01e9bed7a74c3e9263 gross-1.0.2.tar.gz
6e8a2626c0c9f0e98e950a67a55a7040 grossd.initd
5ca1c6e51c3243236e6564480b20279b grossd.confd
-7c504b653c71dcf7b192bc487b3516fd gross-1.0.1-default-conf.patch"
+7c504b653c71dcf7b192bc487b3516fd gross-1.0.1-default-conf.patch
+d25f5688a63bddf14e0db677a7a82382 gross-grey_tuple.patch"