diff --git a/common/shlibs b/common/shlibs index 26bda0a2df4..e465a607c62 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1989,3 +1989,4 @@ libcvm-sql.so.1 cvm-0.97_1 libcvm-udp.so.1 cvm-0.97_1 libcvm-v1client.so.1 cvm-0.97_1 libcvm-v2client.so.1 cvm-0.97_1 +libudns.so.0 udns-0.4_1 diff --git a/srcpkgs/udns-devel b/srcpkgs/udns-devel new file mode 120000 index 00000000000..e124f3f2265 --- /dev/null +++ b/srcpkgs/udns-devel @@ -0,0 +1 @@ +udns \ No newline at end of file diff --git a/srcpkgs/udns/template b/srcpkgs/udns/template new file mode 100644 index 00000000000..dd72c17ea76 --- /dev/null +++ b/srcpkgs/udns/template @@ -0,0 +1,48 @@ +# Template file for 'udns' +pkgname=udns +version=0.4 +revision=1 +build_style=configure +hostmakedepends="" +makedepends="" +depends="" +short_desc="Stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries" +maintainer="Enno Boland " +license="LGPL-2" +homepage="http://www.corpit.ru/mjt/udns.html" +distfiles="http://www.corpit.ru/mjt/udns/udns-${version}.tar.gz" +checksum=115108dc791a2f9e99e150012bcb459d9095da2dd7d80699b584ac0ac3768710 +configure_args="--enable-ipv6" +make_build_target="shared" + +pre_configure() { + sed -i \ + -e "/is not a working compiler/c\ac_result yes" \ + -e "/no working C compiler found/c\ac_result yes" configure.lib +} + +do_install() { + vbin dnsget_s dnsget + vbin rblcheck_s rblcheck + vbin ex-rdns_s ex-rdns + + vinstall udns.h 644 usr/include + vinstall libudns.so.0 755 usr/lib + + vman dnsget.1 + vman rblcheck.1 + vman udns.3 + + vmkdir $DESTDIR/usr/lib + ln -s libudns.so.0 $DESTDIR/usr/lib/libudns.so +} + +udns-devel_package() { + depends="udns>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/share/man/man3 + vmove usr/include + vmove "usr/lib/*.so" + } +}