summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-02-14 22:45:23 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-02-14 22:45:23 +0000
commit7cfcb2679a9040035d52efeea0fee02a665a3aaa (patch)
tree7531cbcc474ee6ba0df6a33e4894eda6b4c1b973
parent0a2c2b7c0e59f1c0d06520b6956ea36687c66d52 (diff)
downloadillumos-packaging-7cfcb2679a9040035d52efeea0fee02a665a3aaa.tar.gz
liblgrp
-rw-r--r--liblgrp/debian/README.source10
-rw-r--r--liblgrp/debian/changelog5
-rw-r--r--liblgrp/debian/compat1
-rw-r--r--liblgrp/debian/control73
-rw-r--r--liblgrp/debian/copyright62
-rw-r--r--liblgrp/debian/lib32lgrp1-dev.install1
-rw-r--r--liblgrp/debian/lib32lgrp1.install1
-rw-r--r--liblgrp/debian/liblgrp1-dev.install1
-rw-r--r--liblgrp/debian/liblgrp1.install1
-rw-r--r--liblgrp/debian/liblgrp1.symbols20
-rwxr-xr-xliblgrp/debian/rules97
-rw-r--r--liblgrp/debian/source/format1
12 files changed, 273 insertions, 0 deletions
diff --git a/liblgrp/debian/README.source b/liblgrp/debian/README.source
new file mode 100644
index 0000000..9988910
--- /dev/null
+++ b/liblgrp/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/liblgrp/debian/changelog b/liblgrp/debian/changelog
new file mode 100644
index 0000000..b533c7a
--- /dev/null
+++ b/liblgrp/debian/changelog
@@ -0,0 +1,5 @@
+liblgrp (2.10-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Thu, 14 Feb 2013 22:25:42 +0000
diff --git a/liblgrp/debian/compat b/liblgrp/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/liblgrp/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/liblgrp/debian/control b/liblgrp/debian/control
new file mode 100644
index 0000000..564db71
--- /dev/null
+++ b/liblgrp/debian/control
@@ -0,0 +1,73 @@
+Source: liblgrp
+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: liblgrp1
+Section: libs
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: illumos-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: locality group library
+ This package contains liblgrp shared library.
+ .
+ The functions in this library traverse the lgroup (locality group) hierarchy,
+ discover its contents, and set a thread's affinity for an lgroup. A locality
+ group represents the set of CPU-like and memory-like hardware devices that
+ are at most some locality apart from each other.
+
+Package: liblgrp1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-any
+Provides: liblgrp-dev
+Depends: liblgrp1 (= ${binary:Version}), ${misc:Depends}, uts-dev
+Description: locality group library (development files)
+ This package contains the symlink needed to compile applications that use
+ liblgrp. Actual headers are in the uts-dev package.
+ .
+ The functions in this library traverse the lgroup (locality group) hierarchy,
+ discover its contents, and set a thread's affinity for an lgroup. A locality
+ group represents the set of CPU-like and memory-like hardware devices that
+ are at most some locality apart from each other.
+
+Package: lib32lgrp1
+Section: libs
+Priority: standard
+Architecture: illumos-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: locality group library (32 bit)
+ This package contains liblgrp shared library.
+ .
+ The functions in this library traverse the lgroup (locality group) hierarchy,
+ discover its contents, and set a thread's affinity for an lgroup. A locality
+ group represents the set of CPU-like and memory-like hardware devices that
+ are at most some locality apart from each other.
+ .
+ This is a 32-bit version of the library.
+
+Package: lib32lgrp1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-amd64
+Provides: lib32lgrp-dev
+Depends: lib32lgrp1 (= ${binary:Version}), liblgrp1-dev (= ${binary:Version}),
+ ${misc:Depends}
+Description: locality group library (32-bit development files)
+ This package contains the symlink needed to compile 32-bit applications
+ that use liblgrp. Actual headers are in the uts-dev package.
+ .
+ The functions in this library traverse the lgroup (locality group) hierarchy,
+ discover its contents, and set a thread's affinity for an lgroup. A locality
+ group represents the set of CPU-like and memory-like hardware devices that
+ are at most some locality apart from each other.
+
diff --git a/liblgrp/debian/copyright b/liblgrp/debian/copyright
new file mode 100644
index 0000000..2b18913
--- /dev/null
+++ b/liblgrp/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/liblgrp/debian/lib32lgrp1-dev.install b/liblgrp/debian/lib32lgrp1-dev.install
new file mode 100644
index 0000000..6a05861
--- /dev/null
+++ b/liblgrp/debian/lib32lgrp1-dev.install
@@ -0,0 +1 @@
+usr/lib32/liblgrp.so
diff --git a/liblgrp/debian/lib32lgrp1.install b/liblgrp/debian/lib32lgrp1.install
new file mode 100644
index 0000000..ab8c2eb
--- /dev/null
+++ b/liblgrp/debian/lib32lgrp1.install
@@ -0,0 +1 @@
+usr/lib32/liblgrp.so.1
diff --git a/liblgrp/debian/liblgrp1-dev.install b/liblgrp/debian/liblgrp1-dev.install
new file mode 100644
index 0000000..5a42caf
--- /dev/null
+++ b/liblgrp/debian/liblgrp1-dev.install
@@ -0,0 +1 @@
+usr/lib/*/liblgrp.so
diff --git a/liblgrp/debian/liblgrp1.install b/liblgrp/debian/liblgrp1.install
new file mode 100644
index 0000000..cf0953c
--- /dev/null
+++ b/liblgrp/debian/liblgrp1.install
@@ -0,0 +1 @@
+usr/lib/*/liblgrp.so.1
diff --git a/liblgrp/debian/liblgrp1.symbols b/liblgrp/debian/liblgrp1.symbols
new file mode 100644
index 0000000..6e43ecf
--- /dev/null
+++ b/liblgrp/debian/liblgrp1.symbols
@@ -0,0 +1,20 @@
+liblgrp.so.1 liblgrp1 #MINVER#
+ SUNW_1.1@SUNW_1.1 2.10-1
+ SUNW_1.2@SUNW_1.2 2.10-1
+ lgrp_affinity_get@SUNW_1.1 2.10-1
+ lgrp_affinity_set@SUNW_1.1 2.10-1
+ lgrp_children@SUNW_1.1 2.10-1
+ lgrp_cookie_stale@SUNW_1.1 2.10-1
+ lgrp_cpus@SUNW_1.1 2.10-1
+ lgrp_fini@SUNW_1.1 2.10-1
+ lgrp_home@SUNW_1.1 2.10-1
+ lgrp_init@SUNW_1.1 2.10-1
+ lgrp_latency@SUNW_1.1 2.10-1
+ lgrp_latency_cookie@SUNW_1.2 2.10-1
+ lgrp_mem_size@SUNW_1.1 2.10-1
+ lgrp_nlgrps@SUNW_1.1 2.10-1
+ lgrp_parents@SUNW_1.1 2.10-1
+ lgrp_resources@SUNW_1.2 2.10-1
+ lgrp_root@SUNW_1.1 2.10-1
+ lgrp_version@SUNW_1.1 2.10-1
+ lgrp_view@SUNW_1.1 2.10-1
diff --git a/liblgrp/debian/rules b/liblgrp/debian/rules
new file mode 100755
index 0000000..079a1fe
--- /dev/null
+++ b/liblgrp/debian/rules
@@ -0,0 +1,97 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+export DH_VERBOSE = 1
+
+# libs having "install_h" target to install headers:
+libs_headers := \
+ liblgrp
+
+# 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/%) \
+
+
+ # 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
+ touch $@
+
+headers-stamp: patch-stamp dirs-stamp
+ dh_illumos_make $(libs:%=usr/src/lib/%) -t install_h
+ touch $@
+
+install: install-stamp
+install-stamp: build-stamp
+ # 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 $@
+
+build build-arch build-indep: build-stamp
+build-stamp: patch-stamp dirs-stamp headers-stamp
+ dh_illumos_make $(libs:%=usr/src/lib/%)
+ touch $@
+
+binary binary-arch binary-indep: binary-stamp
+binary-stamp: install-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 .pc
+
diff --git a/liblgrp/debian/source/format b/liblgrp/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/liblgrp/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)