From 7710080ffd86d0d93a827b4a0c041ca972a48acc Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 19 Feb 2021 17:34:05 +0100 Subject: [PATCH] deb/rpm: build with --enable-gtp-linux Allow optional use of the GTP kernel module. Related: OS#3208 Change-Id: Ic001ec6c5ec9887706a5b27f2a48cd61942ab4ee --- contrib/osmo-ggsn.spec.in | 2 ++ debian/control | 3 ++- debian/rules | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/contrib/osmo-ggsn.spec.in b/contrib/osmo-ggsn.spec.in index 4e8b11e..83a1ca7 100644 --- a/contrib/osmo-ggsn.spec.in +++ b/contrib/osmo-ggsn.spec.in @@ -34,6 +34,7 @@ BuildRequires: pkgconfig(libmnl) >= 1.0.3 BuildRequires: pkgconfig(libosmocore) >= 1.1.0 BuildRequires: pkgconfig(libosmoctrl) >= 1.1.0 BuildRequires: pkgconfig(libosmovty) >= 1.1.0 +BuildRequires: pkgconfig(libgtpnl) >= 1.2.0 Obsoletes: openggsn %{?systemd_requires} @@ -69,6 +70,7 @@ applications that want to make use of libgtp. echo "%{version}" >.tarball-version autoreconf -fi %configure \ + --enable-gtp-linux \ --disable-static \ --docdir="%{_docdir}/%{name}" \ --with-systemdsystemunitdir=%{_unitdir} \ diff --git a/debian/control b/debian/control index 0822773..1fd1937 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,8 @@ Build-Depends: debhelper (>= 9), libdpkg-perl, git, dh-autoreconf, libosmocore-dev (>= 1.4.0), - osmo-gsm-manuals-dev + osmo-gsm-manuals-dev, + libgtpnl-dev (>= 1.2.0) Standards-Version: 3.9.6 Vcs-Browser: http://git.osmocom.org/osmo-ggsn/ Vcs-Git: git://git.osmocom.org/osmo-ggsn diff --git a/debian/rules b/debian/rules index c5c7708..c11700c 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,10 @@ override_dh_strip: dh_strip -plibgtp6 --dbg-package=libgtp-dbg override_dh_auto_configure: - dh_auto_configure -- --with-systemdsystemunitdir=/lib/systemd/system --enable-manuals + dh_auto_configure -- \ + --enable-gtp-linux \ + --with-systemdsystemunitdir=/lib/systemd/system \ + --enable-manuals # Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers) override_dh_compress: