Add Debian packaging information

This commit is contained in:
Harald Welte 2017-10-30 23:22:52 +01:00
parent 5204e01dd6
commit 977c233b74
7 changed files with 95 additions and 0 deletions

9
.gitignore vendored
View File

@ -21,3 +21,12 @@ build-aux
# Debian package build temporary files
build-stamp
debian/*.substvars
debian/*.debhelper.log
debian/autoreconf.*
debian/.debhelper
debian/files
debian/tmp
debian/libgtpnl-dev
debian/libgtpnl-dbg
debian/libgtpnl0

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
libgtpnl (1.0.1) unstable; urgency=medium
* Initial release.
-- Harald Welte <laforge@gnumonks.org> Mon, 30 Oct 2017 23:03:47 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

45
debian/control vendored Normal file
View File

@ -0,0 +1,45 @@
Source: libgtpnl
Maintainer: Harald Welte <laforge@gnumonks.org>
Section: libs
Priority: optional
Build-Depends: debhelper (>= 9),
autotools-dev,
autoconf,
automake,
libtool,
dh-autoreconf,
git,
pkg-config,
libmnl-dev
Standards-Version: 3.9.8
Vcs-Git: git://git.osmocom.org/libgtpnl.git
Vcs-Browser: http://git.osmocom.org/gitweb?p=libgtpnl.git;a=summary
Homepage: https://projects.osmocom.org/projects/openggsn
Package: libgtpnl0
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Description: Linux kernel GTP-U netlink library
Package: libgtpnl-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends: libmnl-dev,
libgtpnl0 (= ${binary:Version}),
${misc:Depends}
Description: Development headers for Linux kernel GTP-U netlink library
The header files provided by this package may be used to develop
applications against the libgtpnl library.
Package: libgtpnl-dbg
Architecture: any
Multi-Arch: same
Section: debug
Priority: extra
Depends: libgtpnl0 (= ${binary:Version}),
${misc:Depends}
Description: Debug symbols for Linux kernel GTP-U netlink library

4
debian/libgtpnl-dev.install vendored Normal file
View File

@ -0,0 +1,4 @@
usr/include/*
usr/lib/*/lib*.so
usr/lib/*/lib*.la
usr/lib/*/pkgconfig/*

1
debian/libgtpnl0.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/libgtpnl*.so.*

30
debian/rules vendored Executable file
View File

@ -0,0 +1,30 @@
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
%:
dh $@ --with autoreconf --fail-missing
override_dh_strip:
dh_strip --dbg-package=libgtpnl-dbg
override_dh_install:
sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'`
dh_install
# Print test results in case of a failure
override_dh_auto_test:
dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)
override_dh_autoreconf:
echo $(VERSION) > .tarball-version
dh_autoreconf