aboutsummaryrefslogtreecommitdiffstats
path: root/main/djbdns/APKBUILD
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-13 12:22:35 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-06 20:02:23 +0000
commit1db1917442cb087f602dc69b36d22b33b04c05ea (patch)
tree5c0c70e218cc7b0d913441129d5907a87e8eaf30 /main/djbdns/APKBUILD
parent5ffcec2e52679d5d6621371bd202d4f4a36f186c (diff)
downloadaports-1db1917442cb087f602dc69b36d22b33b04c05ea.tar.bz2
aports-1db1917442cb087f602dc69b36d22b33b04c05ea.tar.xz
main/djbdns: modernize abuild
Diffstat (limited to 'main/djbdns/APKBUILD')
-rw-r--r--main/djbdns/APKBUILD48
1 files changed, 7 insertions, 41 deletions
diff --git a/main/djbdns/APKBUILD b/main/djbdns/APKBUILD
index 43a9e1f5f1..0142df8fa3 100644
--- a/main/djbdns/APKBUILD
+++ b/main/djbdns/APKBUILD
@@ -6,7 +6,6 @@ pkgdesc="Excellent high-performance DNS services"
url="http://cr.yp.to/djbdns.html"
arch="all"
license="public-domain"
-depends=
subpackages="djbdns-common tinydns dnscache $pkgname-doc"
source="http://cr.yp.to/djbdns/$pkgname-$pkgver.tar.gz
http://www.fefe.de/dns/djbdns-1.05-test25.diff.bz2
@@ -24,30 +23,25 @@ http://www.fefe.de/dns/djbdns-1.05-test25.diff.bz2
dnscache.monthly
"
-_builddir="$srcdir"/$pkgname-$pkgver
+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;;
- *.diff.gz) msg $i; gunzip -c "$srcdir"/$i | patch -p1 || return 1;;
- esac
- done
+ default_prepare
+ cd "$builddir"
# remove all the generated headers. they came with the jumbo patch and should
# never have been there...
sed -n 's/^\([a-z0-9]\+\.h\):.*/\1/gp' Makefile Makefile.sig | xargs rm -f
}
build() {
- cd "$_builddir"
+ cd "$builddir"
echo "${CC:-"gcc"} ${CFLAGS}" > conf-cc
echo "${CC:-"gcc"} ${LDFLAGS}" > conf-ld
echo "/usr" > conf-home
- make -j1 || return 1
+ make -j1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
mkdir -p "$pkgdir"/etc/
cp dnsroots.global "$pkgdir"/etc/
mkdir -p "$pkgdir"/usr/bin
@@ -90,7 +84,7 @@ dnscache() {
"$subpkgdir"/etc/dnscache/servers
cp "$pkgdir"/etc/dnsroots.global "$subpkgdir"/etc/dnscache/servers/@
- touch "$subpkgdir"/etc/dnscache/ip/127 || return 1
+ touch "$subpkgdir"/etc/dnscache/ip/127
mv "$pkgdir"/usr/bin/dnscache* "$subpkgdir"/usr/bin
install -D -m755 "$srcdir"/dnscache.initd \
@@ -101,34 +95,6 @@ dnscache() {
"$subpkgdir"/etc/periodic/monthly/dnscache-hints-refresh
}
-md5sums="3147c5cd56832aa3b41955c7a51cbeb2 djbdns-1.05.tar.gz
-4593ed6a189a8bad8b58671841d36732 djbdns-1.05-test25.diff.bz2
-0d2adaf9f1626043e8702b825cdccdd6 headtail.patch
-7565048ebc981238879122c7f88cc143 dnsroots.patch
-6fe7f473233f1c86b76261afd8345bf0 dnstracesort.patch
-adb6745606cae593eb5ea6870fc27bd4 djbdns-1.05-jumbo-josb.patch
-c7be73fe2fb4ae02d5096fa2c1f55a68 1.05-errno.patch
-1292500c04baba3995d9753fe40fdc94 1.05-response.patch
-179c29b302cc10f18677a30d3b1a4376 tinydns.pre-install
-9f55917f26426cdf8e290397ebc95c08 tinydns.initd
-7dcf6674c07d46c736b3c25d9c92384a tinydns.confd
-56682f66cc25b01d9918c7aacfeefadc dnscache.initd
-2b3d02e88f70603c760bf368ab3ed636 dnscache.confd
-8173f85e0d9b4496de389d1b43993d95 dnscache.monthly"
-sha256sums="3ccd826a02f3cde39be088e1fc6aed9fd57756b8f970de5dc99fcd2d92536b48 djbdns-1.05.tar.gz
-28c88de08822894cf252e54ed3be9abfdf4f492644ff74a7c479340bdce051ea djbdns-1.05-test25.diff.bz2
-daec7b45c91e2db2607697eeba8034e13c6d99c7d8d521f462955dc2fce968b2 headtail.patch
-a9b5e70cd853e30f40f312ba42d4603691aa6b4e2498faedf3ec2b39817b3c03 dnsroots.patch
-f1d83e1365f68571fa4e007d5219720f8d65eb3730040a087fceb0ce2d8806bf dnstracesort.patch
-99dc3b9f7e8db95923b18250887f3b11f96ba7171e00242e5bde90b3cf5ae570 djbdns-1.05-jumbo-josb.patch
-0cf77c0386d422dc9ead4af71eb02f76d5a214ccd68e0e2c2cf9f774247cc19c 1.05-errno.patch
-9d59a9b608c390743cf552c20a5143e1df8401366e95b8731da261895163ca3a 1.05-response.patch
-e5bf6e1f0849a507fbf1cdc854c03f92edf717e9e1f771004354e99c957d556f tinydns.pre-install
-c2ad98e796c04ad5e929dbab841253ca861e0fc84fd1a8545c911ab9afdee15e tinydns.initd
-bc4368780009bfada4f2f55f0c2c0847aec2a4670fa42f9872716877fccdf64c tinydns.confd
-5b6cb1789e3055fc73f9be04a53430c3eaeadef9247c7695bee9c110bb22d6cd dnscache.initd
-7088d50f85ee576a7e96c6de4beb62fe0fb66f40ee083cb48528817f67a11fc3 dnscache.confd
-6da908c5ca1f0d6ab9c500d3844dc870ea99288de6940027daf1a7dadc8bb5ae dnscache.monthly"
sha512sums="20f066402801d7bec183cb710a5bc51e41f1410024741e5803e26f68f2c13567e48eba793f233dfab903459c3335bc169e24b99d66a4c64e617e1f0779732fa9 djbdns-1.05.tar.gz
41cca597dba971010b9844071e0349d3a4b25cc4b144e12721b0bc8250589fb374e40ece8908f1081762597048179b1177e88b9a5f97be0b47b63e3183e654bb djbdns-1.05-test25.diff.bz2
be4c9aea40c737364a56f188ad2276d90deac0dffb73ba4b659490836c0fe92ffb65ccf23c6724b913b2d6354336727004be0cf5b43ebc47abe7004700dfe1e8 headtail.patch