diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-10-27 12:12:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-10-27 12:12:50 +0400 |
commit | b72c4e7f71db6fdf39630d5df1d15764e256eb0f (patch) | |
tree | 3d0d67fe479bf48cea9fd87cf2e1a91b3a7ebe73 /libcontract | |
parent | 9b96aed0c624d659b12d790864bc703a539a3fcd (diff) | |
download | illumos-packaging-b72c4e7f71db6fdf39630d5df1d15764e256eb0f.tar.gz |
libcontract
Diffstat (limited to 'libcontract')
-rw-r--r-- | libcontract/debian/changelog | 5 | ||||
-rw-r--r-- | libcontract/debian/compat | 1 | ||||
-rw-r--r-- | libcontract/debian/control | 63 | ||||
-rw-r--r-- | libcontract/debian/lib32contract1-dev.install | 1 | ||||
-rw-r--r-- | libcontract/debian/lib32contract1.install | 1 | ||||
-rw-r--r-- | libcontract/debian/libcontract1-dev.install | 3 | ||||
-rw-r--r-- | libcontract/debian/libcontract1.install | 1 | ||||
-rw-r--r-- | libcontract/debian/patches/libcontract-no-libuutil.h.patch | 36 | ||||
-rw-r--r-- | libcontract/debian/patches/series | 1 | ||||
-rwxr-xr-x | libcontract/debian/rules | 92 | ||||
-rw-r--r-- | libcontract/debian/source/format | 1 |
11 files changed, 205 insertions, 0 deletions
diff --git a/libcontract/debian/changelog b/libcontract/debian/changelog new file mode 100644 index 0000000..1db1c9b --- /dev/null +++ b/libcontract/debian/changelog @@ -0,0 +1,5 @@ +libcontract (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/libcontract/debian/compat b/libcontract/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/libcontract/debian/compat @@ -0,0 +1 @@ +9 diff --git a/libcontract/debian/control b/libcontract/debian/control new file mode 100644 index 0000000..893bb54 --- /dev/null +++ b/libcontract/debian/control @@ -0,0 +1,63 @@ +Source: libcontract +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, + symlinks, +Standards-Version: 3.9.3 +Homepage: https://www.illumos.org + + +Package: libcontract1 +Section: libs +Priority: standard +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Architecture: illumos-any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: contract management library + This library provides various interfaces to interact + with the contract file system (/system/contract) + +Package: libcontract1-dev +Section: libdevel +Priority: optional +Architecture: illumos-any +Provides: libcontract-dev +Depends: libcontract1 (= ${binary:Version}), ${misc:Depends}, libc-dev +Description: contract management library (development files) + This package contains the header files and symlinks needed + to compile applications that use libcontract. + . + libcontract provides various interfaces to interact + with the contract file system (/system/contract) + +Package: lib32contract1 +Section: libs +Priority: standard +Architecture: illumos-amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: contract management library (32 bit) + libcontract provides various interfaces to interact + with the contract file system (/system/contract). + . + This is a 32-bit version of the library. + +Package: lib32contract1-dev +Section: libdevel +Priority: optional +Architecture: illumos-amd64 +Provides: lib32contract-dev +Depends: lib32contract1 (= ${binary:Version}), libcontract1-dev (= ${binary:Version}), + ${misc:Depends} +Description: contract management library (32-bit development files) + This package contains files needed to compile + 32-bit applications that use libcontract. + . + libcontract provides various interfaces to interact + with the contract file system (/system/contract) + diff --git a/libcontract/debian/lib32contract1-dev.install b/libcontract/debian/lib32contract1-dev.install new file mode 100644 index 0000000..1a87cc3 --- /dev/null +++ b/libcontract/debian/lib32contract1-dev.install @@ -0,0 +1 @@ +usr/lib32/libcontract.so diff --git a/libcontract/debian/lib32contract1.install b/libcontract/debian/lib32contract1.install new file mode 100644 index 0000000..91c9c2d --- /dev/null +++ b/libcontract/debian/lib32contract1.install @@ -0,0 +1 @@ +lib32/libcontract.so.1 diff --git a/libcontract/debian/libcontract1-dev.install b/libcontract/debian/libcontract1-dev.install new file mode 100644 index 0000000..7b2e472 --- /dev/null +++ b/libcontract/debian/libcontract1-dev.install @@ -0,0 +1,3 @@ +usr/lib/*/libcontract.so +usr/include/libcontract.h +usr/include/libcontract_priv.h diff --git a/libcontract/debian/libcontract1.install b/libcontract/debian/libcontract1.install new file mode 100644 index 0000000..f431d67 --- /dev/null +++ b/libcontract/debian/libcontract1.install @@ -0,0 +1 @@ +lib/*/libcontract.so.1 diff --git a/libcontract/debian/patches/libcontract-no-libuutil.h.patch b/libcontract/debian/patches/libcontract-no-libuutil.h.patch new file mode 100644 index 0000000..2e31573 --- /dev/null +++ b/libcontract/debian/patches/libcontract-no-libuutil.h.patch @@ -0,0 +1,36 @@ +Index: libcontract/usr/src/lib/libcontract/common/device_dump.c +=================================================================== +--- libcontract.orig/usr/src/lib/libcontract/common/device_dump.c 2012-10-08 04:25:38.000000000 +0400 ++++ libcontract/usr/src/lib/libcontract/common/device_dump.c 2012-10-27 10:41:50.128783737 +0400 +@@ -36,7 +36,6 @@ + #include <stdio.h> + #include <assert.h> + #include <signal.h> +-#include <libuutil.h> + #include <libintl.h> + #include <libcontract.h> + #include <libcontract_priv.h> +Index: libcontract/usr/src/lib/libcontract/common/libcontract_priv.c +=================================================================== +--- libcontract.orig/usr/src/lib/libcontract/common/libcontract_priv.c 2012-10-08 04:25:38.000000000 +0400 ++++ libcontract/usr/src/lib/libcontract/common/libcontract_priv.c 2012-10-27 10:41:50.236509482 +0400 +@@ -32,7 +32,6 @@ + #include <limits.h> + #include <stdio.h> + #include <assert.h> +-#include <libuutil.h> + #include <libintl.h> + #include <string.h> + #include <procfs.h> +Index: libcontract/usr/src/lib/libcontract/common/process_dump.c +=================================================================== +--- libcontract.orig/usr/src/lib/libcontract/common/process_dump.c 2012-10-08 04:25:38.000000000 +0400 ++++ libcontract/usr/src/lib/libcontract/common/process_dump.c 2012-10-27 10:41:50.335008170 +0400 +@@ -37,7 +37,6 @@ + #include <stdio.h> + #include <assert.h> + #include <signal.h> +-#include <libuutil.h> + #include <libintl.h> + #include <libcontract.h> + #include <libcontract_priv.h> diff --git a/libcontract/debian/patches/series b/libcontract/debian/patches/series new file mode 100644 index 0000000..1d551c7 --- /dev/null +++ b/libcontract/debian/patches/series @@ -0,0 +1 @@ +libcontract-no-libuutil.h.patch diff --git a/libcontract/debian/rules b/libcontract/debian/rules new file mode 100755 index 0000000..7d73a84 --- /dev/null +++ b/libcontract/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 := \ +libcontract \ + +# All libraries to build and to package. +# Order is important: +libs := $(libs_headers) \ + + +unpack: unpack-stamp +unpack-stamp: + dh_testdir + dh_illumos_gate --build \ + usr/src/lib/Makefile\* \ + $(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 \ + +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/libcontract/debian/source/format b/libcontract/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/libcontract/debian/source/format @@ -0,0 +1 @@ +3.0 (native) |