pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libdaemon Import libdaemon-0.12 as devel/libdaemon.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c9975a42d76
branches:  trunk
changeset: 551824:8c9975a42d76
user:      ahoka <ahoka%pkgsrc.org@localhost>
date:      Sat Dec 20 17:24:48 2008 +0000

description:
Import libdaemon-0.12 as devel/libdaemon.

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.

diffstat:

 devel/libdaemon/DESCR         |  15 +++++++++++++++
 devel/libdaemon/MESSAGE       |   8 ++++++++
 devel/libdaemon/Makefile      |  23 +++++++++++++++++++++++
 devel/libdaemon/PLIST         |  13 +++++++++++++
 devel/libdaemon/buildlink3.mk |  19 +++++++++++++++++++
 devel/libdaemon/distinfo      |   5 +++++
 6 files changed, 83 insertions(+), 0 deletions(-)

diffs (107 lines):

diff -r 9946fb3b1368 -r 8c9975a42d76 devel/libdaemon/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdaemon/DESCR     Sat Dec 20 17:24:48 2008 +0000
@@ -0,0 +1,15 @@
+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.
diff -r 9946fb3b1368 -r 8c9975a42d76 devel/libdaemon/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdaemon/MESSAGE   Sat Dec 20 17:24:48 2008 +0000
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/12/20 17:24:48 ahoka Exp $
+
+Full documentation for this package is available from:
+
+  http://0pointer.de/lennart/projects/libdaemon/reference/html/index.html
+
+===========================================================================
diff -r 9946fb3b1368 -r 8c9975a42d76 devel/libdaemon/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdaemon/Makefile  Sat Dec 20 17:24:48 2008 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/12/20 17:24:48 ahoka Exp $
+#
+
+DISTNAME=              libdaemon-0.12
+CATEGORIES=            devel
+MASTER_SITES=          http://0pointer.de/lennart/projects/libdaemon/
+
+MAINTAINER=            adrianp%NetBSD.org@localhost
+HOMEPAGE=              http://0pointer.de/lennart/projects/libdaemon/
+COMMENT=               C library that eases the writing of UNIX daemons
+
+USE_PKGLOCALEDIR=      YES
+USE_LIBTOOL=           YES
+PKGCONFIG_OVERRIDE+=   ${WRKSRC}/libdaemon.pc.in
+GNU_CONFIGURE=         YES
+
+CONFIGURE_ARGS+=       --disable-lynx
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libdaemon
+       ${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/libdaemon
+
+.include "../../mk/bsd.pkg.mk"
diff -r 9946fb3b1368 -r 8c9975a42d76 devel/libdaemon/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdaemon/PLIST     Sat Dec 20 17:24:48 2008 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/20 17:24:48 ahoka Exp $
+include/libdaemon/daemon.h
+include/libdaemon/dexec.h
+include/libdaemon/dfork.h
+include/libdaemon/dlog.h
+include/libdaemon/dnonblock.h
+include/libdaemon/dpid.h
+include/libdaemon/dsignal.h
+lib/libdaemon.la
+lib/pkgconfig/libdaemon.pc
+share/doc/libdaemon/README
+@dirrm share/doc/libdaemon
+@dirrm include/libdaemon
diff -r 9946fb3b1368 -r 8c9975a42d76 devel/libdaemon/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdaemon/buildlink3.mk     Sat Dec 20 17:24:48 2008 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/12/20 17:24:48 ahoka Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+LIBDAEMON_BUILDLINK3_MK:=      ${LIBDAEMON_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+=    libdaemon
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nlibdaemon}
+BUILDLINK_PACKAGES+=   libdaemon
+BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libdaemon
+
+.if ${LIBDAEMON_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.libdaemon+=      libdaemon>=0.10
+BUILDLINK_PKGSRCDIR.libdaemon?=                ../../devel/libdaemon
+.endif # LIBDAEMON_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
diff -r 9946fb3b1368 -r 8c9975a42d76 devel/libdaemon/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libdaemon/distinfo  Sat Dec 20 17:24:48 2008 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/12/20 17:24:48 ahoka Exp $
+
+SHA1 (libdaemon-0.12.tar.gz) = 2b45ab37df853afd25f7985ed699b799e0464413
+RMD160 (libdaemon-0.12.tar.gz) = ccadae8f8dcac3ddac154cc7e1e1d47da8302c7d
+Size (libdaemon-0.12.tar.gz) = 355167 bytes



Home | Main Index | Thread Index | Old Index