diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-04 23:09:42 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-05 00:12:50 +0200 |
commit | 64a79d3787d3d79e35cb5f1d0658eca8e079550e (patch) | |
tree | 48a4ec9024e5b38c5214cf783a1a860e3bd0cf90 | |
parent | 4beb25f59b93e6678ac34e2e1d05b14bb0c7fde9 (diff) | |
download | aports-64a79d3787d3d79e35cb5f1d0658eca8e079550e.tar.bz2 aports-64a79d3787d3d79e35cb5f1d0658eca8e079550e.tar.xz |
main/dkimproxy: improve and modernize abuild
-rw-r--r-- | main/dkimproxy/APKBUILD | 55 |
1 files changed, 17 insertions, 38 deletions
diff --git a/main/dkimproxy/APKBUILD b/main/dkimproxy/APKBUILD index d3b5868401..a70e638b4a 100644 --- a/main/dkimproxy/APKBUILD +++ b/main/dkimproxy/APKBUILD @@ -8,9 +8,6 @@ url="http://dkimproxy.sourceforge.net/" arch="noarch" license="GPL" depends="perl-mail-dkim perl-net-server perl-error" -depends_dev= -makedepends="$depends_dev" -install= subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz dkimproxy.in.initd @@ -18,55 +15,37 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz dkimproxy.in.confd dkimproxy.out.confd " +builddir="$srcdir/$pkgname-$pkgver" +build() { + cd "$builddir" -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - cd "$_builddir" - # apply patches here -} + local vendorlib=$(perl -V:vendorlib | sed -En "s|vendorlib='([^']+)';|\1|p") -build() { - cd "$_builddir" - eval local $(perl -V:vendorlib) perllibdir="$vendorlib" ./configure --prefix=/usr \ - --sysconfdir=/etc/dkimproxy \ + --sysconfdir=/etc/$pkgname \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --bindir=/usr/bin - - make || return 1 + make } package() { - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install - #FIXME - mkdir -p "$pkgdir"/usr/sbin - mv "$pkgdir"/usr/bin/$pkgname.* "$pkgdir"/usr/sbin/ - install -D -m755 "$srcdir"/$pkgname.in.initd \ - "$pkgdir"/etc/init.d/$pkgname.in - install -D -m755 "$srcdir"/$pkgname.out.initd \ - "$pkgdir"/etc/init.d/$pkgname.out - install -D -m755 "$srcdir"/$pkgname.in.confd \ - "$pkgdir"/etc/conf.d/$pkgname.in - install -D -m755 "$srcdir"/$pkgname.out.confd \ - "$pkgdir"/etc/conf.d/$pkgname.out - + cd "$pkgdir" + + mkdir -p ./usr/sbin + mv ./usr/bin/$pkgname.* ./usr/sbin/ + + local name; for name in $pkgname.in $pkgname.out; do + install -D -m 755 "$srcdir"/$name.initd ./etc/init.d/$name + install -D -m 644 "$srcdir"/$name.confd ./etc/conf.d/$name + done } -md5sums="3ecaa38a8c865a5b7682f7f261354218 dkimproxy-1.4.1.tar.gz -107cf9043a8c643cec928e916940be6f dkimproxy.in.initd -bd8c5498de00763537c46b40b8d56b02 dkimproxy.out.initd -ed0a3b96bfa39456b8c140bb7299590e dkimproxy.in.confd -29bd82752fb872abcd7711244de6bc09 dkimproxy.out.confd" -sha256sums="e5345a1d3cefd32d1fb0face9fa73490118132767253b0ce643463f1e86185bd dkimproxy-1.4.1.tar.gz -7539be4d723e2f5e04cf946a4e9015e1faa4ccc6d36fe62d43c84ef6683491a4 dkimproxy.in.initd -a78822d98e3da41bed4e0d96517ac86ce0bae427f6cceccb0303293f316d44ce dkimproxy.out.initd -e4aeae0ed78eb8b414a1cc75de9dabadfd566f5b00f5034503ef0ab9ee1de8f9 dkimproxy.in.confd -345ed8aeded05bc5a687dce0380800e53a0dddf547c05c49bc5c9d6aa45b50e0 dkimproxy.out.confd" sha512sums="ad5ac961ea25cdd7ccc763521d1fa5e143ef93056ca4bdace1d0d8f564ab85cb128b4c97ace310bcbf9e4d49430dd5baf1e9f836f5a44a4b3f1e7498ebc352b6 dkimproxy-1.4.1.tar.gz 35368ff9d63103c7a17ce4320ad434daad1e0039d19e6777e0d226befdcc290c0737baf856a384bb915b0ca8f0311b10259fb2c0df1c9896445e748622b66a64 dkimproxy.in.initd 31a91b1bccb76210aad13329c55a0f1c9d499188fd73b0bc4fb2160790885e1f74a27328c8864744bdc4610b27fba1f13b10494ad9d789599c58bb1dbf33a5f5 dkimproxy.out.initd |