From: Harvie Date: Fri, 6 Aug 2010 01:32:25 +0000 (+0200) Subject: Added ldns package and modified it to add new features and build as split package... X-Git-Url: https://git.harvie.cz/?p=mirrors%2FArchLinux-Packages.git;a=commitdiff_plain;h=630fdb65479410ac89fe62c1d5244c9e5b47ca29 Added ldns package and modified it to add new features and build as split package - NOT owning this package - not in AUR yet --- diff --git a/ldns/PKGBUILD b/ldns/PKGBUILD new file mode 100644 index 0000000..6a32aac --- /dev/null +++ b/ldns/PKGBUILD @@ -0,0 +1,62 @@ +# Contributor: Thomas Mudrunka & jiribb & & sega01 +# Maintainer: Thomas Mudrunka +# You can also contact me on http://blog.harvie.cz/ +# Patches welcome: http://github.com/harvie/archlinux-packages + +pkgname=(ldns-lib ldns-tools ldns-drill) +_pkgname=ldns +pkgver=1.6.5 +pkgrel=1 +pkgdesc="libldns DNSSEC enabled DNS library with Drill util (ala enabled Bind's dig)" +arch=('i686' 'x86_64') +url="http://www.nlnetlabs.nl/projects/ldns/" +license=('GPL') +groups=(network) +depends=("openssl" "glibc") +#options=(!libtool) +source=(http://www.nlnetlabs.nl/downloads/$_pkgname/$_pkgname-$pkgver.tar.gz) +md5sums=('ab41a641a0416908e03e63631f527c4a') + +_configflags=' + --prefix=/usr + --sysconfdir=/etc + --localstatedir=/var + --enable-sha2 --disable-rpath'; + +build() { + echo Will pass following flags to ./configure commands: + echo $_configflags; + return 0 +} + +package_ldns-lib() { + pkgdesc="libldns DNSSEC enabled DNS library" + conflicts=(ldns) + replaces=(ldns) + provides=(ldns) + cd "${srcdir}/$_pkgname-$pkgver" + + ./configure $_configflags + make || return 1 + make DESTDIR="$pkgdir/" install +} + +package_ldns-tools() { + pkgdesc="Some DNSSEC utilities using libldns" + depends=(ldns-lib) + cd "${srcdir}/$_pkgname-$pkgver/examples" + + ./configure $_configflags + make || return 1 + make DESTDIR="$pkgdir/" install +} + +package_ldns-drill() { + pkgdesc="Drill DNSSEC utility from LDNS package (ala enabled Bind's dig)" + depends=(ldns-lib) + cd "${srcdir}/$_pkgname-$pkgver/drill" + + ./configure $_configflags + make || return 1 + make DESTDIR="$pkgdir/" install +}