aboutsummaryrefslogtreecommitdiffstats
path: root/testing/milter-greylist
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-07-13 08:27:54 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-07-13 08:27:54 +0000
commitabf1fb04ce5f0a0c6df6ebce26efc74d7dda0212 (patch)
tree43bf8d35b9c7c4a44c41ceb7f4d490c8db6018ca /testing/milter-greylist
parent669fea6aefa37a83d8c50c822ef1f121b4babfa4 (diff)
downloadaports-abf1fb04ce5f0a0c6df6ebce26efc74d7dda0212.tar.bz2
aports-abf1fb04ce5f0a0c6df6ebce26efc74d7dda0212.tar.xz
Revert "main/milter-greylist: moved from testing"
Diffstat (limited to 'testing/milter-greylist')
-rw-r--r--testing/milter-greylist/APKBUILD69
-rw-r--r--testing/milter-greylist/milter-greylist-conf.patch15
-rw-r--r--testing/milter-greylist/milter-greylist.initd4
-rw-r--r--testing/milter-greylist/milter-greylist.pre-install6
4 files changed, 94 insertions, 0 deletions
diff --git a/testing/milter-greylist/APKBUILD b/testing/milter-greylist/APKBUILD
new file mode 100644
index 0000000000..e769c5fbb6
--- /dev/null
+++ b/testing/milter-greylist/APKBUILD
@@ -0,0 +1,69 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=milter-greylist
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="Stand-alone milter written in C that implements the greylist filtering method"
+url="http://hcpnet.free.fr/milter-greylist"
+arch="all"
+license="GPL"
+depends=
+depends_dev=
+makedepends="$depends_dev bison flex libmilter-dev libspf2-dev"
+install="$pkgname.pre-install"
+subpackages="$pkgname-doc"
+pkgusers="smmsp"
+pkggroups="smmsp"
+source="ftp://ftp.espci.fr/pub/milter-greylist/$pkgname-$pkgver.tgz
+ milter-greylist-conf.patch
+ "
+
+builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ #autoreconf -vif
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var/lib \
+ --with-libspf2 \
+ --with-user=smmsp \
+ --with-conffile=/etc/$pkgname/greylist.conf \
+ --with-dumpfile=/var/lib/$pkgname/greylist.db \
+ --with-thread-safe-resolver \
+ --enable-postfix \
+ --enable-spamassassin \
+ --enable-dnsrbl \
+ --disable-rpath
+ make -j1 || return 1
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 -D ../../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
+ install -m644 -D greylist2.conf "$pkgdir"/etc/$pkgname/greylist2.conf
+ mkdir -p "$pkgdir"/var/lib/$pkgname
+ chown -R smmsp:smmsp "$pkgdir"/var/lib/$pkgname
+}
+
+md5sums="f50f89fd5cb81b124f4e7933f197f7a6 milter-greylist-4.6.1.tgz
+141e3b79fcea533cdd9ae57f2d731f24 milter-greylist-conf.patch"
+sha256sums="98aea7e5a1c9245e04d8e1cc650ca085a738784dae7f2147d898e5b86b1ddbc0 milter-greylist-4.6.1.tgz
+973788cd06c96d7e9c02d9ccfc1dd62f85c3ef635b44873755575033b7a97336 milter-greylist-conf.patch"
+sha512sums="28d6f35b377f595777c26aa570b74c49f828f85fa3c53c02d887c89c96b50a25d758d361c0f8686b913465557bd7a2d1f0d53c40a9b73a3b3e8d3dc53c014f54 milter-greylist-4.6.1.tgz
+4057061fae24a8d008c6a8aed82018a4bb9f6e9ce72a13d9369d54b192e9a6e99b0e72db8905aa182879c9522b87a92844d0be92773843773508a21e42dbd447 milter-greylist-conf.patch"
diff --git a/testing/milter-greylist/milter-greylist-conf.patch b/testing/milter-greylist/milter-greylist-conf.patch
new file mode 100644
index 0000000000..d241393d55
--- /dev/null
+++ b/testing/milter-greylist/milter-greylist-conf.patch
@@ -0,0 +1,15 @@
+--- a/greylist.conf
++++ b/greylist.conf
+@@ -5,9 +5,9 @@
+ # $Id: greylist.conf,v 1.49 2013/01/27 02:10:19 manu Exp $
+ #
+
+-pidfile "/var/run/milter-greylist.pid"
+-socket "/var/milter-greylist/milter-greylist.sock"
+-dumpfile "/var/milter-greylist/greylist.db" 600
++pidfile "/var/run/milter-greylist/milter-greylist.pid"
++socket "/var/run/milter-greylist/milter-greylist.sock" 660
++dumpfile "/var/lib/milter-greylist/greylist.db" 600
+ dumpfreq 1
+ user "smmsp"
+
diff --git a/testing/milter-greylist/milter-greylist.initd b/testing/milter-greylist/milter-greylist.initd
new file mode 100644
index 0000000000..cef8fe183a
--- /dev/null
+++ b/testing/milter-greylist/milter-greylist.initd
@@ -0,0 +1,4 @@
+#!/sbin/runscript
+
+command=/usr/bin/$SVCNAME
+pidfile=/var/run/$SVCNAME/$SVCNAME.pid
diff --git a/testing/milter-greylist/milter-greylist.pre-install b/testing/milter-greylist/milter-greylist.pre-install
new file mode 100644
index 0000000000..cf578f0068
--- /dev/null
+++ b/testing/milter-greylist/milter-greylist.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S smmsp 2>/dev/null
+adduser -S -h /var/lib/milter-greylist -s /sbin/nologin -G smmsp -g smmsp smmsp 2>/dev/null
+
+exit 0