From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/libdaemon/Config.in | 19 +++++++++++++++++++ package/libdaemon/Makefile | 28 ++++++++++++++++++++++++++++ package/libdaemon/ipkg/libdaemon.control | 4 ++++ 3 files changed, 51 insertions(+) create mode 100644 package/libdaemon/Config.in create mode 100644 package/libdaemon/Makefile create mode 100644 package/libdaemon/ipkg/libdaemon.control (limited to 'package/libdaemon') 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. -- cgit v1.2.3