summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorahoka <ahoka@pkgsrc.org>2008-12-20 17:24:48 +0000
committerahoka <ahoka@pkgsrc.org>2008-12-20 17:24:48 +0000
commit75661c1d88f539a433958aeafac7a94b3777829e (patch)
tree311fa00e36aa564001fb92c34d4b989906bc5bf0 /devel
parentea7263e2ea51ba829a87607727ef82c0172f8141 (diff)
downloadpkgsrc-75661c1d88f539a433958aeafac7a94b3777829e.tar.gz
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 (limited to 'devel')
-rw-r--r--devel/libdaemon/DESCR15
-rw-r--r--devel/libdaemon/MESSAGE8
-rw-r--r--devel/libdaemon/Makefile23
-rw-r--r--devel/libdaemon/PLIST13
-rw-r--r--devel/libdaemon/buildlink3.mk19
-rw-r--r--devel/libdaemon/distinfo5
6 files changed, 83 insertions, 0 deletions
diff --git a/devel/libdaemon/DESCR b/devel/libdaemon/DESCR
new file mode 100644
index 00000000000..9ced94aae22
--- /dev/null
+++ b/devel/libdaemon/DESCR
@@ -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 --git a/devel/libdaemon/MESSAGE b/devel/libdaemon/MESSAGE
new file mode 100644
index 00000000000..d6680e563d0
--- /dev/null
+++ b/devel/libdaemon/MESSAGE
@@ -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 --git a/devel/libdaemon/Makefile b/devel/libdaemon/Makefile
new file mode 100644
index 00000000000..be674ad4ada
--- /dev/null
+++ b/devel/libdaemon/Makefile
@@ -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
+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 --git a/devel/libdaemon/PLIST b/devel/libdaemon/PLIST
new file mode 100644
index 00000000000..aebaac701f3
--- /dev/null
+++ b/devel/libdaemon/PLIST
@@ -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 --git a/devel/libdaemon/buildlink3.mk b/devel/libdaemon/buildlink3.mk
new file mode 100644
index 00000000000..b73d2532942
--- /dev/null
+++ b/devel/libdaemon/buildlink3.mk
@@ -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 --git a/devel/libdaemon/distinfo b/devel/libdaemon/distinfo
new file mode 100644
index 00000000000..5883cc198c9
--- /dev/null
+++ b/devel/libdaemon/distinfo
@@ -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