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

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

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