diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/libdaemon |
Initial import
Diffstat (limited to 'package/libdaemon')
-rw-r--r-- | package/libdaemon/Config.in | 19 | ||||
-rw-r--r-- | package/libdaemon/Makefile | 28 | ||||
-rw-r--r-- | package/libdaemon/ipkg/libdaemon.control | 4 |
3 files changed, 51 insertions, 0 deletions
diff --git a/package/libdaemon/Config.in b/package/libdaemon/Config.in new file mode 100644 index 000000000..e19d50ef9 --- /dev/null +++ b/package/libdaemon/Config.in @@ -0,0 +1,19 @@ +config ADK_PACKAGE_LIBDAEMON + prompt "libdaemon......................... A lightweight C library that eases the writing of UNIX daemons" + tristate + default n + help + libdaemon is a lightweight C library that eases the writing of UNIX daemons. + 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. + + http://0pointer.de/lennart/projects/libdaemon/ + diff --git a/package/libdaemon/Makefile b/package/libdaemon/Makefile new file mode 100644 index 000000000..cf61b8328 --- /dev/null +++ b/package/libdaemon/Makefile @@ -0,0 +1,28 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= libdaemon +PKG_VERSION:= 0.10 +PKG_RELEASE:= 2 +PKG_MD5SUM:= 6812a5e4063b5016f25e9a0cebbd3dd9 +MASTER_SITES:= http://0pointer.de/lennart/projects/libdaemon/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,LIBDAEMON,libdaemon,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE= gnu +CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes +CONFIGURE_ARGS+= --disable-lynx +BUILD_STYLE= auto +INSTALL_STYLE= auto confprog + +post-install: + ${INSTALL_DIR} ${IDIR_LIBDAEMON}/usr/lib + ${CP} ${WRKINST}/usr/lib/libdaemon.so.* ${IDIR_LIBDAEMON}/usr/lib/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/libdaemon/ipkg/libdaemon.control b/package/libdaemon/ipkg/libdaemon.control new file mode 100644 index 000000000..3f5342224 --- /dev/null +++ b/package/libdaemon/ipkg/libdaemon.control @@ -0,0 +1,4 @@ +Package: libdaemon +Priority: optional +Section: libs +Description: A lightweight C library that eases the writing of UNIX daemons. |