From 2984049b59671804510330c76d95525f2af15cae Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 7 Dec 2009 16:05:02 +0100 Subject: [PATCH] Added libdaemon-0.14 build template. --HG-- extra : convert_revision : a93fa19872c966c3af19780a63451066c403fb01 --- srcpkgs/libdaemon-devel | 1 + srcpkgs/libdaemon/depends | 2 ++ srcpkgs/libdaemon/libdaemon-devel.template | 19 +++++++++++++++ srcpkgs/libdaemon/template | 27 ++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 120000 srcpkgs/libdaemon-devel create mode 100644 srcpkgs/libdaemon/depends create mode 100644 srcpkgs/libdaemon/libdaemon-devel.template create mode 100644 srcpkgs/libdaemon/template diff --git a/srcpkgs/libdaemon-devel b/srcpkgs/libdaemon-devel new file mode 120000 index 0000000000..c6557289eb --- /dev/null +++ b/srcpkgs/libdaemon-devel @@ -0,0 +1 @@ +libdaemon \ No newline at end of file diff --git a/srcpkgs/libdaemon/depends b/srcpkgs/libdaemon/depends new file mode 100644 index 0000000000..6b57f08164 --- /dev/null +++ b/srcpkgs/libdaemon/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.14" +api_depends="${abi_depends}" diff --git a/srcpkgs/libdaemon/libdaemon-devel.template b/srcpkgs/libdaemon/libdaemon-devel.template new file mode 100644 index 0000000000..84d74d84c9 --- /dev/null +++ b/srcpkgs/libdaemon/libdaemon-devel.template @@ -0,0 +1,19 @@ +# Template file for 'libdaemon-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libdaemon + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr +} diff --git a/srcpkgs/libdaemon/template b/srcpkgs/libdaemon/template new file mode 100644 index 0000000000..68da89e983 --- /dev/null +++ b/srcpkgs/libdaemon/template @@ -0,0 +1,27 @@ +# Template file for 'libdaemon' +pkgname=libdaemon +version=0.14 +distfiles="http://0pointer.de/lennart/projects/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_configure +configure_args="--localstatedir=/var --disable-lynx" +short_desc="Lightweight C library that eases the writing of UNIX daemons" +maintainer="Juan RP " +checksum=fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834 +long_desc=" + It consists of the following parts: + + * A wrapper around fork() which does the correct daemonization procedure + of a process. + * A wrapper around syslog() for simpler and compatible log output to Syslog + or STDERR. + * An API for writing PID files. + * An API for serializing UNIX signals into a pipe for usage with select() + or poll(). + * An API for running subprocesses with STDOUT and STDERR redirected to syslog. + + APIs like these are used in most daemon software available. It is not that + simple to get it done right and code duplication is not a goal." + +subpackages="$pkgname-devel" +Add_dependency run glibc +Add_dependency build glibc-devel