diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-02-11 02:30:18 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-02-11 02:30:18 +0000 |
commit | 5771415b829f2ed6a386e573263c18f9b1c31987 (patch) | |
tree | e895af18e65766b98727a4d2cb238e20d2deaba1 /libadm | |
parent | 3375a4ab60b91ca60fb91d966ef8d78e09b50d37 (diff) | |
download | illumos-packaging-5771415b829f2ed6a386e573263c18f9b1c31987.tar.gz |
Ok, you have got it...
Diffstat (limited to 'libadm')
-rw-r--r-- | libadm/debian/README.source | 10 | ||||
-rw-r--r-- | libadm/debian/changelog | 5 | ||||
-rw-r--r-- | libadm/debian/compat | 1 | ||||
-rw-r--r-- | libadm/debian/control | 65 | ||||
-rw-r--r-- | libadm/debian/copyright | 62 | ||||
-rw-r--r-- | libadm/debian/lib32adm1-dev.install | 1 | ||||
-rw-r--r-- | libadm/debian/lib32adm1.install | 1 | ||||
-rw-r--r-- | libadm/debian/libadm1-dev.install | 9 | ||||
-rw-r--r-- | libadm/debian/libadm1.install | 1 | ||||
-rw-r--r-- | libadm/debian/libadm1.symbols | 134 | ||||
-rw-r--r-- | libadm/debian/patches/libadm-usr-lib.patch | 13 | ||||
-rw-r--r-- | libadm/debian/patches/series | 1 | ||||
-rwxr-xr-x | libadm/debian/rules | 105 | ||||
-rw-r--r-- | libadm/debian/source/format | 1 |
14 files changed, 409 insertions, 0 deletions
diff --git a/libadm/debian/README.source b/libadm/debian/README.source new file mode 100644 index 0000000..9988910 --- /dev/null +++ b/libadm/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/libadm/debian/changelog b/libadm/debian/changelog new file mode 100644 index 0000000..7e9f374 --- /dev/null +++ b/libadm/debian/changelog @@ -0,0 +1,5 @@ +libadm (2.10-1) unstable; urgency=low + + * Initial release. + + -- Igor Pashev <pashev.igor@gmail.com> Mon, 11 Feb 2013 02:03:16 +0000 diff --git a/libadm/debian/compat b/libadm/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/libadm/debian/compat @@ -0,0 +1 @@ +9 diff --git a/libadm/debian/control b/libadm/debian/control new file mode 100644 index 0000000..5d6f39b --- /dev/null +++ b/libadm/debian/control @@ -0,0 +1,65 @@ +Source: libadm +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: libadm1 +Section: libs +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Architecture: illumos-any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: general administrative library + This package contains libadm shared library. + . + Functions in this library provide device file name management, VTOC handling, + device name and packaging routines. + +Package: libadm1-dev +Section: libdevel +Priority: optional +Architecture: illumos-any +Provides: libadm-dev +Depends: libadm1 (= ${binary:Version}), ${misc:Depends}, libnvpair-dev, +Description: general administrative library (development files) + This package contains the header files and symlinks needed + to compile applications that use libadm. + . + Functions in this library provide device file name management, VTOC handling, + device name and packaging routines. + +Package: lib32adm1 +Section: libs +Priority: standard +Architecture: illumos-amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: general administrative library (32 bit) + This package contains libadm shared library. + . + Functions in this library provide device file name management, VTOC handling, + device name and packaging routines. + . + This is a 32-bit version of the library. + +Package: lib32adm1-dev +Section: libdevel +Priority: optional +Architecture: illumos-amd64 +Provides: lib32adm-dev +Depends: lib32adm1 (= ${binary:Version}), libadm1-dev (= ${binary:Version}), + ${misc:Depends} +Description: general administrative library (32-bit development files) + This package contains files needed to compile + 32-bit applications that use libadm. + . + Functions in this library provide device file name management, VTOC handling, + device name and packaging routines. + diff --git a/libadm/debian/copyright b/libadm/debian/copyright new file mode 100644 index 0000000..2b18913 --- /dev/null +++ b/libadm/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/libadm/debian/lib32adm1-dev.install b/libadm/debian/lib32adm1-dev.install new file mode 100644 index 0000000..d24e1a6 --- /dev/null +++ b/libadm/debian/lib32adm1-dev.install @@ -0,0 +1 @@ +usr/lib32/libadm.so diff --git a/libadm/debian/lib32adm1.install b/libadm/debian/lib32adm1.install new file mode 100644 index 0000000..76e94bd --- /dev/null +++ b/libadm/debian/lib32adm1.install @@ -0,0 +1 @@ +usr/lib32/libadm.so.1 diff --git a/libadm/debian/libadm1-dev.install b/libadm/debian/libadm1-dev.install new file mode 100644 index 0000000..b9146e7 --- /dev/null +++ b/libadm/debian/libadm1-dev.install @@ -0,0 +1,9 @@ +usr/lib/*/libadm.so +usr/include/pkgstrct.h +usr/include/valtools.h +usr/include/devmgmt.h +usr/include/devtab.h +usr/include/pkginfo.h +usr/include/pkglocs.h +usr/include/libadm.h + diff --git a/libadm/debian/libadm1.install b/libadm/debian/libadm1.install new file mode 100644 index 0000000..a95dfae --- /dev/null +++ b/libadm/debian/libadm1.install @@ -0,0 +1 @@ +usr/lib/*/libadm.so.1 diff --git a/libadm/debian/libadm1.symbols b/libadm/debian/libadm1.symbols new file mode 100644 index 0000000..f09c78f --- /dev/null +++ b/libadm/debian/libadm1.symbols @@ -0,0 +1,134 @@ +libadm.so.1 libadm1 #MINVER# + SUNW_0.7@SUNW_0.7 2.10-1 + SUNW_1.1@SUNW_1.1 2.10-1 + SUNW_1.2@SUNW_1.2 2.10-1 + SUNWprivate_1.1@SUNWprivate_1.1 2.10-1 + _adddevtabrec@SUNWprivate_1.1 2.10-1 + _adddgrptabrec@SUNWprivate_1.1 2.10-1 + _devtabpath@SUNWprivate_1.1 2.10-1 + _dgrptabpath@SUNWprivate_1.1 2.10-1 + _enddevtab@SUNWprivate_1.1 2.10-1 + _getvol@SUNWprivate_1.1 2.10-1 + _moddevtabrec@SUNWprivate_1.1 2.10-1 + _opendevtab@SUNWprivate_1.1 2.10-1 + _opendgrptab@SUNWprivate_1.1 2.10-1 + _rmdevtabattrs@SUNWprivate_1.1 2.10-1 + _rmdevtabrec@SUNWprivate_1.1 2.10-1 + _rmdgrpmems@SUNWprivate_1.1 2.10-1 + _rmdgrptabrec@SUNWprivate_1.1 2.10-1 + _rsvtabpath@SUNWprivate_1.1 2.10-1 + _validalias@SUNWprivate_1.1 2.10-1 + adm_add_logical_drive@SUNWprivate_1.1 2.10-1 + adm_change_logical_drive_id@SUNWprivate_1.1 2.10-1 + adm_commit_ext_part@SUNWprivate_1.1 2.10-1 + adm_delete_ext_part@SUNWprivate_1.1 2.10-1 + adm_delete_logical_drive@SUNWprivate_1.1 2.10-1 + adm_dump@SUNW_1.1 2.10-1 + adm_ext_find_first_free_sec@SUNWprivate_1.1 2.10-1 + adm_ext_find_last_free_sec@SUNWprivate_1.1 2.10-1 + adm_ext_part_exists@SUNWprivate_1.1 2.10-1 + adm_ext_validate_part_start@SUNWprivate_1.1 2.10-1 + adm_fini@SUNW_1.1 2.10-1 + adm_get_attr@SUNW_1.1 2.10-1 + adm_get_disk_geom@SUNWprivate_1.1 2.10-1 + adm_get_part_info@SUNWprivate_1.1 2.10-1 + adm_get_solaris_part@SUNWprivate_1.1 2.10-1 + adm_ident@SUNW_1.1 2.10-1 + adm_init@SUNW_1.1 2.10-1 + adm_init_ext_part@SUNWprivate_1.1 2.10-1 + adm_invalid_bb_sig@SUNWprivate_1.1 2.10-1 + adm_is_linux_swap@SUNWprivate_1.1 2.10-1 + adm_mounted_logical_drives@SUNWprivate_1.1 2.10-1 + adm_strerror@SUNW_1.1 2.10-1 + adm_validate_logical_drive@SUNWprivate_1.1 2.10-1 + allocmenu@SUNWprivate_1.1 2.10-1 + ckdate@SUNWprivate_1.1 2.10-1 + ckdate_err@SUNWprivate_1.1 2.10-1 + ckdate_hlp@SUNWprivate_1.1 2.10-1 + ckdate_val@SUNWprivate_1.1 2.10-1 + ckgid@SUNWprivate_1.1 2.10-1 + ckgid_dsp@SUNWprivate_1.1 2.10-1 + ckgid_err@SUNWprivate_1.1 2.10-1 + ckgid_hlp@SUNWprivate_1.1 2.10-1 + ckgid_val@SUNWprivate_1.1 2.10-1 + ckindent@SUNWprivate_1.1 2.10-1 + ckint@SUNWprivate_1.1 2.10-1 + ckint_err@SUNWprivate_1.1 2.10-1 + ckint_hlp@SUNWprivate_1.1 2.10-1 + ckint_val@SUNWprivate_1.1 2.10-1 + ckitem@SUNWprivate_1.1 2.10-1 + ckitem_err@SUNWprivate_1.1 2.10-1 + ckitem_hlp@SUNWprivate_1.1 2.10-1 + ckkeywd@SUNWprivate_1.1 2.10-1 + ckpath@SUNWprivate_1.1 2.10-1 + ckpath_err@SUNWprivate_1.1 2.10-1 + ckpath_hlp@SUNWprivate_1.1 2.10-1 + ckpath_stx@SUNWprivate_1.1 2.10-1 + ckpath_val@SUNWprivate_1.1 2.10-1 + ckquit@SUNWprivate_1.1 2.10-1 + ckrange@SUNWprivate_1.1 2.10-1 + ckrange_err@SUNWprivate_1.1 2.10-1 + ckrange_hlp@SUNWprivate_1.1 2.10-1 + ckrange_val@SUNWprivate_1.1 2.10-1 + ckstr@SUNWprivate_1.1 2.10-1 + ckstr_err@SUNWprivate_1.1 2.10-1 + ckstr_hlp@SUNWprivate_1.1 2.10-1 + ckstr_val@SUNWprivate_1.1 2.10-1 + cktime@SUNWprivate_1.1 2.10-1 + cktime_err@SUNWprivate_1.1 2.10-1 + cktime_hlp@SUNWprivate_1.1 2.10-1 + cktime_val@SUNWprivate_1.1 2.10-1 + ckuid@SUNWprivate_1.1 2.10-1 + ckuid_dsp@SUNWprivate_1.1 2.10-1 + ckuid_err@SUNWprivate_1.1 2.10-1 + ckuid_hlp@SUNWprivate_1.1 2.10-1 + ckuid_val@SUNWprivate_1.1 2.10-1 + ckwidth@SUNWprivate_1.1 2.10-1 + ckyorn@SUNWprivate_1.1 2.10-1 + ckyorn_err@SUNWprivate_1.1 2.10-1 + ckyorn_hlp@SUNWprivate_1.1 2.10-1 + ckyorn_val@SUNWprivate_1.1 2.10-1 + devattr@SUNWprivate_1.1 2.10-1 + devfree@SUNWprivate_1.1 2.10-1 + devreserv@SUNWprivate_1.1 2.10-1 + fpkginfo@SUNWprivate_1.1 2.10-1 + fpkginst@SUNWprivate_1.1 2.10-1 + fpkgparam@SUNWprivate_1.1 2.10-1 + get_ABI_namelngth@SUNWprivate_1.1 2.10-1 + get_PKGADM@SUNWprivate_1.1 2.10-1 + get_PKGLOC@SUNWprivate_1.1 2.10-1 + get_install_root@SUNWprivate_1.1 2.10-1 + getdev@SUNWprivate_1.1 2.10-1 + getdgrp@SUNWprivate_1.1 2.10-1 + getfullblkname@SUNWprivate_1.1 2.10-1 + getfullrawname@SUNWprivate_1.1 2.10-1 + getinput@SUNWprivate_1.1 2.10-1 + getvol@SUNWprivate_1.1 2.10-1 + libadm_fini@SUNWprivate_1.1 2.10-1 + libadm_init@SUNWprivate_1.1 2.10-1 + libadm_reset@SUNWprivate_1.1 2.10-1 + listdev@SUNWprivate_1.1 2.10-1 + listdgrp@SUNWprivate_1.1 2.10-1 + pkgdir@SUNW_0.7 2.10-1 + pkgfile@SUNWprivate_1.1 2.10-1 + pkginfo@SUNWprivate_1.1 2.10-1 + pkginfofind@SUNWprivate_1.1 2.10-1 + pkgnmchk@SUNWprivate_1.1 2.10-1 + pkgparam@SUNWprivate_1.1 2.10-1 + printmenu@SUNWprivate_1.1 2.10-1 + puterror@SUNWprivate_1.1 2.10-1 + puthelp@SUNWprivate_1.1 2.10-1 + putprmpt@SUNWprivate_1.1 2.10-1 + puttext@SUNWprivate_1.1 2.10-1 + read_extvtoc@SUNW_1.2 2.10-1 + read_vtoc@SUNW_0.7 2.10-1 + reservdev@SUNWprivate_1.1 2.10-1 + set_ABI_namelngth@SUNWprivate_1.1 2.10-1 + set_PKGADM@SUNWprivate_1.1 2.10-1 + set_PKGLOC@SUNWprivate_1.1 2.10-1 + set_PKGpaths@SUNWprivate_1.1 2.10-1 + set_install_root@SUNWprivate_1.1 2.10-1 + setinvis@SUNWprivate_1.1 2.10-1 + setitem@SUNWprivate_1.1 2.10-1 + write_extvtoc@SUNW_1.2 2.10-1 + write_vtoc@SUNW_0.7 2.10-1 diff --git a/libadm/debian/patches/libadm-usr-lib.patch b/libadm/debian/patches/libadm-usr-lib.patch new file mode 100644 index 0000000..c226f99 --- /dev/null +++ b/libadm/debian/patches/libadm-usr-lib.patch @@ -0,0 +1,13 @@ +Index: libadm/usr/src/lib/libadm/Makefile.com +=================================================================== +--- libadm.orig/usr/src/lib/libadm/Makefile.com 2012-10-08 00:25:37.000000000 +0000 ++++ libadm/usr/src/lib/libadm/Makefile.com 2013-02-11 02:17:05.282889676 +0000 +@@ -35,8 +35,6 @@ + + include ../../Makefile.lib + +-# install this library in the root filesystem +-include ../../Makefile.rootfs + + LIBS= $(DYNLIB) $(LINTLIB) + SRCDIR= ../common diff --git a/libadm/debian/patches/series b/libadm/debian/patches/series new file mode 100644 index 0000000..a55d7fc --- /dev/null +++ b/libadm/debian/patches/series @@ -0,0 +1 @@ +libadm-usr-lib.patch diff --git a/libadm/debian/rules b/libadm/debian/rules new file mode 100755 index 0000000..e07a3df --- /dev/null +++ b/libadm/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/architecture.mk +export DH_VERBOSE = 1 + +# libs having "install_h" target to install headers: +libs_headers := \ + +# All libraries to build and to package. +# Order is important: +libs := $(libs_headers) \ + libadm + + +unpack: unpack-stamp +unpack-stamp: + dh_testdir + dh_illumos_gate --build \ + $(libs:%=usr/src/lib/%) \ + usr/src/head/note.h \ + usr/src/head/pkginfo.h \ + usr/src/head/pkglocs.h \ + usr/src/head/devmgmt.h \ + usr/src/head/pkgstrct.h \ + usr/src/head/valtools.h \ + + + # 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 + cp usr/src/head/*.h \ + usr/src/lib/libadm/inc/*.h \ + debian/tmp/usr/include/ + 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/libadm/debian/source/format b/libadm/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/libadm/debian/source/format @@ -0,0 +1 @@ +3.0 (native) |