summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-09-05 02:20:57 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-09-05 02:20:57 +0000
commit59347ab6b03dcd52eeb4a04dabb75711856cc9dd (patch)
tree56370e0ef10634df0a629f60674e2d01a1c1bfdb
parentea8b1f90d46279d7814a0c7f6b6742d3fab034f7 (diff)
downloadlibelf-59347ab6b03dcd52eeb4a04dabb75711856cc9dd.tar.gz
Added debian dir
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control36
-rw-r--r--debian/copyright44
-rw-r--r--debian/lib32elfg0-dev.install3
-rw-r--r--debian/lib32elfg0.install1
-rwxr-xr-xdebian/rules69
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/options1
9 files changed, 161 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fe6e875
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libelf (0.8.13-4) unstable; urgency=low
+
+ * Initial release.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Wed, 05 Sep 2012 01:35:00 +0000
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..cac8c9b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: libelf
+Section: devel
+Priority: optional
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends: gettext, debhelper (>= 9)
+Standards-Version: 3.9.3
+
+Package: libelfg0
+Architecture: any
+Section: libs
+Priority: required
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}
+Description: ELF object file access library
+
+Package: libelfg0-dev
+Architecture: any
+Section: libdevel
+Priority: optional
+Depends: libelfg0 (= ${binary:Version}), ${misc:Depends}
+Conflicts: libelf-dev, libelf0-dev, libelf1-dev
+Description: ELF object file access library (development files)
+
+Package: lib32elfg0
+Architecture: illumos-amd64
+Section: libs
+Priority: required
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: ELF object file access library (32-bit version)
+
+Package: lib32elfg0-dev
+Architecture: illumos-amd64
+Section: libdevel
+Priority: optional
+Depends: lib32elfg0 (= ${binary:Version}), libelfg0-dev (= ${binary:Version}), ${misc:Depends}
+Description: ELF object file access library (32-bit development files)
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..bda3402
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,44 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libelf
+Upstream-Contact: Michael Riepe <libelf@mr511.de>
+Source: http://www.mr511.de/software/libelf-0.8.13.tar.gz
+
+
+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.
+
+
+
+Copyright: (C) 1995-2006 Michael Riepe
+License:
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+Comment:
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in `/usr/share/common-licenses/LGPL'.
diff --git a/debian/lib32elfg0-dev.install b/debian/lib32elfg0-dev.install
new file mode 100644
index 0000000..3d125c1
--- /dev/null
+++ b/debian/lib32elfg0-dev.install
@@ -0,0 +1,3 @@
+usr/lib32/libelf.a
+usr/lib32/libelf.so
+usr/lib32/pkgconfig
diff --git a/debian/lib32elfg0.install b/debian/lib32elfg0.install
new file mode 100644
index 0000000..d134dd6
--- /dev/null
+++ b/debian/lib32elfg0.install
@@ -0,0 +1 @@
+usr/lib32/libelf.so.0*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..75fcb3d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,69 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/architecture.mk
+
+
+multi_CC := -m32
+multi_libdir := /usr/lib32
+ifeq (illumos,$(DEB_HOST_ARCH_OS))
+ # runtime linker used to be dynamically linked to libelf:
+ libdir := /lib/$(DEB_HOST_MULTIARCH)
+else
+ libdir := /usr/lib/$(DEB_HOST_MULTIARCH)
+endif
+
+%:
+ dh $@
+
+override_dh_install:
+ dh_install
+ dh_install -p libelfg0 "$(libdir)/*.so.*"
+ dh_install -p libelfg0-dev "$(libdir)/*.a" /usr/lib/$(DEB_HOST_MULTIARCH)/
+ dh_install -p libelfg0-dev "$(libdir)/pkgconfig" /usr/lib/$(DEB_HOST_MULTIARCH)/
+ dh_install -p libelfg0-dev "/usr/include"
+
+override_dh_link:
+ dh_link
+ dh_link -p libelfg0-dev $(libdir)/libelf.so.0 \
+ /usr/lib/$(DEB_HOST_MULTIARCH)/libelf.so
+
+override_dh_installdocs:
+ dh_installdocs --link-doc=libelfg0
+
+override_dh_auto_configure: configure-stamp configure_multi-stamp
+override_dh_auto_build: build-stamp build_multi-stamp
+override_dh_auto_install: install-stamp install_multi-stamp
+override_dh_auto_clean:
+ rm -rf native multi
+
+configure-stamp:
+ dh_auto_configure -B native -- \
+ --libdir=$(libdir) \
+ --enable-shared \
+ --enable-compat
+ touch $@
+
+configure_multi-stamp:
+ CC="$(CC) $(multi_CC)" \
+ dh_auto_configure -B multi -- \
+ --libdir=$(multi_libdir) \
+ --enable-shared \
+ --enable-compat
+ touch $@
+
+build-stamp:
+ dh_auto_build -B native
+ touch $@
+
+build_multi-stamp:
+ dh_auto_build -B multi
+ touch $@
+
+install-stamp:
+ cd native && $(MAKE) instroot=$(CURDIR)/debian/tmp install
+ touch $@
+
+install_multi-stamp:
+ cd multi && $(MAKE) instroot=$(CURDIR)/debian/tmp install
+ 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)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..4aceb10
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+unapply-patches