Change in libgtpnl[master]: install gtp-tunnel and gtp-link tools

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Feb 12 11:51:27 UTC 2021


pespin has submitted this change. ( https://gerrit.osmocom.org/c/libgtpnl/+/22843 )

Change subject: install gtp-tunnel and gtp-link tools
......................................................................

install gtp-tunnel and gtp-link tools

This eases quick setup for demonstration purposes.

Change-Id: I674c463989bc1529bfe132b7ec0df7a0052169df
---
M contrib/libgtpnl.spec.in
M debian/control
A debian/libgtpnl-tools.install
M tools/Makefile.am
4 files changed, 28 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved



diff --git a/contrib/libgtpnl.spec.in b/contrib/libgtpnl.spec.in
index 8453612..0399d5d 100644
--- a/contrib/libgtpnl.spec.in
+++ b/contrib/libgtpnl.spec.in
@@ -51,6 +51,18 @@
 This subpackage contains libraries and header files for developing
 applications that want to make use of libgtpnl.
 
+%package tools
+Summary:        Libgtpnl user tools
+License:        GPL-2.0-or-later AND LGPL-2.1-or-later
+Group:          Applications/System
+Requires:       libgtpnl0 = %{version}
+
+%description tools
+libgtpnl wraps the genetlink-based GPRS tunnel configuration of the
+Linux kernel into a C API.
+
+This subpackage contains sample tools to manage gtp interfaces and tunnels.
+
 %prep
 %setup -q
 
@@ -79,4 +91,8 @@
 %{_libdir}/libgtpnl.so
 %{_libdir}/pkgconfig/*.pc
 
+%files tools
+%{_bindir}/gtp-link
+%{_bindir}/gtp-tunnel
+
 %changelog
diff --git a/debian/control b/debian/control
index 3128f3e..5c8ed03 100644
--- a/debian/control
+++ b/debian/control
@@ -43,3 +43,12 @@
 Depends: libgtpnl0 (= ${binary:Version}),
          ${misc:Depends}
 Description: Debug symbols for Linux kernel GTP-U netlink library
+
+Package: libgtpnl-tools
+Architecture: any
+Multi-Arch: same
+Section: net
+Priority: extra
+Depends: libgtpnl0 (= ${binary:Version}),
+         ${misc:Depends}
+Description: Tools to manage gtp interfaces and tunnels.
diff --git a/debian/libgtpnl-tools.install b/debian/libgtpnl-tools.install
new file mode 100644
index 0000000..49983e4
--- /dev/null
+++ b/debian/libgtpnl-tools.install
@@ -0,0 +1,2 @@
+/usr/bin/gtp-link
+/usr/bin/gtp-tunnel
diff --git a/tools/Makefile.am b/tools/Makefile.am
index ec2eb66..7beae57 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1,6 +1,6 @@
 include $(top_srcdir)/Make_global.am
 
-noinst_PROGRAMS = gtp-link		\
+bin_PROGRAMS = gtp-link		\
 		  gtp-tunnel
 
 gtp_link_SOURCES = gtp-link.c

-- 
To view, visit https://gerrit.osmocom.org/c/libgtpnl/+/22843
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libgtpnl
Gerrit-Branch: master
Gerrit-Change-Id: I674c463989bc1529bfe132b7ec0df7a0052169df
Gerrit-Change-Number: 22843
Gerrit-PatchSet: 2
Gerrit-Owner: Gabriel Ganne <gabriel.ganne at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210212/ca74a680/attachment.htm>


More information about the gerrit-log mailing list