void-packages/srcpkgs/ldns/template

46 lines
1.3 KiB
Bash

# Template file for 'ldns'
pkgname=ldns
version=1.7.0
revision=3
build_style=gnu-configure
configure_args="--with-drill --with-examples --disable-dane-ta-usage
--with-trust-anchor=/etc/dns/root.key
--with-ssl=${XBPS_CROSS_BASE}/usr"
hostmakedepends="perl"
makedepends="libpcap-devel libressl-devel dnssec-anchors"
short_desc="Modern DNS/DNSSEC library -- utils"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="http://www.nlnetlabs.nl/projects/ldns/"
distfiles="http://www.nlnetlabs.nl/downloads/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=c19f5b1b4fb374cfe34f4845ea11b1e0551ddc67803bd6ddd5d2a20f0997a6cc
post_extract() {
sed -i 's/defined(@\$also)/@$also/' doc/doxyparse.pl
}
post_install() {
sed -i -e "s|\(-specs=.*hardened-ld\)||g" -e "s|\(-specs=.*hardened-cc1\)||g" ${DESTDIR}/usr/bin/ldns-config
}
libldns_package() {
depends="dnssec-anchors"
short_desc="Modern DNS/DNSSEC library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libldns-devel_package() {
depends="libldns>=${version}_${revision}"
short_desc="Modern DNS/DNSSEC library -- development files"
pkg_install() {
vmove usr/bin/ldns-config
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/man/man1/ldns-config.1
vmove usr/share/man/man3
}
}