debian packaging of libosmo-gtlv and libosmo-pfcp

Fix debian packaging, so far a copy-paste from osmo-upf.git crept in
here by accident.

Related: SYS#5895
Change-Id: Id7169fc67b4f8f77dfbeff9f199e6557ced67a53
This commit is contained in:
Neels Hofmeyr 2022-08-09 18:19:54 +02:00
parent 4714560466
commit 2c6dec19fa
8 changed files with 96 additions and 33 deletions

5
debian/changelog vendored
View File

@ -0,0 +1,5 @@
libosmo-pfcp (0.1.0) testing; urgency=low
Create new Debian package.
-- Neels Hofmeyr <nhofmeyr@sysmocom.de> Tue, 9 Aug 2022 18:29:05 +0200

2
debian/compat vendored
View File

@ -1 +1 @@
9
10

110
debian/control vendored
View File

@ -1,8 +1,8 @@
Source: osmo-upf
Section: net
Priority: extra
Maintainer: Osmocom team <openbsc@lists.osmocom.org>
Build-Depends: debhelper (>=9),
Source: libosmo-pfcp
Section: libs
Priority: optional
Maintainer: Osmocom team <osmocom-net-gprs@lists.osmocom.org>
Build-Depends: debhelper (>=10),
dh-autoreconf,
autotools-dev,
autoconf,
@ -10,33 +10,89 @@ Build-Depends: debhelper (>=9),
automake,
libtool,
pkg-config,
python3-minimal,
libtalloc-dev,
libosmocore-dev (>= 1.6.0),
osmo-gsm-manuals-dev (>= 1.2.0)
libosmocore-dev (>= 1.7.0),
libtalloc-dev (>= 2.1.0)
Standards-Version: 3.9.8
Vcs-Git: git://git.osmocom.org/osmo-upf.git
Vcs-Browser: https://git.osmocom.org/osmo-upf/
Homepage: https://projects.osmocom.org/projects/osmo-upf
Vcs-Git: https://gitea.osmocom.org/osmocom/libosmo-pfcp
Vcs-Browser: https://gitea.osmocom.org/osmocom/libosmo-pfcp
Homepage: https://projects.osmocom.org/projects/libosmo-pfcp
Package: osmo-upf
Package: libosmo-pfcp
Section: libs
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: OsmoUPF: Osmocom User Plane Function
Depends: ${misc:Depends},
libosmo-gtlv0 (= ${binary:Version}),
libosmo-pfcp0 (= ${binary:Version})
Description: Osmocom PFCP protocol implementation (metapackage)
Install Osmocom PFCP and generic TLV protocol libraries.
Package: osmo-upf-dbg
Section: debug
Package: libosmo-gtlv0
Section: libs
Architecture: any
Multi-Arch: same
Depends: osmo-upf (= ${binary:Version}), ${misc:Depends}
Description: OsmoUPF: Osmocom User Plane Function
Depends: ${shlibs:Depends},
${misc:Depends},
libosmocore-dev (>= 1.7.0),
libtalloc-dev (>= 2.1.0)
Pre-Depends: ${misc:Pre-Depends}
Description: Generic TLV and TLIV protocol support
Decoding, encoding and logging of protocols using a Tag-Length-Value and/or
Tag-Length-Instance-Value structure.
Package: osmo-upf-doc
Architecture: all
Section: doc
Priority: optional
Depends: ${misc:Depends}
Description: ${misc:Package} PDF documentation
Various manuals: user manual, VTY reference manual and/or
protocol/interface manuals.
Package: libosmo-gtlv-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends: ${misc:Depends},
libosmo-gtlv0 (= ${binary:Version})
Description: Development headers for libosmo-gtlv
libosmo-gtlv implements decoding, encoding and logging of protocols using a
Tag-Length-Value and/or Tag-Length-Instance-Value structure. This package in
particular contains the files for compiling a program using this library.
Package: libosmo-gtlv-dbg
Architecture: any
Multi-Arch: same
Section: debug
Priority: extra
Depends: ${misc:Depends},
libosmo-gtlv0 (= ${binary:Version})
Description: Debug symbols for libosmo-gtlv
libosmo-gtlv implements decoding, encoding and logging of protocols using a
Tag-Length-Value and/or Tag-Length-Instance-Value structure. This package in
particular contains the debug symbols for this library.
Package: libosmo-pfcp0
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Pre-Depends: ${misc:Pre-Depends}
Description: PFCP protocol support
Decoding, encoding and endpoint implementation of the Packet Forwarding Control Protocol
(3GPP TS 29.244).
Package: libosmo-pfcp-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends: ${misc:Depends},
libosmo-pfcp0 (= ${binary:Version})
Description: Development headers for libosmo-pfcp
libosmo-pfcp implements decoding, encoding and endpoint implementation of the
Packet Forwarding Control Protocol (3GPP TS 29.244). This package in particular
contains the files for compiling a program using this library.
Package: libosmo-pfcp-dbg
Architecture: any
Multi-Arch: same
Section: debug
Priority: extra
Depends: ${misc:Depends},
libosmo-pfcp0 (= ${binary:Version})
Description: Debug symbols for libosmo-pfcp
libosmo-pfcp implements decoding, encoding and endpoint implementation of the
Packet Forwarding Control Protocol (3GPP TS 29.244). This package in particular
contains the debug symbols for this library.

6
debian/copyright vendored
View File

@ -1,9 +1,9 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: osmo-upf
Source: git://git.osmocom.org/osmo-upf
Upstream-Name: libosmo-pfcp
Source: https://gitea.osmocom.org/osmocom/libosmo-pfcp
Files: *
Copyright: 2021-2022 sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
Copyright: 2022 sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
License: AGPL-3.0+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by

1
debian/libosmo-gtlv0.install vendored Normal file
View File

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

3
debian/rules vendored
View File

@ -55,7 +55,8 @@ override_dh_auto_configure:
# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg
override_dh_strip:
dh_strip -plibosmo-pfcp --dbg-package=libosmo-pfcp-dbg
dh_strip -plibosmo-gtlv0 --dbg-package=libosmo-gtlv-dbg
dh_strip -plibosmo-pfcp0 --dbg-package=libosmo-pfcp-dbg
# Print test results in case of a failure
override_dh_auto_test:

View File

@ -23,8 +23,8 @@ pfcp_test_SOURCES = \
pfcp_test_LDADD = \
$(LIBOSMOCORE_LIBS) \
$(top_builddir)/src/libosmo-gtlv/libosmo-gtlv.la \
$(top_builddir)/src/libosmo-pfcp/libosmo-pfcp.la \
$(top_builddir)/src/libosmo-gtlv/libosmo-gtlv.la \
$(NULL)
.PHONY: update_exp