diff options
| author | Igor Pashev <pashev.igor@gmail.com> | 2012-11-03 23:49:45 +0400 |
|---|---|---|
| committer | Igor Pashev <pashev.igor@gmail.com> | 2012-11-03 23:49:45 +0400 |
| commit | 296eb3acb557cc592527aad4bb1d4890c35a6c6e (patch) | |
| tree | 5268ab10dd9778705d4b0b9047708d9932129012 /libbrand/debian | |
| parent | 55c57b69271af5e4c09edd18ef7580e6ebee347f (diff) | |
| download | illumos-packaging-296eb3acb557cc592527aad4bb1d4890c35a6c6e.tar.gz | |
libbrand
Diffstat (limited to 'libbrand/debian')
| -rw-r--r-- | libbrand/debian/README.source | 10 | ||||
| -rw-r--r-- | libbrand/debian/changelog | 5 | ||||
| -rw-r--r-- | libbrand/debian/compat | 1 | ||||
| -rw-r--r-- | libbrand/debian/control | 91 | ||||
| -rw-r--r-- | libbrand/debian/copyright | 27 | ||||
| -rw-r--r-- | libbrand/debian/lib32brand1-dev.install | 1 | ||||
| -rw-r--r-- | libbrand/debian/lib32brand1.install | 1 | ||||
| -rw-r--r-- | libbrand/debian/libbrand-data.dirs | 1 | ||||
| -rw-r--r-- | libbrand/debian/libbrand-data.install | 1 | ||||
| -rw-r--r-- | libbrand/debian/libbrand1-dev.install | 3 | ||||
| -rw-r--r-- | libbrand/debian/libbrand1.install | 1 | ||||
| -rw-r--r-- | libbrand/debian/patches/libbrand-dtd-location.patch | 20 | ||||
| -rw-r--r-- | libbrand/debian/patches/libbrand-zoneconfig.patch | 14 | ||||
| -rw-r--r-- | libbrand/debian/patches/series | 2 | ||||
| -rwxr-xr-x | libbrand/debian/rules | 96 | ||||
| -rw-r--r-- | libbrand/debian/source/format | 1 |
16 files changed, 275 insertions, 0 deletions
diff --git a/libbrand/debian/README.source b/libbrand/debian/README.source new file mode 100644 index 0000000..9988910 --- /dev/null +++ b/libbrand/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/libbrand/debian/changelog b/libbrand/debian/changelog new file mode 100644 index 0000000..2794bb1 --- /dev/null +++ b/libbrand/debian/changelog @@ -0,0 +1,5 @@ +libbrand (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/libbrand/debian/compat b/libbrand/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/libbrand/debian/compat @@ -0,0 +1 @@ +9 diff --git a/libbrand/debian/control b/libbrand/debian/control new file mode 100644 index 0000000..127c1d6 --- /dev/null +++ b/libbrand/debian/control @@ -0,0 +1,91 @@ +Source: libbrand +Section: libs +Priority: optional +Maintainer: Igor Pashev <pashev.igor@gmail.com> +Build-Depends: + dh-illumos, + gcc-multilib, + illumos-source-2.10, + libxml2-dev, lib32xml2-dev, + quilt, + symlinks, +Standards-Version: 3.9.3 +Homepage: https://www.illumos.org + + +Package: libbrand-data +Section: libs +Priority: optional +Architecture: all +Depends: ${misc:Depends} +Description: shared files for the libbrand library + This package contains XML DTD schema used by the libbrand library. + These DTDs are placed in the /usr/share/xml/schema/brandz/ directory. + . + Branded zones (BrandZ) is the framework to create non-global zones that + contain non-native operating environments. This allows individual zones to + emulate an OS environment other than the native one of the global OS. + . + Configuration files for each zone are placed in the + /usr/share/brandz/<zone name>/ directory. + +Package: libbrand1 +Section: libs +Priority: standard +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Architecture: illumos-any +Depends: ${shlibs:Depends}, ${misc:Depends}, libbrand-data +Description: branded zones configuration library + This package contains libbrand shared library. + . + Branded zones (BrandZ) is the framework to create non-global zones that + contain non-native operating environments. This allows individual zones to + emulate an OS environment other than the native one of the global OS. + . + Configuration files for each zone are placed in the + /usr/share/brandz/<zone name>/ directory. + +Package: libbrand1-dev +Section: libdevel +Priority: optional +Architecture: illumos-any +Provides: libbrand-dev +Depends: libbrand1 (= ${binary:Version}), ${misc:Depends}, libc1-dev +Description: branded zones configuration library (development files) + This package contains the header files and symlinks needed + to compile applications that use libbrand. + . + Branded zones (BrandZ) is the framework to create non-global zones that + contain non-native operating environments. This allows individual zones to + emulate an OS environment other than the native one of the global OS. + +Package: lib32brand1 +Section: libs +Priority: standard +Architecture: illumos-amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, libbrand-data +Description: branded zones configuration library (32 bit) + This package contains libbrand shared library. + . + Branded zones (BrandZ) is the framework to create non-global zones that + contain non-native operating environments. This allows individual zones to + emulate an OS environment other than the native one of the global OS. + . + This is a 32-bit version of the library. + +Package: lib32brand1-dev +Section: libdevel +Priority: optional +Architecture: illumos-amd64 +Provides: lib32brand-dev +Depends: lib32brand1 (= ${binary:Version}), libbrand1-dev (= ${binary:Version}), + ${misc:Depends} +Description: branded zones configuration library (32-bit development files) + This package contains files needed to compile + 32-bit applications that use libbrand. + . + Branded zones (BrandZ) is the framework to create non-global zones that + contain non-native operating environments. This allows individual zones to + emulate an OS environment other than the native one of the global OS. + diff --git a/libbrand/debian/copyright b/libbrand/debian/copyright new file mode 100644 index 0000000..92d3a40 --- /dev/null +++ b/libbrand/debian/copyright @@ -0,0 +1,27 @@ +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: * +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/libbrand/debian/lib32brand1-dev.install b/libbrand/debian/lib32brand1-dev.install new file mode 100644 index 0000000..fbcac47 --- /dev/null +++ b/libbrand/debian/lib32brand1-dev.install @@ -0,0 +1 @@ +usr/lib32/libbrand.so diff --git a/libbrand/debian/lib32brand1.install b/libbrand/debian/lib32brand1.install new file mode 100644 index 0000000..d3876b7 --- /dev/null +++ b/libbrand/debian/lib32brand1.install @@ -0,0 +1 @@ +usr/lib32/libbrand.so.1 diff --git a/libbrand/debian/libbrand-data.dirs b/libbrand/debian/libbrand-data.dirs new file mode 100644 index 0000000..90d3077 --- /dev/null +++ b/libbrand/debian/libbrand-data.dirs @@ -0,0 +1 @@ +usr/share/brandz diff --git a/libbrand/debian/libbrand-data.install b/libbrand/debian/libbrand-data.install new file mode 100644 index 0000000..0272a6a --- /dev/null +++ b/libbrand/debian/libbrand-data.install @@ -0,0 +1 @@ +usr/share/xml/schema/brandz/*.dtd.* diff --git a/libbrand/debian/libbrand1-dev.install b/libbrand/debian/libbrand1-dev.install new file mode 100644 index 0000000..241fa34 --- /dev/null +++ b/libbrand/debian/libbrand1-dev.install @@ -0,0 +1,3 @@ +usr/lib/*/libbrand.so +usr/include/libbrand.h +usr/include/libbrand_impl.h diff --git a/libbrand/debian/libbrand1.install b/libbrand/debian/libbrand1.install new file mode 100644 index 0000000..5fd02ee --- /dev/null +++ b/libbrand/debian/libbrand1.install @@ -0,0 +1 @@ +usr/lib/*/libbrand.so.1 diff --git a/libbrand/debian/patches/libbrand-dtd-location.patch b/libbrand/debian/patches/libbrand-dtd-location.patch new file mode 100644 index 0000000..ead5a6d --- /dev/null +++ b/libbrand/debian/patches/libbrand-dtd-location.patch @@ -0,0 +1,20 @@ +Description: Debian XML policy +Index: libbrand/usr/src/lib/libbrand/Makefile +=================================================================== +--- libbrand.orig/usr/src/lib/libbrand/Makefile 2012-10-08 04:25:38.000000000 +0400 ++++ libbrand/usr/src/lib/libbrand/Makefile 2012-11-03 23:15:44.204480929 +0400 +@@ -42,11 +42,11 @@ + BRANDDIR= brand + ROOTBRANDDIR= $(ROOTLIBDIR)/$(BRANDDIR) + +-DTDS = dtd/brand.dtd.1 dtd/zone_platform.dtd.1 +-DTDDIR = $(ROOT)/usr/share/lib/xml ++DTDS = brand.dtd.1 zone_platform.dtd.1 ++DTDDIR = $(ROOT)/usr/share/xml/schema/brandz + ROOTDTDS= $(DTDS:%=$(DTDDIR)/%) + +-$(DTDDIR)/%: % ++$(DTDDIR)/%: dtd/% + $(INS.file) + + .KEEP_STATE: diff --git a/libbrand/debian/patches/libbrand-zoneconfig.patch b/libbrand/debian/patches/libbrand-zoneconfig.patch new file mode 100644 index 0000000..bf240df --- /dev/null +++ b/libbrand/debian/patches/libbrand-zoneconfig.patch @@ -0,0 +1,14 @@ +Description: Debian FHS +Index: libbrand/usr/src/lib/libbrand/common/libbrand_impl.h +=================================================================== +--- libbrand.orig/usr/src/lib/libbrand/common/libbrand_impl.h 2012-10-08 04:25:38.000000000 +0400 ++++ libbrand/usr/src/lib/libbrand/common/libbrand_impl.h 2012-11-03 23:28:55.437576163 +0400 +@@ -42,7 +42,7 @@ + xmlDocPtr bh_platform; + }; + +-#define BRAND_DIR "/usr/lib/brand" ++#define BRAND_DIR "/usr/share/brandz" + #define BRAND_CONFIG "config.xml" + #define BRAND_PLATFORM "platform.xml" + diff --git a/libbrand/debian/patches/series b/libbrand/debian/patches/series new file mode 100644 index 0000000..95e426b --- /dev/null +++ b/libbrand/debian/patches/series @@ -0,0 +1,2 @@ +libbrand-dtd-location.patch +libbrand-zoneconfig.patch diff --git a/libbrand/debian/rules b/libbrand/debian/rules new file mode 100755 index 0000000..40abddb --- /dev/null +++ b/libbrand/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 := \ +libbrand \ + +# 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 + echo "export LIBPOOL_DTD_DIR='$(LIBPOOL_DTD_DIR)'" >> usr/env.sh + 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/share/xml/schema/brandz \ + 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 + # Public Morozov: + cp usr/src/lib/libbrand/common/libbrand_impl.h \ + debian/tmp/usr/include/ + 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/libbrand/debian/source/format b/libbrand/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/libbrand/debian/source/format @@ -0,0 +1 @@ +3.0 (native) |
