aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dnssec-tools/APKBUILD
blob: d46ae9bb5cff91b597c8723d5a7a0e3821f8fdee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dnssec-tools
pkgver=2.1
pkgrel=2
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 chrpath"
source="http://www.dnssec-tools.org/download/dnssec-tools-2.1.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"

_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}"
	CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE=1"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-bind-checks \
		--with-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
	chrpath -d "${pkgdir}"/usr/bin/dt-*
}

md5sums="b4c76b325c380780682a548730d3e09a  dnssec-tools-2.1.tar.gz"
sha256sums="64eebfd1213714b530e501f22b5ff9786db9b982897c432fecba75740ddcda52  dnssec-tools-2.1.tar.gz"
sha512sums="61119837320bf9a7c2d64a593fc3ed6b84ee7683b7e4ba5de380b0fd1be70e44bf73825ea5395cc1d3ddc729eaef17823a230b44b68fbc5fca988f8fb080f66b  dnssec-tools-2.1.tar.gz"