Commit 012d3613 authored by Leonardo Arena's avatar Leonardo Arena

community/milter-greylist: modernize APKBUILD, add openrc subpkg

parent 889f81fa
......@@ -2,31 +2,24 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=milter-greylist
pkgver=4.6.2
pkgrel=2
pkgrel=3
pkgdesc="Stand-alone milter written in C that implements the greylist filtering method"
url="http://hcpnet.free.fr/milter-greylist"
arch="all"
license="BSD-3-Clause"
depends=
depends_dev=
makedepends="$depends_dev bison flex geoip-dev libmilter-dev libspf2-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
subpackages="$pkgname-doc $pkgname-openrc"
pkgusers="smmsp"
pkggroups="smmsp"
options="!check" # no test suite
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
default_prepare
#autoreconf -vif
}
......@@ -50,13 +43,13 @@ build() {
--enable-spamassassin \
--enable-dnsrbl \
--disable-rpath
make -j1 || return 1
make -j1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D ../../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
make DESTDIR="$pkgdir" install
install -m755 -D ../../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D greylist2.conf "$pkgdir"/etc/$pkgname/greylist2.conf
mkdir -p "$pkgdir"/var/lib/$pkgname
chown -R smmsp:smmsp "$pkgdir"/var/lib/$pkgname
......
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