summaryrefslogtreecommitdiff
path: root/libsysevent/debian
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-11-01 03:42:25 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-11-01 03:42:25 +0400
commitad0cb7395af5fab70d8362a4d510c6eea83f82bc (patch)
treef9887620174300867b9b5592052652510565471a /libsysevent/debian
parent23d3335d98fa35fb25607bd973faa015c0deeaa8 (diff)
downloadillumos-packaging-ad0cb7395af5fab70d8362a4d510c6eea83f82bc.tar.gz
libsysevent
Diffstat (limited to 'libsysevent/debian')
-rw-r--r--libsysevent/debian/README.source10
-rw-r--r--libsysevent/debian/changelog5
-rw-r--r--libsysevent/debian/compat1
-rw-r--r--libsysevent/debian/control77
-rw-r--r--libsysevent/debian/copyright62
-rw-r--r--libsysevent/debian/lib32sysevent1-dev.install1
-rw-r--r--libsysevent/debian/lib32sysevent1.install1
-rw-r--r--libsysevent/debian/libsysevent1-dev.install2
-rw-r--r--libsysevent/debian/libsysevent1.install1
-rw-r--r--libsysevent/debian/patches/libsysevent-NULL-0.patch53
-rw-r--r--libsysevent/debian/patches/libsysevent-no-id_space.h.patch13
-rw-r--r--libsysevent/debian/patches/series2
-rwxr-xr-xlibsysevent/debian/rules96
-rw-r--r--libsysevent/debian/source/format1
14 files changed, 325 insertions, 0 deletions
diff --git a/libsysevent/debian/README.source b/libsysevent/debian/README.source
new file mode 100644
index 0000000..9988910
--- /dev/null
+++ b/libsysevent/debian/README.source
@@ -0,0 +1,10 @@
+Real sources are in the package illumos-source-X.Y,
+where X and Y are numbers. Exact values of X and Y
+are set in Build-Depends field of debian/control as
+well as in the version string in debian/changelog,
+in a form of X.Y-1.
+
+To add a patch you need first to unpack files from
+illumos-source-X.Y using ./debian/rules unpack
+and, desirably, ./debian/rules patch
+
diff --git a/libsysevent/debian/changelog b/libsysevent/debian/changelog
new file mode 100644
index 0000000..eb3a430
--- /dev/null
+++ b/libsysevent/debian/changelog
@@ -0,0 +1,5 @@
+libsysevent (2.10-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Tue, 23 Oct 2012 03:02:05 +0400
diff --git a/libsysevent/debian/compat b/libsysevent/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/libsysevent/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/libsysevent/debian/control b/libsysevent/debian/control
new file mode 100644
index 0000000..b9950dd
--- /dev/null
+++ b/libsysevent/debian/control
@@ -0,0 +1,77 @@
+Source: libsysevent
+Section: libs
+Priority: optional
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends:
+ dh-illumos,
+ gcc-multilib,
+ illumos-source-2.10,
+ libnvpair1-dev, lib32nvpair1-dev,
+ quilt,
+ symlinks,
+Standards-Version: 3.9.3
+Homepage: https://www.illumos.org
+
+Package: libsysevent1
+Section: libs
+Priority: standard
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: illumos-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: system event interface library
+ This package contains libsysevent shared library.
+ .
+ Functions in this library extract specific identifier, publisher, and
+ attribute information from a system event (sysevent) handle, defined as
+ sysevent_t, and allow privileged user-level applications to queue system
+ events for delivery to the system event daemon, syseventd.
+
+
+Package: libsysevent1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-any
+Provides: libsysevent-dev
+Depends: libsysevent1 (= ${binary:Version}), ${misc:Depends}, libc1-dev,
+ libnvpair1-dev
+Description: system event interface library (development files)
+ This package contains the header files and symlinks needed
+ to compile applications that use libsysevent.
+ .
+ Functions in this library extract specific identifier, publisher, and
+ attribute information from a system event (sysevent) handle, defined as
+ sysevent_t, and allow privileged user-level applications to queue system
+ events for delivery to the system event daemon, syseventd.
+
+Package: lib32sysevent1
+Section: libs
+Priority: standard
+Architecture: illumos-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: system event interface library (32 bit)
+ This package contains libsysevent shared library.
+ .
+ Functions in this library extract specific identifier, publisher, and
+ attribute information from a system event (sysevent) handle, defined as
+ sysevent_t, and allow privileged user-level applications to queue system
+ events for delivery to the system event daemon, syseventd.
+ .
+ This is a 32-bit version of the library.
+
+Package: lib32sysevent1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-amd64
+Provides: lib32sysevent-dev
+Depends: lib32sysevent1 (= ${binary:Version}), libsysevent1-dev (= ${binary:Version}),
+ ${misc:Depends}
+Description: system event interface library (32-bit development files)
+ This package contains files needed to compile
+ 32-bit applications that use libsysevent.
+ .
+ Functions in this library extract specific identifier, publisher, and
+ attribute information from a system event (sysevent) handle, defined as
+ sysevent_t, and allow privileged user-level applications to queue system
+ events for delivery to the system event daemon, syseventd.
+
diff --git a/libsysevent/debian/copyright b/libsysevent/debian/copyright
new file mode 100644
index 0000000..2b18913
--- /dev/null
+++ b/libsysevent/debian/copyright
@@ -0,0 +1,62 @@
+Files: debian/*
+Copyright: 2012, Igor Pashev <pashev.igor@gmail.com>
+License: WTFPL-2
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+ .
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+ .
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+ .
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+ .
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
+
+
+Files: usr/src/lib/libinetutil/common/ifaddrlist.c
+Copyright: 1997, The Regents of the University of California.
+ 2009 Sun Microsystems, Inc.
+License: 4-clause BSD
+ Copyright (c) 1997
+ The Regents of the University of California. All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. All advertising materials mentioning features or use of this software
+ must display the following acknowledgement:
+ This product includes software developed by the Computer Systems
+ Engineering Group at Lawrence Berkeley Laboratory.
+ 4. Neither the name of the University nor of the Laboratory may be used
+ to endorse or promote products derived from this software without
+ specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+Files: *
+License: CDDL
+ Note that sources are not in this package but in the package
+ illumos-source-X.Y. Those sources are covered by Common Development
+ and Distribution License (CDDL).
+ .
+ On Dyson system, the full text of the CDDL license
+ can be found in the file `/usr/share/common-licenses/CDDL-1.0'.
+
diff --git a/libsysevent/debian/lib32sysevent1-dev.install b/libsysevent/debian/lib32sysevent1-dev.install
new file mode 100644
index 0000000..28cbce4
--- /dev/null
+++ b/libsysevent/debian/lib32sysevent1-dev.install
@@ -0,0 +1 @@
+usr/lib32/libsysevent.so
diff --git a/libsysevent/debian/lib32sysevent1.install b/libsysevent/debian/lib32sysevent1.install
new file mode 100644
index 0000000..ccf4c94
--- /dev/null
+++ b/libsysevent/debian/lib32sysevent1.install
@@ -0,0 +1 @@
+lib32/libsysevent.so.1
diff --git a/libsysevent/debian/libsysevent1-dev.install b/libsysevent/debian/libsysevent1-dev.install
new file mode 100644
index 0000000..79b155c
--- /dev/null
+++ b/libsysevent/debian/libsysevent1-dev.install
@@ -0,0 +1,2 @@
+usr/lib/*/libsysevent.so
+usr/include/*
diff --git a/libsysevent/debian/libsysevent1.install b/libsysevent/debian/libsysevent1.install
new file mode 100644
index 0000000..913572b
--- /dev/null
+++ b/libsysevent/debian/libsysevent1.install
@@ -0,0 +1 @@
+lib/*/libsysevent.so.1
diff --git a/libsysevent/debian/patches/libsysevent-NULL-0.patch b/libsysevent/debian/patches/libsysevent-NULL-0.patch
new file mode 100644
index 0000000..092fcec
--- /dev/null
+++ b/libsysevent/debian/patches/libsysevent-NULL-0.patch
@@ -0,0 +1,53 @@
+Index: libsysevent/usr/src/lib/libsysevent/libevchannel.c
+===================================================================
+--- libsysevent.orig/usr/src/lib/libsysevent/libevchannel.c 2012-10-08 04:25:42.000000000 +0400
++++ libsysevent/usr/src/lib/libsysevent/libevchannel.c 2012-11-01 03:02:51.200180051 +0400
+@@ -217,7 +217,7 @@
+ * Unsubscribe, if we are in the process which did the bind.
+ */
+ if (EV_PID(scp) == getpid()) {
+- uargs.sid.name = NULL;
++ uargs.sid.name = 0;
+ uargs.sid.len = 0;
+ /*
+ * The unsubscribe ioctl will block until all door upcalls have
+@@ -705,7 +705,7 @@
+ if (strcmp(sid, EVCH_ALLSUB) == 0) {
+ all_subscribers++;
+ /* Indicates all subscriber id's for this channel */
+- uargs.sid.name = NULL;
++ uargs.sid.name = 0;
+ uargs.sid.len = 0;
+ } else {
+ uargs.sid.name = (uintptr_t)sid;
+Index: libsysevent/usr/src/lib/libsysevent/libsysevent.c
+===================================================================
+--- libsysevent.orig/usr/src/lib/libsysevent/libsysevent.c 2012-10-08 04:25:42.000000000 +0400
++++ libsysevent/usr/src/lib/libsysevent/libsysevent.c 2012-11-01 03:02:08.781814899 +0400
+@@ -765,7 +765,7 @@
+ sub_info = (subscriber_priv_t *)SH_PRIV_DATA(shp);
+
+ /* See hack alert in sysevent_bind_subscriber_cmn */
+- if (sub_info->sp_handler_tid == NULL)
++ if (sub_info->sp_handler_tid == 0)
+ sub_info->sp_handler_tid = thr_self();
+
+ (void) mutex_lock(&sub_info->sp_qlock);
+@@ -2221,7 +2221,7 @@
+
+ /* Create an event handler thread */
+ if (xsa == NULL || xsa->xs_thrcreate == NULL) {
+- created = thr_create(NULL, NULL,
++ created = thr_create(NULL, 0,
+ (void *(*)(void *))subscriber_event_handler,
+ shp, THR_BOUND, &sub_info->sp_handler_tid) == 0;
+ } else {
+@@ -2510,7 +2510,7 @@
+ /* Signal event handler and drain the subscriber's event queue */
+ (void) cond_signal(&sub_info->sp_cv);
+ (void) mutex_unlock(&sub_info->sp_qlock);
+- if (sub_info->sp_handler_tid != NULL)
++ if (sub_info->sp_handler_tid != 0)
+ (void) thr_join(sub_info->sp_handler_tid, NULL, NULL);
+
+ (void) cond_destroy(&sub_info->sp_cv);
diff --git a/libsysevent/debian/patches/libsysevent-no-id_space.h.patch b/libsysevent/debian/patches/libsysevent-no-id_space.h.patch
new file mode 100644
index 0000000..8a8fc7e
--- /dev/null
+++ b/libsysevent/debian/patches/libsysevent-no-id_space.h.patch
@@ -0,0 +1,13 @@
+Description: this header is required only in kernel
+Index: libsysevent/usr/src/uts/common/sys/sysevent_impl.h
+===================================================================
+--- libsysevent.orig/usr/src/uts/common/sys/sysevent_impl.h 2012-10-08 04:26:00.000000000 +0400
++++ libsysevent/usr/src/uts/common/sys/sysevent_impl.h 2012-11-01 03:32:56.098703609 +0400
+@@ -27,7 +27,6 @@
+ #define _SYS_SYSEVENT_IMPL_H
+
+ #include <sys/nvpair.h>
+-#include <sys/id_space.h>
+ #include <sys/door.h>
+
+ #ifdef __cplusplus
diff --git a/libsysevent/debian/patches/series b/libsysevent/debian/patches/series
new file mode 100644
index 0000000..c43c29a
--- /dev/null
+++ b/libsysevent/debian/patches/series
@@ -0,0 +1,2 @@
+libsysevent-NULL-0.patch
+libsysevent-no-id_space.h.patch
diff --git a/libsysevent/debian/rules b/libsysevent/debian/rules
new file mode 100755
index 0000000..60757a7
--- /dev/null
+++ b/libsysevent/debian/rules
@@ -0,0 +1,96 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+export DH_VERBOSE = 1
+
+# libs having "install_h" target to install headers:
+libs_headers := \
+libsysevent \
+
+# All libraries to build and to package.
+# Order is important:
+libs := $(libs_headers) \
+
+
+unpack: unpack-stamp
+unpack-stamp:
+ dh_testdir
+ dh_illumos_gate --build \
+ $(libs:%=usr/src/lib/%) \
+ usr/src/uts/common/sys/sysevent.h \
+ usr/src/uts/common/sys/sysevent_impl.h
+
+ # Not used and buggy:
+ echo > usr/src/Makefile.msg.targ
+ touch $@
+
+patch: patch-stamp
+patch-stamp: unpack-stamp
+ dh_testdir
+ [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+ touch $@
+
+unpatch:
+ dh_testdir
+ [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt pop -a -f || test $$? = 2
+ rm -f patch-stamp
+
+dirs-stamp:
+ . usr/env.sh; mkdir -p \
+ debian/tmp/usr/include \
+ debian/tmp/usr/include/sys \
+ debian/tmp$$DEB_LIBDIR_32 \
+ debian/tmp$$DEB_LIBDIR_64 \
+ debian/tmp$$DEB_USRLIBDIR_32 \
+ debian/tmp$$DEB_USRLIBDIR_64 \
+
+headers-stamp: patch-stamp dirs-stamp
+ dh_illumos_make $(libs_headers:%=usr/src/lib/%) -t install_h
+ cp usr/src/uts/common/sys/sysevent*.h \
+ debian/tmp/usr/include/sys/
+ touch $@
+
+install build build-arch build-indep: build-stamp
+build-stamp: patch-stamp dirs-stamp headers-stamp
+ dh_illumos_make $(libs:%=usr/src/lib/%)
+ # Move dev symlink from /lib into /usr/lib:
+ for l in `find debian/tmp/lib32 -maxdepth 1 -type l -name \*.so`; do \
+ ln -sf `readlink -f $$l` debian/tmp/usr/lib32/`basename $$l`; \
+ rm $$l; \
+ done
+ for l in `find debian/tmp/lib/$(DEB_HOST_MULTIARCH) -maxdepth 1 -type l -name \*.so`; do \
+ ln -sf `readlink -f $$l` debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/`basename $$l`; \
+ rm $$l; \
+ done
+ # Make symlinks relative:
+ symlinks -c debian/tmp/usr/lib32
+ symlinks -c debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
+ touch $@
+
+binary binary-arch binary-indep: binary-stamp
+binary-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_installdirs
+ dh_install
+ dh_installman
+ dh_installdocs
+ dh_installexamples
+ dh_installchangelogs
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs -- -c4
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+ touch $@
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ dh_clean
+ rm -rf usr
+
diff --git a/libsysevent/debian/source/format b/libsysevent/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/libsysevent/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)