From 000d7c46b69be7e25a298d3212c7d3226e596825 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 22 Dec 2009 20:24:55 +0100 Subject: [PATCH] Added libasyncns-0.8 build template. --HG-- extra : convert_revision : 25592feaf2290fe76f26ba11c64eb16526a51b17 --- srcpkgs/libasyncns-devel | 1 + srcpkgs/libasyncns/depends | 2 ++ srcpkgs/libasyncns/libasyncns-devel.template | 19 +++++++++++++++++++ srcpkgs/libasyncns/template | 20 ++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 120000 srcpkgs/libasyncns-devel create mode 100644 srcpkgs/libasyncns/depends create mode 100644 srcpkgs/libasyncns/libasyncns-devel.template create mode 100644 srcpkgs/libasyncns/template diff --git a/srcpkgs/libasyncns-devel b/srcpkgs/libasyncns-devel new file mode 120000 index 0000000000..1326820af2 --- /dev/null +++ b/srcpkgs/libasyncns-devel @@ -0,0 +1 @@ +libasyncns \ No newline at end of file diff --git a/srcpkgs/libasyncns/depends b/srcpkgs/libasyncns/depends new file mode 100644 index 0000000000..daa819845a --- /dev/null +++ b/srcpkgs/libasyncns/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.8" +api_depends="${abi_depends}" diff --git a/srcpkgs/libasyncns/libasyncns-devel.template b/srcpkgs/libasyncns/libasyncns-devel.template new file mode 100644 index 0000000000..ff5bd654cf --- /dev/null +++ b/srcpkgs/libasyncns/libasyncns-devel.template @@ -0,0 +1,19 @@ +# Template file for 'libasyncns-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libasyncns + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr +} diff --git a/srcpkgs/libasyncns/template b/srcpkgs/libasyncns/template new file mode 100644 index 0000000000..fb0334a4d5 --- /dev/null +++ b/srcpkgs/libasyncns/template @@ -0,0 +1,20 @@ +# Template file for 'libasyncns' +pkgname=libasyncns +version=0.8 +distfiles="http://0pointer.de/lennart/projects/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="C library for executing name service queries asynchronously" +maintainer="Juan RP " +checksum=4f1a66e746cbe54ff3c2fbada5843df4fbbbe7481d80be003e8d11161935ab74 +long_desc=" + libasyncns is a C library for Linux/Unix for executing name service queries + asynchronously. It is an asynchronous wrapper around getaddrinfo(3), + getnameinfo(3), res_query(3) and res_search(3) from libc and libresolv. + + In contrast to GNU's asynchronous name resolving API getaddrinfo_a(), + libasyncns does not make use of UNIX signals for reporting completion of + name queries. Instead, the API exports a standard UNIX file descriptor which + may be integerated cleanly into custom main loops." + +subpackages="$pkgname-devel" +Add_dependency run glibc