summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-10-30 00:30:28 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-10-30 00:30:28 +0400
commit6550512f2b97972549c49665507668671d8319a6 (patch)
treec446537eaea2400531f3f9394b5bf0dd50ac3d65
parentc4efdfaee7c2f87dc15656480f435df2f822c721 (diff)
downloadillumos-packaging-6550512f2b97972549c49665507668671d8319a6.tar.gz
libsmbios
-rw-r--r--libsmbios/debian/README.source10
-rw-r--r--libsmbios/debian/changelog5
-rw-r--r--libsmbios/debian/compat1
-rw-r--r--libsmbios/debian/control77
-rw-r--r--libsmbios/debian/copyright27
-rw-r--r--libsmbios/debian/lib32smbios1-dev.install1
-rw-r--r--libsmbios/debian/lib32smbios1.install1
-rw-r--r--libsmbios/debian/libsmbios1-dev.install3
-rw-r--r--libsmbios/debian/libsmbios1.install1
-rwxr-xr-xlibsmbios/debian/rules97
-rw-r--r--libsmbios/debian/source/format1
11 files changed, 224 insertions, 0 deletions
diff --git a/libsmbios/debian/README.source b/libsmbios/debian/README.source
new file mode 100644
index 0000000..9988910
--- /dev/null
+++ b/libsmbios/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/libsmbios/debian/changelog b/libsmbios/debian/changelog
new file mode 100644
index 0000000..c18486d
--- /dev/null
+++ b/libsmbios/debian/changelog
@@ -0,0 +1,5 @@
+libsmbios (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/libsmbios/debian/compat b/libsmbios/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/libsmbios/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/libsmbios/debian/control b/libsmbios/debian/control
new file mode 100644
index 0000000..5e9ca0e
--- /dev/null
+++ b/libsmbios/debian/control
@@ -0,0 +1,77 @@
+Source: libsmbios
+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: libsmbios1
+Section: libs
+Priority: standard
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Architecture: illumos-amd64 illumos-i386
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: SMBIOS data access library
+ This package contains libsmbios shared library.
+ .
+ The libsmbios library can be used to access DMTF SMBIOS data from a device,
+ file, or raw memory buffer.
+ .
+ The System Management BIOS (SMBIOS) specification defines data structures
+ and access methods in a BIOS which allows storing and retrieving information
+ about the computer in question.
+
+Package: libsmbios1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-amd64 illumos-i386
+Provides: libsmbios-dev
+Depends: libsmbios1 (= ${binary:Version}), ${misc:Depends}, libc-dev
+Description: extended accounting file access library (development files)
+ This package contains the header files and symlinks needed
+ to compile applications that use libsmbios.
+ .
+ The libsmbios library can be used to access DMTF SMBIOS data from a device,
+ file, or raw memory buffer.
+ .
+ and access methods in a BIOS which allows storing and retrieving information
+ about the computer in question.
+
+Package: lib32smbios1
+Section: libs
+Priority: standard
+Architecture: illumos-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: extended accounting file access library (32 bit)
+ This package contains libsmbios shared library.
+ .
+ The libsmbios library can be used to access DMTF SMBIOS data from a device,
+ file, or raw memory buffer.
+ .
+ This is a 32-bit version of the library.
+
+Package: lib32smbios1-dev
+Section: libdevel
+Priority: optional
+Architecture: illumos-amd64
+Provides: lib32smbios-dev
+Depends: lib32smbios1 (= ${binary:Version}), libsmbios1-dev (= ${binary:Version}),
+ ${misc:Depends}
+Description: extended accounting file access library (32-bit development files)
+ This package contains files needed to compile
+ 32-bit applications that use libsmbios.
+ .
+ The libsmbios library can be used to access DMTF SMBIOS data from a device,
+ file, or raw memory buffer.
+ .
+ The System Management BIOS (SMBIOS) specification defines data structures
+ and access methods in a BIOS which allows storing and retrieving information
+ about the computer in question.
+
diff --git a/libsmbios/debian/copyright b/libsmbios/debian/copyright
new file mode 100644
index 0000000..92d3a40
--- /dev/null
+++ b/libsmbios/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/libsmbios/debian/lib32smbios1-dev.install b/libsmbios/debian/lib32smbios1-dev.install
new file mode 100644
index 0000000..d67d934
--- /dev/null
+++ b/libsmbios/debian/lib32smbios1-dev.install
@@ -0,0 +1 @@
+usr/lib32/libsmbios.so
diff --git a/libsmbios/debian/lib32smbios1.install b/libsmbios/debian/lib32smbios1.install
new file mode 100644
index 0000000..dabf7f4
--- /dev/null
+++ b/libsmbios/debian/lib32smbios1.install
@@ -0,0 +1 @@
+usr/lib32/libsmbios.so.1
diff --git a/libsmbios/debian/libsmbios1-dev.install b/libsmbios/debian/libsmbios1-dev.install
new file mode 100644
index 0000000..84ca211
--- /dev/null
+++ b/libsmbios/debian/libsmbios1-dev.install
@@ -0,0 +1,3 @@
+usr/lib/*/libsmbios.so
+usr/include/sys/smbios.h
+usr/include/smbios.h
diff --git a/libsmbios/debian/libsmbios1.install b/libsmbios/debian/libsmbios1.install
new file mode 100644
index 0000000..a68e875
--- /dev/null
+++ b/libsmbios/debian/libsmbios1.install
@@ -0,0 +1 @@
+usr/lib/*/libsmbios.so.1
diff --git a/libsmbios/debian/rules b/libsmbios/debian/rules
new file mode 100755
index 0000000..15a9d60
--- /dev/null
+++ b/libsmbios/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 := \
+libsmbios \
+
+# 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/%) \
+ usr/src/common/smbios \
+ usr/src/uts/common/sys/smbios.h \
+ usr/src/uts/common/sys/smbios_impl.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/usr/include/sys \
+ 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_headers:%=usr/src/lib/%) -t install_h
+ cp usr/src/uts/common/sys/*.h debian/tmp/usr/include/sys/
+ 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/libsmbios/debian/source/format b/libsmbios/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/libsmbios/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)