21895178 Move libdaemon from Desktop to Userland consolidation
authorVladimir Marek <Vladimir.Marek@oracle.com>
Fri, 16 Oct 2015 07:42:27 -0700
changeset 4986 90a869b3f47a
parent 4985 eed3576cafd0
child 4987 6a82655eda42
21895178 Move libdaemon from Desktop to Userland consolidation
components/libdaemon/Makefile
components/libdaemon/TESTING
components/libdaemon/libdaemon.p5m
components/libdaemon/patches/libdaemon-01-configure.patch
components/libdaemon/test/results-all.master
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libdaemon/Makefile	Fri Oct 16 07:42:27 2015 -0700
@@ -0,0 +1,60 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME         = libdaemon
+COMPONENT_VERSION      = 0.14
+COMPONENT_PROJECT_URL  = http://0pointer.de/lennart/projects/libdaemon/
+COMPONENT_SRC          = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE      = $(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH = \
+	 sha256:fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834
+COMPONENT_ARCHIVE_URL  = http://0pointer.de/lennart/projects/libdaemon/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB        = library/daemon
+
+TPNO                   = 9316
+
+include $(WS_MAKE_RULES)/prep.mk
+include $(WS_MAKE_RULES)/configure.mk
+include $(WS_MAKE_RULES)/ips.mk
+
+COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if)
+
+COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
+
+CONFIGURE_ENV         += "CFLAGS=$(CFLAGS)"
+
+configure:	$(CONFIGURE_32_and_64)
+
+build:          $(BUILD_32_and_64)
+
+install:        $(INSTALL_32_and_64)
+
+test:           $(TEST_32_and_64)
+
+system-test:	$(SYSTEM_TESTS_NOT_IMPLEMENTED)
+
+REQUIRED_PACKAGES += system/library
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libdaemon/TESTING	Fri Oct 16 07:42:27 2015 -0700
@@ -0,0 +1,7 @@
+$ /usr/sbin/avahi-daemon-bridge-dsd --daemonize
+$ /usr/sbin/avahi-daemon-bridge-dsd --check ; echo $?
+0
+
+/usr/sbin/avahi-daemon-bridge-dsd --kill
+/usr/sbin/avahi-daemon-bridge-dsd --check ; echo $?
+1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libdaemon/libdaemon.p5m	Fri Oct 16 07:42:27 2015 -0700
@@ -0,0 +1,56 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri \
+    value=pkg:/library/[email protected]$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="Lightweight C library for UNIX daemons"
+set name=pkg.description \
+    value="Libdaemon is a lightweight C library that eases the writing of UNIX daemons."
+set name=com.oracle.info.description \
+    value="the lightweight C library for UNIX daemons"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value=org.opensolaris.category.2008:System/Libraries
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=org.opensolaris.arc-caseid value=LSARC/2006/455
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=usr/include/libdaemon/daemon.h
+file path=usr/include/libdaemon/dexec.h
+file path=usr/include/libdaemon/dfork.h
+file path=usr/include/libdaemon/dlog.h
+file path=usr/include/libdaemon/dnonblock.h
+file path=usr/include/libdaemon/dpid.h
+file path=usr/include/libdaemon/dsignal.h
+link path=usr/lib/$(MACH64)/libdaemon.so target=libdaemon.so.0.5.0
+link path=usr/lib/$(MACH64)/libdaemon.so.0 target=libdaemon.so.0.5.0
+file path=usr/lib/$(MACH64)/libdaemon.so.0.5.0
+file path=usr/lib/$(MACH64)/pkgconfig/libdaemon.pc
+link path=usr/lib/libdaemon.so target=libdaemon.so.0.5.0
+link path=usr/lib/libdaemon.so.0 target=libdaemon.so.0.5.0
+file path=usr/lib/libdaemon.so.0.5.0
+file path=usr/lib/pkgconfig/libdaemon.pc
+file path=usr/share/doc/libdaemon/README.html
+file path=usr/share/doc/libdaemon/style.css
+license LICENSE license="LGPL v2"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libdaemon/patches/libdaemon-01-configure.patch	Fri Oct 16 07:42:27 2015 -0700
@@ -0,0 +1,14 @@
+Home brewed patch, not suitable for sending to upstream. In order to compile
+with Studio compiler we have to remove hardcoded gcc command line options.
+
+--- libdaemon-0.14/configure.ac-orig	2010-01-28 22:49:57.256005166 -0600
++++ libdaemon-0.14/configure.ac	2010-01-28 22:49:35.799099150 -0600
[email protected]@ -51,8 +51,6 @@ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+ AC_PROG_LIBTOOL
+ 
+-CC_CHECK_CFLAGS_APPEND([-pipe -Wall -W -Wextra -pedantic -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -Wstrict-aliasing])
+-
+ # Checks for header files.
+ AC_HEADER_ASSERT
+ AC_HEADER_STDC
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libdaemon/test/results-all.master	Fri Oct 16 07:42:27 2015 -0700
@@ -0,0 +1,16 @@
+make[1]: Entering directory `$(@D)'
+Making check in libdaemon
+make[2]: Entering directory `$(@D)/libdaemon'
+make[2]: Nothing to be done for `check'.
+make[2]: Leaving directory `$(@D)/libdaemon'
+Making check in doc
+make[2]: Entering directory `$(@D)/doc'
+make[2]: Nothing to be done for `check'.
+make[2]: Leaving directory `$(@D)/doc'
+Making check in examples
+make[2]: Entering directory `$(@D)/examples'
+make[2]: Nothing to be done for `check'.
+make[2]: Leaving directory `$(@D)/examples'
+make[2]: Entering directory `$(@D)'
+make[2]: Leaving directory `$(@D)'
+make[1]: Leaving directory `$(@D)'