diff options
Diffstat (limited to 'testing/dnssec-tools')
-rw-r--r-- | testing/dnssec-tools/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/dnssec-tools/APKBUILD b/testing/dnssec-tools/APKBUILD new file mode 100644 index 0000000000..20d330f424 --- /dev/null +++ b/testing/dnssec-tools/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: <xmingske@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=dnssec-tools +pkgver=2.1 +pkgrel=0 +pkgdesc="Set of tools that will help ease the deployment of DNSSEC" +url="https://www.dnssec-tools.org/" +arch="all" +license="GPL3" +makedepends="autoconf automake bind-dev libtool openssl-dev perl-graphviz perl-crypt-openssl-random + perl-net-dns perl-net-dns-sec perl-xml-simple perl-dev sed" +source="http://www.dnssec-tools.org/download/dnssec-tools-2.1.tar.gz" +subpackages="$pkgname-dev" + +_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 + sed -e '/^maninstall:/,+3s:$(MKPATH) $(mandir)/$(man1dir):$(MKPATH) $(DESTDIR)/$(mandir)/$(man1dir):' \ + -i Makefile.in || die + sed -e 's:/usr/local/etc:/etc:g' \ + -e 's:/usr/local:/usr:g' \ + -i tools/donuts/donuts \ + -i tools/etc/dnssec-tools/dnssec-tools.conf \ + -i tools/scripts/genkrf || die +} + +build() { + cd "${_builddir}" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-bind-checks \ + --without-validator \ + --with-perl-build-args=INSTALLDIRS=vendor + make || return 1 +} + +package() { + cd "${_builddir}" + mkdir -p "${pkgdir}"/usr/share/man/man1 + make DESTDIR="${pkgdir}" install || return 1 +} + +md5sums="b4c76b325c380780682a548730d3e09a dnssec-tools-2.1.tar.gz" +sha256sums="64eebfd1213714b530e501f22b5ff9786db9b982897c432fecba75740ddcda52 dnssec-tools-2.1.tar.gz" +sha512sums="61119837320bf9a7c2d64a593fc3ed6b84ee7683b7e4ba5de380b0fd1be70e44bf73825ea5395cc1d3ddc729eaef17823a230b44b68fbc5fca988f8fb080f66b dnssec-tools-2.1.tar.gz" |