diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-18 06:11:41 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-18 06:11:45 +0000 |
commit | 012d3613b7a9c434ec8c57121965925a3ac2af65 (patch) | |
tree | 0a5293754a4db48a1d0746a2f3035df83a6b2ed0 | |
parent | 889f81faa9f5dc7192f25f8756e687f28259f92f (diff) | |
download | aports-012d3613b7a9c434ec8c57121965925a3ac2af65.tar.bz2 aports-012d3613b7a9c434ec8c57121965925a3ac2af65.tar.xz |
community/milter-greylist: modernize APKBUILD, add openrc subpkg
-rw-r--r-- | community/milter-greylist/APKBUILD | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/community/milter-greylist/APKBUILD b/community/milter-greylist/APKBUILD index 4a7d58b07d..5c4455b5b4 100644 --- a/community/milter-greylist/APKBUILD +++ b/community/milter-greylist/APKBUILD @@ -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 |