Commit 43f075d9 authored by Leonardo Arena's avatar Leonardo Arena
Browse files

testing/milter-greylist: new aport

Stand-alone milter written in C that implements the greylist filtering method
parent a2230c42
# 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"
--- 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"
#!/sbin/runscript
command=/usr/bin/$SVCNAME
pidfile=/var/run/$SVCNAME/$SVCNAME.pid
#!/bin/sh
addgroup -S smmsp &>/dev/null
adduser -h /var/lib/milter-greylist -s /sbin/nologin -S -G smmsp smmsp &>/dev/null
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment