aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-02-19 17:34:05 +0100
committerOliver Smith <osmith@sysmocom.de>2021-02-19 18:28:04 +0100
commit7710080ffd86d0d93a827b4a0c041ca972a48acc (patch)
treedfaf441de5ab096a4828aeefd9f9f513c6086bb4
parent798a81d48d3f55c3de0c0369ef553a7802ea40cb (diff)
deb/rpm: build with --enable-gtp-linuxosmith/wip
Allow optional use of the GTP kernel module. Related: OS#3208 Change-Id: Ic001ec6c5ec9887706a5b27f2a48cd61942ab4ee
-rw-r--r--contrib/osmo-ggsn.spec.in2
-rw-r--r--debian/control3
-rwxr-xr-xdebian/rules5
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: