# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=yadifa pkgver=2.1.4 _buildnr=5589 pkgrel=0 pkgdesc="Lightweight authoritative Name Server with DNSSEC capabilities" url="http://www.yadifa.eu" arch="all" license="BSD-3" depends="openssl" depends_dev="openssl-dev" makedepends="$depends_dev" install="$pkgname.post-install" options="libtool" subpackages="$pkgname-dev $pkgname-doc" source="http://cdn.yadifa.eu/sites/default/files/releases/$pkgname-$pkgver-$_buildnr.tar.gz $pkgname.initd $pkgname.confd" _builddir="$srcdir"/$pkgname-$pkgver-$_buildnr prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done sed -i -e "s/__linux__/__GLIBC__/g" lib/dnscore/src/tcp_io_stream.c sed -i -e "s/__linux__/__GLIBC__/g" lib/dnscore/src/debug.c sed -i -e "s/__linux__/__GLIBC__/g" lib/dnscore/src/format.c sed -i -e "s/__linux__/__GLIBC__/g" sbin/yadifad/signals.c } build() { cd "$_builddir" ./configure --prefix=/usr \ --build=$CBUILD \ --host=$CHOST \ --sysconfdir=/etc/$pkgname \ --localstatedir=/var/yadifa \ --enable-dynamic-provisioning \ --enable-rrl make } package() { cd "$_builddir" make DESTDIR="$pkgdir" install install -D -m 0755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -D -m 0755 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -D -m 0755 etc/*.example "$pkgdir"/etc/$pkgname cp etc/yadifad.conf "$pkgdir"/etc/$pkgname mkdir -p "$pkgdir"/var/run/$pkgname mkdir -p "$pkgdir"/var/log/$pkgname } md5sums="5d2334b1025d1aca2f015e77642e5037 yadifa-2.1.4-5589.tar.gz d953b0cc2d696dc67ffe24e89a1aa66c yadifa.initd 5440992593d8605cf9c638d0e59d7fc5 yadifa.confd" sha256sums="85e4af4caff26aa2cb657953f9f48e39c063e4c991ab94898316983d9f472c63 yadifa-2.1.4-5589.tar.gz 4012317e3e6ed95767c7b3ad05f9eda6e532788f95e6617aa135488693525eb3 yadifa.initd 09ae43cadd2790cec47a904ded91dfad989b91108d1d6f0221ea171676c3de22 yadifa.confd" sha512sums="d30a02d67621b5fd8423bb242de527d952a6f94b61733cb3d387070cefcddff0a1ceaa372e75abfde01d72b5f56a142cdff216fed2e8ce551522874682b1e082 yadifa-2.1.4-5589.tar.gz a3a65bf13f41838d9493facc2903d955aafd107a29d8a73d4ed021690e1e2c511f48915360a9490ccbf8d9573f8e9c3fca988cb6dd5e57546787384e2b2d075d yadifa.initd eac74148b58d3b7472602542622616bd0ef441b191356a5b7fd06d17284c579139c1fde9b35fbb30a8214394863e31bed4c8521aff7b3f7ea831f14c2a3ccf01 yadifa.confd"