diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-04-22 08:09:10 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-04-22 08:10:04 +0000 |
commit | 43f075d976e3a82dc00a42ad122e61a1135db2a5 (patch) | |
tree | 0b4512dd6aca3ee92affc0d8a351548b8f085cec /testing/milter-greylist | |
parent | a2230c42696fe9f7dd45534a819d59a3d88f8b78 (diff) | |
download | aports-43f075d976e3a82dc00a42ad122e61a1135db2a5.zip |
testing/milter-greylist: new aport
Stand-alone milter written in C that implements the greylist filtering method
Diffstat (limited to 'testing/milter-greylist')
-rw-r--r-- | testing/milter-greylist/APKBUILD | 60 | ||||
-rw-r--r-- | testing/milter-greylist/milter-greylist-conf.patch | 15 | ||||
-rw-r--r-- | testing/milter-greylist/milter-greylist.initd | 4 | ||||
-rw-r--r-- | testing/milter-greylist/milter-greylist.pre-install | 4 |
4 files changed, 83 insertions, 0 deletions
diff --git a/testing/milter-greylist/APKBUILD b/testing/milter-greylist/APKBUILD new file mode 100644 index 00000000000..63811f1e3eb --- /dev/null +++ b/testing/milter-greylist/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=milter-greylist +pkgver=4.4.3 +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 +} + +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 \ + --enable-postfix + 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 + chown -R smmsp:smmsp "$pkgdir"/var/lib/$pkgname +} + +md5sums="19cf27dc8077a01d103fcf2f367e9509 milter-greylist-4.4.3.tgz +bbecf43a626a81f3383e7b9d21042290 milter-greylist-conf.patch" +sha256sums="fdf7e37c5dd370473ff2cdec7e4b6ca9e60fc2b5c716612d2d449de98d0054a9 milter-greylist-4.4.3.tgz +c0abf2a935f58f7aa8e2f49c272a9fd7c99b6464c2ff00706d1c475b5917db1a milter-greylist-conf.patch" +sha512sums="789c2b1d5b330b4564ef454aaebe891250c655f712081a436bb2d7462daa3590e02b6829881cb2e315db1238e021480013be95d0457d6bbde79a4230926cc841 milter-greylist-4.4.3.tgz +e48bab52eb6fe8a8123ddc56753fb0fa5243bd07272cf2440269cd348f96f6f6a33163e49d9b009a5ff6181a212f9d5d25354d7ddd787603bcde84eda29e4d9c 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 00000000000..975b3fe7a4a --- /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" ++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 00000000000..cef8fe183a1 --- /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 00000000000..06b94b4589f --- /dev/null +++ b/testing/milter-greylist/milter-greylist.pre-install @@ -0,0 +1,4 @@ +#!/bin/sh +addgroup -S smmsp &>/dev/null +adduser -h /var/lib/milter-greylist -s /sbin/nologin -S -G smmsp smmsp &>/dev/null +exit 0 |