summaryrefslogtreecommitdiff
path: root/libinetutil/debian
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-10-31 01:39:37 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-10-31 01:39:37 +0400
commit4fa680aa8f2911c6405ade937a80f9872b227850 (patch)
tree1b656de1fa2d6e53de33e5bdaeb9d918001410a5 /libinetutil/debian
parent4f0488753f5415028bb27dcfe1f7717e745f8ccf (diff)
downloadillumos-packaging-4fa680aa8f2911c6405ade937a80f9872b227850.tar.gz
libinetutil
Diffstat (limited to 'libinetutil/debian')
-rw-r--r--libinetutil/debian/README.source10
-rw-r--r--libinetutil/debian/changelog5
-rw-r--r--libinetutil/debian/compat1
-rw-r--r--libinetutil/debian/control67
-rw-r--r--libinetutil/debian/copyright62
-rw-r--r--libinetutil/debian/lib32inetutil1-dev.install1
-rw-r--r--libinetutil/debian/lib32inetutil1.install1
-rw-r--r--libinetutil/debian/libinetutil1-dev.install3
-rw-r--r--libinetutil/debian/libinetutil1.install1
-rw-r--r--libinetutil/debian/patches/libinetutil-avoid-inetutil.h.patch39
-rw-r--r--libinetutil/debian/patches/series1
-rwxr-xr-xlibinetutil/debian/rules92
-rw-r--r--libinetutil/debian/source/format1
13 files changed, 284 insertions, 0 deletions
diff --git a/libinetutil/debian/README.source b/libinetutil/debian/README.source
new file mode 100644
index 0000000..9988910
--- /dev/null
+++ b/libinetutil/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/libinetutil/debian/changelog b/libinetutil/debian/changelog
new file mode 100644
index 0000000..19ddf03
--- /dev/null
+++ b/libinetutil/debian/changelog
@@ -0,0 +1,5 @@
+libinetutil (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/libinetutil/debian/compat b/libinetutil/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/libinetutil/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/libinetutil/debian/control b/libinetutil/debian/control
new file mode 100644
index 0000000..3fa3ac0
--- /dev/null
+++ b/libinetutil/debian/control
@@ -0,0 +1,67 @@
+Source: libinetutil
+Section: libs
+Priority: optional
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends:
+ dh-illumos,
+ gcc-multilib,
+ illumos-source-2.10,
+ quilt,
+ symlinks,
+Standards-Version: 3.9.3
+Homepage: https://www.illumos.org
+
+Package: libinetutil1
+Section: libs
+Priority: standard
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: illumos-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: general internet functionality library
+ This package contains libinetutil shared library.
+ .
+ The libinetutil library provides various interfaces to list interface
+ addresses, to manage timer queues and event handlers.
+
+
+Package: libinetutil1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-any
+Provides: libinetutil-dev
+Depends: libinetutil1 (= ${binary:Version}), ${misc:Depends}, libc1-dev
+Description: general internet functionality library (development files)
+ This package contains the header files and symlinks needed
+ to compile applications that use libinetutil.
+ .
+ The libinetutil library provides various interfaces to list interface
+ addresses, to manage timer queues and event handlers.
+
+Package: lib32inetutil1
+Section: libs
+Priority: standard
+Architecture: illumos-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: general internet functionality library (32 bit)
+ This package contains libinetutil shared library.
+ .
+ The libinetutil library provides various interfaces to list interface
+ addresses, to manage timer queues and event handlers.
+ .
+ This is a 32-bit version of the library.
+
+Package: lib32inetutil1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-amd64
+Provides: lib32inetutil-dev
+Depends: lib32inetutil1 (= ${binary:Version}), libinetutil1-dev (= ${binary:Version}),
+ ${misc:Depends}
+Description: general internet functionality library (32-bit development files)
+ This package contains files needed to compile
+ 32-bit applications that use libinetutil.
+ .
+ The libinetutil library provides various interfaces to list interface
+ addresses, to manage timer queues and event handlers.
+
diff --git a/libinetutil/debian/copyright b/libinetutil/debian/copyright
new file mode 100644
index 0000000..2b18913
--- /dev/null
+++ b/libinetutil/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/libinetutil/debian/lib32inetutil1-dev.install b/libinetutil/debian/lib32inetutil1-dev.install
new file mode 100644
index 0000000..489854d
--- /dev/null
+++ b/libinetutil/debian/lib32inetutil1-dev.install
@@ -0,0 +1 @@
+usr/lib32/libinetutil.so
diff --git a/libinetutil/debian/lib32inetutil1.install b/libinetutil/debian/lib32inetutil1.install
new file mode 100644
index 0000000..c1af0e9
--- /dev/null
+++ b/libinetutil/debian/lib32inetutil1.install
@@ -0,0 +1 @@
+lib32/libinetutil.so.1
diff --git a/libinetutil/debian/libinetutil1-dev.install b/libinetutil/debian/libinetutil1-dev.install
new file mode 100644
index 0000000..91a9e91
--- /dev/null
+++ b/libinetutil/debian/libinetutil1-dev.install
@@ -0,0 +1,3 @@
+usr/lib/*/libinetutil.so
+usr/include/libinetutil.h
+usr/include/ofmt.h
diff --git a/libinetutil/debian/libinetutil1.install b/libinetutil/debian/libinetutil1.install
new file mode 100644
index 0000000..e7a1232
--- /dev/null
+++ b/libinetutil/debian/libinetutil1.install
@@ -0,0 +1 @@
+lib/*/libinetutil.so.1
diff --git a/libinetutil/debian/patches/libinetutil-avoid-inetutil.h.patch b/libinetutil/debian/patches/libinetutil-avoid-inetutil.h.patch
new file mode 100644
index 0000000..8644272
--- /dev/null
+++ b/libinetutil/debian/patches/libinetutil-avoid-inetutil.h.patch
@@ -0,0 +1,39 @@
+Index: libinetutil/usr/src/lib/libinetutil/common/libinetutil.h
+===================================================================
+--- libinetutil.orig/usr/src/lib/libinetutil/common/libinetutil.h 2012-10-08 04:25:39.000000000 +0400
++++ libinetutil/usr/src/lib/libinetutil/common/libinetutil.h 2012-10-31 00:50:16.250581008 +0400
+@@ -34,14 +34,11 @@
+ extern "C" {
+ #endif
+
+-#include <netinet/inetutil.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <net/if.h>
+
+-#if !defined(_KERNEL) && !defined(_BOOT)
+-
+ typedef struct {
+ uint_t ifsp_ppa; /* Physical Point of Attachment */
+ uint_t ifsp_lun; /* Logical Unit number */
+@@ -238,7 +235,6 @@
+ void *);
+ int iu_eh_unregister_signal(iu_eh_t *, int, void **);
+
+-#endif /* !defined(_KERNEL) && !defined(_BOOT) */
+
+ #ifdef __cplusplus
+ }
+Index: libinetutil/usr/src/lib/libinetutil/common/libinetutil_impl.h
+===================================================================
+--- libinetutil.orig/usr/src/lib/libinetutil/common/libinetutil_impl.h 2012-10-08 04:25:39.000000000 +0400
++++ libinetutil/usr/src/lib/libinetutil/common/libinetutil_impl.h 2012-10-31 00:55:14.043215398 +0400
+@@ -37,7 +37,6 @@
+ extern "C" {
+ #endif
+
+-#include <netinet/inetutil.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
diff --git a/libinetutil/debian/patches/series b/libinetutil/debian/patches/series
new file mode 100644
index 0000000..96dc934
--- /dev/null
+++ b/libinetutil/debian/patches/series
@@ -0,0 +1 @@
+libinetutil-avoid-inetutil.h.patch
diff --git a/libinetutil/debian/rules b/libinetutil/debian/rules
new file mode 100755
index 0000000..8464002
--- /dev/null
+++ b/libinetutil/debian/rules
@@ -0,0 +1,92 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+export DH_VERBOSE = 1
+
+# libs having "install_h" target to install headers:
+libs_headers := \
+libinetutil \
+
+# 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/common/net/dhcp/octet.c
+
+ # 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$$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
+ 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/libinetutil/debian/source/format b/libinetutil/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/libinetutil/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)