aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dnssec-tools
diff options
context:
space:
mode:
authorBreno Leitao <breno.leitao@gmail.com>2017-05-02 22:07:39 +0000
committerBreno Leitao <breno.leitao@gmail.com>2017-05-02 22:10:57 +0000
commitc8bc531285e8c476ff991b34dd1cf8988a314b04 (patch)
treec14e59f987218e1a679ab21638d748b20b4dcf1b /testing/dnssec-tools
parent8c5f9fe8159674f21d06dd464d1e9f23d7c7fe51 (diff)
downloadaports-c8bc531285e8c476ff991b34dd1cf8988a314b04.tar.bz2
aports-c8bc531285e8c476ff991b34dd1cf8988a314b04.tar.xz
testing/dnssec-tools: Modernize APKBUILD
Modernizing package, as using helpers as default_prepare other than appllying patches "manually".
Diffstat (limited to 'testing/dnssec-tools')
-rw-r--r--testing/dnssec-tools/APKBUILD20
1 files changed, 8 insertions, 12 deletions
diff --git a/testing/dnssec-tools/APKBUILD b/testing/dnssec-tools/APKBUILD
index b07abe1ad0..04f35d3f53 100644
--- a/testing/dnssec-tools/APKBUILD
+++ b/testing/dnssec-tools/APKBUILD
@@ -12,16 +12,12 @@ makedepends="autoconf automake bind-dev libtool libressl-dev perl-graphviz perl-
source="http://distfiles.alpinelinux.org/distfiles/dnssec-tools-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
-_builddir="${srcdir}/${pkgname}-${pkgver}"
+builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
local pf
- cd "${_builddir}"
- for pf in $source; do
- case $pf in
- *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
- esac
- done
+ cd "$builddir"
+ default_prepare
sed -e '/^maninstall:/,+3s:$(MKPATH) $(mandir)/$(man1dir):$(MKPATH) $(DESTDIR)/$(mandir)/$(man1dir):' \
-i Makefile.in || die
sed -e 's:/usr/local/etc:/etc:g' \
@@ -32,7 +28,7 @@ prepare() {
}
build() {
- cd "${_builddir}"
+ cd "$builddir"
CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE=1"
./configure \
--prefix=/usr \
@@ -46,10 +42,10 @@ build() {
}
package() {
- cd "${_builddir}"
- mkdir -p "${pkgdir}"/usr/share/man/man1
- make DESTDIR="${pkgdir}" install || return 1
- chrpath -d "${pkgdir}"/usr/bin/dt-*
+ cd "$builddir"
+ mkdir -p "$pkgdir"/usr/share/man/man1
+ make DESTDIR="$pkgdir" install || return 1
+ chrpath -d "$pkgdir"/usr/bin/dt-*
}
md5sums="b4c76b325c380780682a548730d3e09a dnssec-tools-2.1.tar.gz"