summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-09-19 15:50:19 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-09-19 15:50:19 +0400
commitb5719ba713bb64ed05bdcf4cdcb79a1fa2186430 (patch)
treed3c19076841eada93889d808333b0d69b3989bbc
parentc76b25823acc92e232fa0a56389f9d144e51ce97 (diff)
downloadlibpool-master.tar.gz
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control107
-rw-r--r--debian/copyright55
-rw-r--r--debian/lib32pool-dev.install2
-rw-r--r--debian/lib32pool2.install2
-rw-r--r--debian/lib32pool2.symbols71
-rw-r--r--debian/libpool-data.install1
-rw-r--r--debian/libpool-dev.install3
-rw-r--r--debian/libpool-doc.install1
-rw-r--r--debian/libpool1.symbols72
-rw-r--r--debian/libpool2.install2
-rw-r--r--debian/libpool2.symbols71
-rwxr-xr-xdebian/rules58
-rw-r--r--debian/source/format1
15 files changed, 452 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f0da71a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libpool (1.0-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Thu, 19 Sep 2013 11:57:38 +0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..2a78695
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,107 @@
+Source: libpool
+Section: libs
+Priority: standard
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends:
+ gcc-multilib [illumos-amd64 kopensolaris-amd64],
+ libxml2-dev, lib32xml2-dev [illumos-amd64 kopensolaris-amd64],
+ libscf1-dev, lib32scf1-dev [illumos-amd64 kopensolaris-amd64],
+ libnvpair1-dev, lib32nvpair1-dev [illumos-amd64 kopensolaris-amd64],
+ libexacct1-dev, lib32exacct1-dev [illumos-amd64 kopensolaris-amd64],
+ uts-dev (>= 2.10+5),
+Standards-Version: 3.9.3
+Homepage: https://www.illumos.org
+
+
+Package: libpool-data
+Section: libs
+Priority: standard
+Architecture: all
+Depends: ${misc:Depends}
+Description: shared files for the libpool library
+ This package contains XML DTD schema used by the libpool library.
+ .
+ The libpool library define the interface for reading and writing resource
+ pools configuration files, as well as that for commiting an existing
+ configuration to becoming the running OS configuration.
+
+Package: libpool-doc
+Section: doc
+Priority: optional
+Architecture: all
+Depends: ${misc:Depends}
+Description: documentation for the libpool library
+ This package contains man pages for the libpool library.
+ .
+ The libpool library define the interface for reading and writing resource
+ pools configuration files, as well as that for commiting an existing
+ configuration to becoming the running OS configuration.
+
+Package: libpool2
+Section: libs
+Priority: standard
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: illumos-any kopensolaris-any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libpool-data
+Description: pool configuration manipulation library
+ This package contains libpool shared library.
+ .
+ The libpool library define the interface for reading and writing resource
+ pools configuration files, as well as that for commiting an existing
+ configuration to becoming the running OS configuration.
+
+Package: libpool2-dbg
+Section: debug
+Priority: extra
+Multi-Arch: same
+Architecture: illumos-any kopensolaris-any
+Depends: ${misc:Depends}, libpool2 (= ${binary:Version})
+Description: pool configuration manipulation library: debug symbols
+ This package contains the detached debugging symbols for the libpool library
+
+Package: libpool-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-any kopensolaris-any
+Provides: libpool2-dev
+Replaces: libpool1-dev
+Recommends: libpool-doc
+Depends: libpool2 (= ${binary:Version}), ${misc:Depends} uts-dev (>= 2.10+5)
+Description: pool configuration manipulation library (development files)
+ This package contains the header files and symlinks needed
+ to compile applications that use libpool.
+ .
+ The libpool library define the interface for reading and writing resource
+ pools configuration files, as well as that for commiting an existing
+ configuration to becoming the running OS configuration.
+
+Package: lib32pool2
+Section: libs
+Priority: optional
+Architecture: illumos-amd64 kopensolaris-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}, libpool-data
+Description: pool configuration manipulation library (32 bit)
+ This package contains libpool shared library.
+ .
+ The libpool library define the interface for reading and writing resource
+ pools configuration files, as well as that for commiting an existing
+ configuration to becoming the running OS configuration.
+ .
+ This is a 32-bit version of the library.
+
+Package: lib32pool-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-amd64 kopensolaris-amd64
+Provides: lib32pool2-dev
+Replaces: lib32pool1-dev
+Depends: lib32pool2 (= ${binary:Version}), libpool-dev (= ${binary:Version}), ${misc:Depends}
+Description: pool configuration manipulation library (32-bit development files)
+ This package contains files needed to compile
+ 32-bit applications that use libpool.
+ .
+ The libpool library define the interface for reading and writing resource
+ pools configuration files, as well as that for commiting an existing
+ configuration to becoming the running OS configuration.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..47dde93
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,55 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+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/libpool/common/pool.c
+ usr/src/lib/libpool/common/pool.h
+ usr/src/lib/libpool/common/pool_commit.c
+ usr/src/lib/libpool/common/pool_internal.c
+ usr/src/lib/libpool/common/pool_internal.h
+ usr/src/lib/libpool/common/pool_xml.c
+Copyright: 2006, Sun Microsystems, Inc.
+ 2007, Sun Microsystems, Inc.
+ 2009, Sun Microsystems, Inc.
+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'.
+
+Files: usr/src/lib/libpool/common/dict.c
+ usr/src/lib/libpool/common/dict.h
+ usr/src/lib/libpool/common/pool_impl.h
+ usr/src/lib/libpool/common/pool_kernel_impl.h
+ usr/src/lib/libpool/common/pool_value.c
+ usr/src/lib/libpool/common/pool_xml_impl.h
+Copyright: 2003, Sun Microsystems, Inc.
+ 2004, Sun Microsystems, Inc.
+License: CDDL-1.0 only
+ .
+ On Dyson system, the full text of the CDDL license
+ can be found in the file `/usr/share/common-licenses/CDDL-1.0'.
+
+Files: usr/src/lib/libpool/common/pool_kernel.c
+Copyright: 2009, Sun Microsystems, Inc.
+ 2012, Milan Jurik.
+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/debian/lib32pool-dev.install b/debian/lib32pool-dev.install
new file mode 100644
index 0000000..53b12ba
--- /dev/null
+++ b/debian/lib32pool-dev.install
@@ -0,0 +1,2 @@
+usr/lib32/libpool.so
+usr/lib32/libpool.a
diff --git a/debian/lib32pool2.install b/debian/lib32pool2.install
new file mode 100644
index 0000000..fb66064
--- /dev/null
+++ b/debian/lib32pool2.install
@@ -0,0 +1,2 @@
+usr/lib32/libpool.so.2
+usr/lib32/libpool.so.2.*
diff --git a/debian/lib32pool2.symbols b/debian/lib32pool2.symbols
new file mode 100644
index 0000000..1fd2468
--- /dev/null
+++ b/debian/lib32pool2.symbols
@@ -0,0 +1,71 @@
+libpool.so.2 lib32pool2 #MINVER#
+ LIBPOOL_2@LIBPOOL_2 1.0
+ pool_associate@LIBPOOL_2 1.0
+ pool_component_info@LIBPOOL_2 1.0
+ pool_component_to_elem@LIBPOOL_2 1.0
+ pool_conf_alloc@LIBPOOL_2 1.0
+ pool_conf_close@LIBPOOL_2 1.0
+ pool_conf_commit@LIBPOOL_2 1.0
+ pool_conf_export@LIBPOOL_2 1.0
+ pool_conf_free@LIBPOOL_2 1.0
+ pool_conf_info@LIBPOOL_2 1.0
+ pool_conf_location@LIBPOOL_2 1.0
+ pool_conf_open@LIBPOOL_2 1.0
+ pool_conf_remove@LIBPOOL_2 1.0
+ pool_conf_rollback@LIBPOOL_2 1.0
+ pool_conf_status@LIBPOOL_2 1.0
+ pool_conf_to_elem@LIBPOOL_2 1.0
+ pool_conf_update@LIBPOOL_2 1.0
+ pool_conf_validate@LIBPOOL_2 1.0
+ pool_create@LIBPOOL_2 1.0
+ pool_destroy@LIBPOOL_2 1.0
+ pool_dissociate@LIBPOOL_2 1.0
+ pool_dynamic_location@LIBPOOL_2 1.0
+ pool_error@LIBPOOL_2 1.0
+ pool_get_binding@LIBPOOL_2 1.0
+ pool_get_owning_resource@LIBPOOL_2 1.0
+ pool_get_pool@LIBPOOL_2 1.0
+ pool_get_property@LIBPOOL_2 1.0
+ pool_get_resource@LIBPOOL_2 1.0
+ pool_get_resource_binding@LIBPOOL_2 1.0
+ pool_get_status@LIBPOOL_2 1.0
+ pool_info@LIBPOOL_2 1.0
+ pool_put_property@LIBPOOL_2 1.0
+ pool_query_components@LIBPOOL_2 1.0
+ pool_query_pool_resources@LIBPOOL_2 1.0
+ pool_query_pools@LIBPOOL_2 1.0
+ pool_query_resource_components@LIBPOOL_2 1.0
+ pool_query_resources@LIBPOOL_2 1.0
+ pool_resource_create@LIBPOOL_2 1.0
+ pool_resource_destroy@LIBPOOL_2 1.0
+ pool_resource_info@LIBPOOL_2 1.0
+ pool_resource_to_elem@LIBPOOL_2 1.0
+ pool_resource_transfer@LIBPOOL_2 1.0
+ pool_resource_type_list@LIBPOOL_2 1.0
+ pool_resource_xtransfer@LIBPOOL_2 1.0
+ pool_rm_property@LIBPOOL_2 1.0
+ pool_set_binding@LIBPOOL_2 1.0
+ pool_set_status@LIBPOOL_2 1.0
+ pool_static_location@LIBPOOL_2 1.0
+ pool_strerror@LIBPOOL_2 1.0
+ pool_to_elem@LIBPOOL_2 1.0
+ pool_value_alloc@LIBPOOL_2 1.0
+ pool_value_free@LIBPOOL_2 1.0
+ pool_value_get_bool@LIBPOOL_2 1.0
+ pool_value_get_double@LIBPOOL_2 1.0
+ pool_value_get_int64@LIBPOOL_2 1.0
+ pool_value_get_name@LIBPOOL_2 1.0
+ pool_value_get_string@LIBPOOL_2 1.0
+ pool_value_get_type@LIBPOOL_2 1.0
+ pool_value_get_uint64@LIBPOOL_2 1.0
+ pool_value_set_bool@LIBPOOL_2 1.0
+ pool_value_set_double@LIBPOOL_2 1.0
+ pool_value_set_int64@LIBPOOL_2 1.0
+ pool_value_set_name@LIBPOOL_2 1.0
+ pool_value_set_string@LIBPOOL_2 1.0
+ pool_value_set_uint64@LIBPOOL_2 1.0
+ pool_version@LIBPOOL_2 1.0
+ pool_walk_components@LIBPOOL_2 1.0
+ pool_walk_pools@LIBPOOL_2 1.0
+ pool_walk_properties@LIBPOOL_2 1.0
+ pool_walk_resources@LIBPOOL_2 1.0
diff --git a/debian/libpool-data.install b/debian/libpool-data.install
new file mode 100644
index 0000000..91eb74d
--- /dev/null
+++ b/debian/libpool-data.install
@@ -0,0 +1 @@
+usr/share/xml/schema/libpool/rm_pool.dtd.1
diff --git a/debian/libpool-dev.install b/debian/libpool-dev.install
new file mode 100644
index 0000000..afb6cc5
--- /dev/null
+++ b/debian/libpool-dev.install
@@ -0,0 +1,3 @@
+usr/include/pool.h
+usr/lib/*/libpool.so
+usr/lib/*/libpool.a
diff --git a/debian/libpool-doc.install b/debian/libpool-doc.install
new file mode 100644
index 0000000..1186966
--- /dev/null
+++ b/debian/libpool-doc.install
@@ -0,0 +1 @@
+usr/share/man/man3/*
diff --git a/debian/libpool1.symbols b/debian/libpool1.symbols
new file mode 100644
index 0000000..bb45deb
--- /dev/null
+++ b/debian/libpool1.symbols
@@ -0,0 +1,72 @@
+libpool.so.1 libpool1 #MINVER#
+ SUNWprivate_1.1@SUNWprivate_1.1 2.10-1
+ SUNWprivate_1.2@SUNWprivate_1.2 2.10-1
+ pool_associate@SUNWprivate_1.1 2.10-1
+ pool_component_info@SUNWprivate_1.1 2.10-1
+ pool_component_to_elem@SUNWprivate_1.1 2.10-1
+ pool_conf_alloc@SUNWprivate_1.1 2.10-1
+ pool_conf_close@SUNWprivate_1.1 2.10-1
+ pool_conf_commit@SUNWprivate_1.1 2.10-1
+ pool_conf_export@SUNWprivate_1.1 2.10-1
+ pool_conf_free@SUNWprivate_1.1 2.10-1
+ pool_conf_info@SUNWprivate_1.1 2.10-1
+ pool_conf_location@SUNWprivate_1.1 2.10-1
+ pool_conf_open@SUNWprivate_1.1 2.10-1
+ pool_conf_remove@SUNWprivate_1.1 2.10-1
+ pool_conf_rollback@SUNWprivate_1.1 2.10-1
+ pool_conf_status@SUNWprivate_1.1 2.10-1
+ pool_conf_to_elem@SUNWprivate_1.1 2.10-1
+ pool_conf_update@SUNWprivate_1.2 2.10-1
+ pool_conf_validate@SUNWprivate_1.1 2.10-1
+ pool_create@SUNWprivate_1.1 2.10-1
+ pool_destroy@SUNWprivate_1.1 2.10-1
+ pool_dissociate@SUNWprivate_1.1 2.10-1
+ pool_dynamic_location@SUNWprivate_1.1 2.10-1
+ pool_error@SUNWprivate_1.1 2.10-1
+ pool_get_binding@SUNWprivate_1.1 2.10-1
+ pool_get_owning_resource@SUNWprivate_1.1 2.10-1
+ pool_get_pool@SUNWprivate_1.1 2.10-1
+ pool_get_property@SUNWprivate_1.1 2.10-1
+ pool_get_resource@SUNWprivate_1.1 2.10-1
+ pool_get_resource_binding@SUNWprivate_1.1 2.10-1
+ pool_get_status@SUNWprivate_1.2 2.10-1
+ pool_info@SUNWprivate_1.1 2.10-1
+ pool_put_property@SUNWprivate_1.1 2.10-1
+ pool_query_components@SUNWprivate_1.1 2.10-1
+ pool_query_pool_resources@SUNWprivate_1.1 2.10-1
+ pool_query_pools@SUNWprivate_1.1 2.10-1
+ pool_query_resource_components@SUNWprivate_1.1 2.10-1
+ pool_query_resources@SUNWprivate_1.1 2.10-1
+ pool_resource_create@SUNWprivate_1.1 2.10-1
+ pool_resource_destroy@SUNWprivate_1.1 2.10-1
+ pool_resource_info@SUNWprivate_1.1 2.10-1
+ pool_resource_to_elem@SUNWprivate_1.1 2.10-1
+ pool_resource_transfer@SUNWprivate_1.1 2.10-1
+ pool_resource_type_list@SUNWprivate_1.2 2.10-1
+ pool_resource_xtransfer@SUNWprivate_1.1 2.10-1
+ pool_rm_property@SUNWprivate_1.1 2.10-1
+ pool_set_binding@SUNWprivate_1.1 2.10-1
+ pool_set_status@SUNWprivate_1.2 2.10-1
+ pool_static_location@SUNWprivate_1.1 2.10-1
+ pool_strerror@SUNWprivate_1.1 2.10-1
+ pool_to_elem@SUNWprivate_1.1 2.10-1
+ pool_value_alloc@SUNWprivate_1.1 2.10-1
+ pool_value_free@SUNWprivate_1.1 2.10-1
+ pool_value_get_bool@SUNWprivate_1.1 2.10-1
+ pool_value_get_double@SUNWprivate_1.1 2.10-1
+ pool_value_get_int64@SUNWprivate_1.1 2.10-1
+ pool_value_get_name@SUNWprivate_1.1 2.10-1
+ pool_value_get_string@SUNWprivate_1.1 2.10-1
+ pool_value_get_type@SUNWprivate_1.1 2.10-1
+ pool_value_get_uint64@SUNWprivate_1.1 2.10-1
+ pool_value_set_bool@SUNWprivate_1.1 2.10-1
+ pool_value_set_double@SUNWprivate_1.1 2.10-1
+ pool_value_set_int64@SUNWprivate_1.1 2.10-1
+ pool_value_set_name@SUNWprivate_1.1 2.10-1
+ pool_value_set_string@SUNWprivate_1.1 2.10-1
+ pool_value_set_uint64@SUNWprivate_1.1 2.10-1
+ pool_version@SUNWprivate_1.1 2.10-1
+ pool_walk_components@SUNWprivate_1.1 2.10-1
+ pool_walk_pools@SUNWprivate_1.1 2.10-1
+ pool_walk_properties@SUNWprivate_1.1 2.10-1
+ pool_walk_resources@SUNWprivate_1.1 2.10-1
diff --git a/debian/libpool2.install b/debian/libpool2.install
new file mode 100644
index 0000000..e6b1125
--- /dev/null
+++ b/debian/libpool2.install
@@ -0,0 +1,2 @@
+usr/lib/*/libpool.so.2
+usr/lib/*/libpool.so.2.*
diff --git a/debian/libpool2.symbols b/debian/libpool2.symbols
new file mode 100644
index 0000000..37fdf22
--- /dev/null
+++ b/debian/libpool2.symbols
@@ -0,0 +1,71 @@
+libpool.so.2 libpool2 #MINVER#
+ LIBPOOL_2@LIBPOOL_2 1.0
+ pool_associate@LIBPOOL_2 1.0
+ pool_component_info@LIBPOOL_2 1.0
+ pool_component_to_elem@LIBPOOL_2 1.0
+ pool_conf_alloc@LIBPOOL_2 1.0
+ pool_conf_close@LIBPOOL_2 1.0
+ pool_conf_commit@LIBPOOL_2 1.0
+ pool_conf_export@LIBPOOL_2 1.0
+ pool_conf_free@LIBPOOL_2 1.0
+ pool_conf_info@LIBPOOL_2 1.0
+ pool_conf_location@LIBPOOL_2 1.0
+ pool_conf_open@LIBPOOL_2 1.0
+ pool_conf_remove@LIBPOOL_2 1.0
+ pool_conf_rollback@LIBPOOL_2 1.0
+ pool_conf_status@LIBPOOL_2 1.0
+ pool_conf_to_elem@LIBPOOL_2 1.0
+ pool_conf_update@LIBPOOL_2 1.0
+ pool_conf_validate@LIBPOOL_2 1.0
+ pool_create@LIBPOOL_2 1.0
+ pool_destroy@LIBPOOL_2 1.0
+ pool_dissociate@LIBPOOL_2 1.0
+ pool_dynamic_location@LIBPOOL_2 1.0
+ pool_error@LIBPOOL_2 1.0
+ pool_get_binding@LIBPOOL_2 1.0
+ pool_get_owning_resource@LIBPOOL_2 1.0
+ pool_get_pool@LIBPOOL_2 1.0
+ pool_get_property@LIBPOOL_2 1.0
+ pool_get_resource@LIBPOOL_2 1.0
+ pool_get_resource_binding@LIBPOOL_2 1.0
+ pool_get_status@LIBPOOL_2 1.0
+ pool_info@LIBPOOL_2 1.0
+ pool_put_property@LIBPOOL_2 1.0
+ pool_query_components@LIBPOOL_2 1.0
+ pool_query_pool_resources@LIBPOOL_2 1.0
+ pool_query_pools@LIBPOOL_2 1.0
+ pool_query_resource_components@LIBPOOL_2 1.0
+ pool_query_resources@LIBPOOL_2 1.0
+ pool_resource_create@LIBPOOL_2 1.0
+ pool_resource_destroy@LIBPOOL_2 1.0
+ pool_resource_info@LIBPOOL_2 1.0
+ pool_resource_to_elem@LIBPOOL_2 1.0
+ pool_resource_transfer@LIBPOOL_2 1.0
+ pool_resource_type_list@LIBPOOL_2 1.0
+ pool_resource_xtransfer@LIBPOOL_2 1.0
+ pool_rm_property@LIBPOOL_2 1.0
+ pool_set_binding@LIBPOOL_2 1.0
+ pool_set_status@LIBPOOL_2 1.0
+ pool_static_location@LIBPOOL_2 1.0
+ pool_strerror@LIBPOOL_2 1.0
+ pool_to_elem@LIBPOOL_2 1.0
+ pool_value_alloc@LIBPOOL_2 1.0
+ pool_value_free@LIBPOOL_2 1.0
+ pool_value_get_bool@LIBPOOL_2 1.0
+ pool_value_get_double@LIBPOOL_2 1.0
+ pool_value_get_int64@LIBPOOL_2 1.0
+ pool_value_get_name@LIBPOOL_2 1.0
+ pool_value_get_string@LIBPOOL_2 1.0
+ pool_value_get_type@LIBPOOL_2 1.0
+ pool_value_get_uint64@LIBPOOL_2 1.0
+ pool_value_set_bool@LIBPOOL_2 1.0
+ pool_value_set_double@LIBPOOL_2 1.0
+ pool_value_set_int64@LIBPOOL_2 1.0
+ pool_value_set_name@LIBPOOL_2 1.0
+ pool_value_set_string@LIBPOOL_2 1.0
+ pool_value_set_uint64@LIBPOOL_2 1.0
+ pool_version@LIBPOOL_2 1.0
+ pool_walk_components@LIBPOOL_2 1.0
+ pool_walk_pools@LIBPOOL_2 1.0
+ pool_walk_properties@LIBPOOL_2 1.0
+ pool_walk_resources@LIBPOOL_2 1.0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3eb3abf
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,58 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+
+export LDFLAGS := -Wl,--as-needed
+
+# list of arch for which build 32-bit library
+lib32 := illumos-amd64 kopensolaris-amd64
+
+# list of arch for which build 64-bit library
+lib64 :=
+
+variants := default
+
+ifneq (,$(filter $(DEB_HOST_ARCH), $(lib32)))
+variants += 32
+endif
+ifneq (,$(filter $(DEB_HOST_ARCH), $(lib64)))
+variants += 64
+endif
+
+configure-common := --datadir=/usr/share/xml/schema/libpool
+
+configure.32 := --libdir=\$${prefix}/lib32 CFLAGS="-m32"
+configure.64 := --libdir=\$${prefix}/lib64 CFLAGS="-m64"
+
+%:
+ dh $@
+
+override_dh_auto_configure : $(variants:%=configure-%-stamp)
+override_dh_auto_build : $(variants:%=build-%-stamp)
+override_dh_auto_install : $(variants:%=install-%-stamp)
+override_dh_auto_clean:
+ rm -rf debian/build
+
+override_dh_install:
+ dh_install --fail-missing -Xlibpool.la
+
+override_dh_strip:
+ dh_strip -plibpool2 --dbg-package=libpool2-dbg
+
+override_dh_makeshlibs:
+ dh_makeshlibs -- -c4
+
+configure-%-stamp:
+ dh_auto_configure -B debian/build/$* -- \
+ $(configure-common) $(configure.$*)
+ touch $@
+
+build-%-stamp: configure-%-stamp
+ dh_auto_build -B debian/build/$*
+ touch $@
+
+install-%-stamp: build-%-stamp
+ dh_auto_install -B debian/build/$*
+ touch $@
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)