<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13328">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add debian packaging content<br><br>Change-Id: I2bcacca040364f77aa6b17edf53acf53c820c17b<br>---<br>A debian/changelog<br>A debian/compat<br>A debian/control<br>A debian/copyright<br>A debian/osmo-sysmon.install<br>A debian/rules<br>A debian/source/format<br>7 files changed, 184 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sysmon refs/changes/28/13328/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/debian/changelog b/debian/changelog</span><br><span>new file mode 100644</span><br><span>index 0000000..2c9850d</span><br><span>--- /dev/null</span><br><span>+++ b/debian/changelog</span><br><span>@@ -0,0 +1,6 @@</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-sysmon (0.0.1) unstable; urgency=medium</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  * Initial release.</span><br><span style="color: hsl(120, 100%, 40%);">+  * UNRELEASED</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ -- Pau Espin Pedrol <pespin@sysmocom.de>  Tue, 19 Mar 2019 18:32:14 +0100</span><br><span>diff --git a/debian/compat b/debian/compat</span><br><span>new file mode 100644</span><br><span>index 0000000..ec63514</span><br><span>--- /dev/null</span><br><span>+++ b/debian/compat</span><br><span>@@ -0,0 +1 @@</span><br><span style="color: hsl(120, 100%, 40%);">+9</span><br><span>diff --git a/debian/control b/debian/control</span><br><span>new file mode 100644</span><br><span>index 0000000..bed247f</span><br><span>--- /dev/null</span><br><span>+++ b/debian/control</span><br><span>@@ -0,0 +1,47 @@</span><br><span style="color: hsl(120, 100%, 40%);">+Source: osmo-msc</span><br><span style="color: hsl(120, 100%, 40%);">+Section: net</span><br><span style="color: hsl(120, 100%, 40%);">+Priority: extra</span><br><span style="color: hsl(120, 100%, 40%);">+Maintainer: Alexander Couzens <lynxis@fe80.eu></span><br><span style="color: hsl(120, 100%, 40%);">+Build-Depends: debhelper (>=9),</span><br><span style="color: hsl(120, 100%, 40%);">+               dh-autoreconf,</span><br><span style="color: hsl(120, 100%, 40%);">+               autotools-dev,</span><br><span style="color: hsl(120, 100%, 40%);">+               autoconf,</span><br><span style="color: hsl(120, 100%, 40%);">+               automake,</span><br><span style="color: hsl(120, 100%, 40%);">+               libtool,</span><br><span style="color: hsl(120, 100%, 40%);">+               pkg-config,</span><br><span style="color: hsl(120, 100%, 40%);">+               libtalloc-dev,</span><br><span style="color: hsl(120, 100%, 40%);">+               liboping-dev (>= 1.9.0),</span><br><span style="color: hsl(120, 100%, 40%);">+               libosmocore-dev (>= 1.0.1),</span><br><span style="color: hsl(120, 100%, 40%);">+               libosmo-netif-dev (>= 0.4.0),</span><br><span style="color: hsl(120, 100%, 40%);">+Standards-Version: 3.9.8</span><br><span style="color: hsl(120, 100%, 40%);">+Vcs-Git: git://git.osmocom.org/osmo-sysmon.git</span><br><span style="color: hsl(120, 100%, 40%);">+Vcs-Browser: https://git.osmocom.org/osmo-sysmon/</span><br><span style="color: hsl(120, 100%, 40%);">+Homepage: https://osmocom.org/</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Package: osmo-sysmon</span><br><span style="color: hsl(120, 100%, 40%);">+Architecture: any</span><br><span style="color: hsl(120, 100%, 40%);">+Multi-Arch: foreign</span><br><span style="color: hsl(120, 100%, 40%);">+Depends: ${misc:Depends}, ${shlibs:Depends}</span><br><span style="color: hsl(120, 100%, 40%);">+Description: Simple Osmocom System Monitor (osysmon)</span><br><span style="color: hsl(120, 100%, 40%);">+  This application prints on screen once per second relevant information about</span><br><span style="color: hsl(120, 100%, 40%);">+  the status of the system. Information being printed can be specified through</span><br><span style="color: hsl(120, 100%, 40%);">+  configuration file (and VTY).</span><br><span style="color: hsl(120, 100%, 40%);">+  .</span><br><span style="color: hsl(120, 100%, 40%);">+  Useful to run as a login shell to provide users with some diagnose system</span><br><span style="color: hsl(120, 100%, 40%);">+  without providing full access the system.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Package: osmo-sysmon-dbg</span><br><span style="color: hsl(120, 100%, 40%);">+Section: debug</span><br><span style="color: hsl(120, 100%, 40%);">+Architecture: any</span><br><span style="color: hsl(120, 100%, 40%);">+Multi-Arch: same</span><br><span style="color: hsl(120, 100%, 40%);">+Depends: osmo-sysmon (= ${binary:Version}), ${misc:Depends}</span><br><span style="color: hsl(120, 100%, 40%);">+Description: Simple Osmocom System Monitor (osysmon)</span><br><span style="color: hsl(120, 100%, 40%);">+  This application prints on screen once per second relevant information about</span><br><span style="color: hsl(120, 100%, 40%);">+  the status of the system. Information being printed can be specified through</span><br><span style="color: hsl(120, 100%, 40%);">+  configuration file (and VTY).</span><br><span style="color: hsl(120, 100%, 40%);">+  .</span><br><span style="color: hsl(120, 100%, 40%);">+  Useful to run as a login shell to provide users with some diagnose system</span><br><span style="color: hsl(120, 100%, 40%);">+  without providing full access the system.</span><br><span style="color: hsl(120, 100%, 40%);">+  .</span><br><span style="color: hsl(120, 100%, 40%);">+  This package contains the debug symbols for osmo-sysmon in order to</span><br><span style="color: hsl(120, 100%, 40%);">+  generate meaningful backtraces in bug-reports.</span><br><span>diff --git a/debian/copyright b/debian/copyright</span><br><span>new file mode 100644</span><br><span>index 0000000..f8d29de</span><br><span>--- /dev/null</span><br><span>+++ b/debian/copyright</span><br><span>@@ -0,0 +1,77 @@</span><br><span style="color: hsl(120, 100%, 40%);">+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/</span><br><span style="color: hsl(120, 100%, 40%);">+Upstream-Name: osmo-sysmon</span><br><span style="color: hsl(120, 100%, 40%);">+Source: git://git.osmocom.org/osmo-sysmon</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Files:     *</span><br><span style="color: hsl(120, 100%, 40%);">+Copyright: 2019 sysmocom s.f.m.c. GmbH <info@sysmocom.de></span><br><span style="color: hsl(120, 100%, 40%);">+License:   GPL-2.0+</span><br><span style="color: hsl(120, 100%, 40%);">+ This program is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(120, 100%, 40%);">+ it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(120, 100%, 40%);">+ the Free Software Foundation; either version 2 of the License, or</span><br><span style="color: hsl(120, 100%, 40%);">+ (at your option) any later version.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+ but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(120, 100%, 40%);">+ GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ You should have received a copy of the GNU General Public License along</span><br><span style="color: hsl(120, 100%, 40%);">+ with this program; if not, write to the Free Software Foundation, Inc.,</span><br><span style="color: hsl(120, 100%, 40%);">+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ On Debian systems, the complete text of the GNU General Public License</span><br><span style="color: hsl(120, 100%, 40%);">+ Version 2 can be found in `/usr/share/common-licenses/GPL-2'.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Files:     git-version-gen</span><br><span style="color: hsl(120, 100%, 40%);">+Copyright: 2007-2010 Free Software Foundation, Inc.</span><br><span style="color: hsl(120, 100%, 40%);">+License:   GPL-3.0+</span><br><span style="color: hsl(120, 100%, 40%);">+ This program is free software: you can redistribute it and/or modify</span><br><span style="color: hsl(120, 100%, 40%);">+ it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(120, 100%, 40%);">+ the Free Software Foundation; either version 3 of the License, or</span><br><span style="color: hsl(120, 100%, 40%);">+ (at your option) any later version.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+ but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(120, 100%, 40%);">+ GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ You should have received a copy of the GNU General Public License</span><br><span style="color: hsl(120, 100%, 40%);">+ along with this program.  If not, see <http://www.gnu.org/licenses/>.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ This script is derived from GIT-VERSION-GEN from GIT: http://git.or.cz/.</span><br><span style="color: hsl(120, 100%, 40%);">+ It may be run two ways:</span><br><span style="color: hsl(120, 100%, 40%);">+ - from a git repository in which the "git describe" command below</span><br><span style="color: hsl(120, 100%, 40%);">+ produces useful output (thus requiring at least one signed tag)</span><br><span style="color: hsl(120, 100%, 40%);">+ - from a non-git-repo directory containing a .tarball-version file, which</span><br><span style="color: hsl(120, 100%, 40%);">+ presumes this script is invoked like "./git-version-gen .tarball-version".</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ In order to use intra-version strings in your project, you will need two</span><br><span style="color: hsl(120, 100%, 40%);">+ separate generated version string files:</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ .tarball-version - present only in a distribution tarball, and not in</span><br><span style="color: hsl(120, 100%, 40%);">+ a checked-out repository.  Created with contents that were learned at</span><br><span style="color: hsl(120, 100%, 40%);">+ the last time autoconf was run, and used by git-version-gen.  Must not</span><br><span style="color: hsl(120, 100%, 40%);">+ be present in either $(srcdir) or $(builddir) for git-version-gen to</span><br><span style="color: hsl(120, 100%, 40%);">+ give accurate answers during normal development with a checked out tree,</span><br><span style="color: hsl(120, 100%, 40%);">+ but must be present in a tarball when there is no version control system.</span><br><span style="color: hsl(120, 100%, 40%);">+ Therefore, it cannot be used in any dependencies.  GNUmakefile has</span><br><span style="color: hsl(120, 100%, 40%);">+ hooks to force a reconfigure at distribution time to get the value</span><br><span style="color: hsl(120, 100%, 40%);">+ correct, without penalizing normal development with extra reconfigures.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ .version - present in a checked-out repository and in a distribution</span><br><span style="color: hsl(120, 100%, 40%);">+ tarball.  Usable in dependencies, particularly for files that don't</span><br><span style="color: hsl(120, 100%, 40%);">+ want to depend on config.h but do want to track version changes.</span><br><span style="color: hsl(120, 100%, 40%);">+ Delete this file prior to any autoconf run where you want to rebuild</span><br><span style="color: hsl(120, 100%, 40%);">+ files to pick up a version string change; and leave it stale to</span><br><span style="color: hsl(120, 100%, 40%);">+ minimize rebuild time after unrelated changes to configure sources.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ It is probably wise to add these two files to .gitignore, so that you</span><br><span style="color: hsl(120, 100%, 40%);">+ don't accidentally commit either generated file.</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ Use the following line in your configure.ac, so that $(VERSION) will</span><br><span style="color: hsl(120, 100%, 40%);">+ automatically be up-to-date each time configure is run (and note that</span><br><span style="color: hsl(120, 100%, 40%);">+ since configure.ac no longer includes a version string, Makefile rules</span><br><span style="color: hsl(120, 100%, 40%);">+ should not depend on configure.ac for version updates).</span><br><span style="color: hsl(120, 100%, 40%);">+ .</span><br><span style="color: hsl(120, 100%, 40%);">+ On Debian systems, the complete text of the GNU General Public License</span><br><span style="color: hsl(120, 100%, 40%);">+ Version 3 can be found in `/usr/share/common-licenses/GPL-3'.</span><br><span>diff --git a/debian/osmo-sysmon.install b/debian/osmo-sysmon.install</span><br><span>new file mode 100644</span><br><span>index 0000000..c0a7be3</span><br><span>--- /dev/null</span><br><span>+++ b/debian/osmo-sysmon.install</span><br><span>@@ -0,0 +1,3 @@</span><br><span style="color: hsl(120, 100%, 40%);">+etc/osmocom/osmo-sysmon.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+usr/bin/osmo-sysmon</span><br><span style="color: hsl(120, 100%, 40%);">+usr/share/doc/examples/osmo-sysmon.cfg usr/share/doc/osmo-sysmon/examples</span><br><span>diff --git a/debian/rules b/debian/rules</span><br><span>new file mode 100755</span><br><span>index 0000000..dca811f</span><br><span>--- /dev/null</span><br><span>+++ b/debian/rules</span><br><span>@@ -0,0 +1,49 @@</span><br><span style="color: hsl(120, 100%, 40%);">+#!/usr/bin/make -f</span><br><span style="color: hsl(120, 100%, 40%);">+# You must remove unused comment lines for the released package.</span><br><span style="color: hsl(120, 100%, 40%);">+# See debhelper(7) (uncomment to enable)</span><br><span style="color: hsl(120, 100%, 40%);">+# This is an autogenerated template for debian/rules.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Output every command that modifies files on the build system.</span><br><span style="color: hsl(120, 100%, 40%);">+#export DH_VERBOSE = 1</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Copy some variable definitions from pkg-info.mk and vendor.mk</span><br><span style="color: hsl(120, 100%, 40%);">+# under /usr/share/dpkg/ to here if they are useful.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# See FEATURE AREAS/ENVIRONMENT in dpkg-buildflags(1)</span><br><span style="color: hsl(120, 100%, 40%);">+# Apply all hardening options</span><br><span style="color: hsl(120, 100%, 40%);">+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all</span><br><span style="color: hsl(120, 100%, 40%);">+# Package maintainers to append CFLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic</span><br><span style="color: hsl(120, 100%, 40%);">+# Package maintainers to append LDFLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# With debhelper version 9 or newer, the dh command exports</span><br><span style="color: hsl(120, 100%, 40%);">+# all buildflags.  So there is no need to include the</span><br><span style="color: hsl(120, 100%, 40%);">+# /usr/share/dpkg/buildflags.mk file here if compat is 9 or newer.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# These are rarely used code. (START)</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# The following include for *.mk magically sets miscellaneous</span><br><span style="color: hsl(120, 100%, 40%);">+# variables while honoring existing values of pertinent</span><br><span style="color: hsl(120, 100%, 40%);">+# environment variables:</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Architecture-related variables such as DEB_TARGET_MULTIARCH:</span><br><span style="color: hsl(120, 100%, 40%);">+#include /usr/share/dpkg/architecture.mk</span><br><span style="color: hsl(120, 100%, 40%);">+# Vendor-related variables such as DEB_VENDOR:</span><br><span style="color: hsl(120, 100%, 40%);">+#include /usr/share/dpkg/vendor.mk</span><br><span style="color: hsl(120, 100%, 40%);">+# Package-related variables such as DEB_DISTRIBUTION</span><br><span style="color: hsl(120, 100%, 40%);">+#include /usr/share/dpkg/pkg-info.mk</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# You may alternatively set them susing a simple script such as:</span><br><span style="color: hsl(120, 100%, 40%);">+# DEB_VENDOR ?= $(shell dpkg-vendor --query  Vendor)</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# These are rarely used code. (END)</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# main packaging script based on dh7 syntax</span><br><span style="color: hsl(120, 100%, 40%);">+%:</span><br><span style="color: hsl(120, 100%, 40%);">+     dh $@ --with autoreconf</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg</span><br><span style="color: hsl(120, 100%, 40%);">+override_dh_strip:</span><br><span style="color: hsl(120, 100%, 40%);">+       dh_strip --dbg-package=osmo-sysmon-dbg</span><br><span>diff --git a/debian/source/format b/debian/source/format</span><br><span>new file mode 100644</span><br><span>index 0000000..89ae9db</span><br><span>--- /dev/null</span><br><span>+++ b/debian/source/format</span><br><span>@@ -0,0 +1 @@</span><br><span style="color: hsl(120, 100%, 40%);">+3.0 (native)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13328">change 13328</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13328"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sysmon </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2bcacca040364f77aa6b17edf53acf53c820c17b </div>
<div style="display:none"> Gerrit-Change-Number: 13328 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>