Add Debian packaging information
This commit is contained in:
parent
5204e01dd6
commit
977c233b74
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
9
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
usr/include/*
|
||||
usr/lib/*/lib*.so
|
||||
usr/lib/*/lib*.la
|
||||
usr/lib/*/pkgconfig/*
|
|
@ -0,0 +1 @@
|
|||
usr/lib/*/libgtpnl*.so.*
|
|
@ -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
|
Loading…
Reference in New Issue