Add debian packaging content

Change-Id: I2bcacca040364f77aa6b17edf53acf53c820c17b
This commit is contained in:
Pau Espin 2019-03-19 18:10:55 +01:00
parent 9342f1c574
commit 814882bf5e
7 changed files with 183 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
osmo-sysmon (0.0.1) unstable; urgency=medium
* Initial release.
-- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 19 Mar 2019 18:32:14 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

47
debian/control vendored Normal file
View File

@ -0,0 +1,47 @@
Source: osmo-sysmon
Section: net
Priority: extra
Maintainer: Pau Espin Pedrol <pespin@sysmocom.de>
Build-Depends: debhelper (>=9),
dh-autoreconf,
autotools-dev,
autoconf,
automake,
libtool,
pkg-config,
libtalloc-dev,
liboping-dev (>= 1.9.0),
libosmocore-dev (>= 1.0.1),
libosmo-netif-dev (>= 0.4.0),
Standards-Version: 3.9.8
Vcs-Git: git://git.osmocom.org/osmo-sysmon.git
Vcs-Browser: https://git.osmocom.org/osmo-sysmon/
Homepage: https://osmocom.org/
Package: osmo-sysmon
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Simple Osmocom System Monitor (osysmon)
This application prints on screen once per second relevant information about
the status of the system. Information being printed can be specified through
configuration file (and VTY).
.
Useful to run as a login shell to provide users with some diagnose system
without providing full access the system.
Package: osmo-sysmon-dbg
Section: debug
Architecture: any
Multi-Arch: same
Depends: osmo-sysmon (= ${binary:Version}), ${misc:Depends}
Description: Simple Osmocom System Monitor (osysmon)
This application prints on screen once per second relevant information about
the status of the system. Information being printed can be specified through
configuration file (and VTY).
.
Useful to run as a login shell to provide users with some diagnose system
without providing full access the system.
.
This package contains the debug symbols for osmo-sysmon in order to
generate meaningful backtraces in bug-reports.

77
debian/copyright vendored Normal file
View File

@ -0,0 +1,77 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: osmo-sysmon
Source: git://git.osmocom.org/osmo-sysmon
Files: *
Copyright: 2019 sysmocom s.f.m.c. GmbH <info@sysmocom.de>
License: GPL-2.0+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
.
On Debian systems, the complete text of the GNU General Public License
Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
Files: git-version-gen
Copyright: 2007-2010 Free Software Foundation, Inc.
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
This script is derived from GIT-VERSION-GEN from GIT: http://git.or.cz/.
It may be run two ways:
- from a git repository in which the "git describe" command below
produces useful output (thus requiring at least one signed tag)
- from a non-git-repo directory containing a .tarball-version file, which
presumes this script is invoked like "./git-version-gen .tarball-version".
.
In order to use intra-version strings in your project, you will need two
separate generated version string files:
.
.tarball-version - present only in a distribution tarball, and not in
a checked-out repository. Created with contents that were learned at
the last time autoconf was run, and used by git-version-gen. Must not
be present in either $(srcdir) or $(builddir) for git-version-gen to
give accurate answers during normal development with a checked out tree,
but must be present in a tarball when there is no version control system.
Therefore, it cannot be used in any dependencies. GNUmakefile has
hooks to force a reconfigure at distribution time to get the value
correct, without penalizing normal development with extra reconfigures.
.
.version - present in a checked-out repository and in a distribution
tarball. Usable in dependencies, particularly for files that don't
want to depend on config.h but do want to track version changes.
Delete this file prior to any autoconf run where you want to rebuild
files to pick up a version string change; and leave it stale to
minimize rebuild time after unrelated changes to configure sources.
.
It is probably wise to add these two files to .gitignore, so that you
don't accidentally commit either generated file.
.
Use the following line in your configure.ac, so that $(VERSION) will
automatically be up-to-date each time configure is run (and note that
since configure.ac no longer includes a version string, Makefile rules
should not depend on configure.ac for version updates).
.
On Debian systems, the complete text of the GNU General Public License
Version 3 can be found in `/usr/share/common-licenses/GPL-3'.

3
debian/osmo-sysmon.install vendored Normal file
View File

@ -0,0 +1,3 @@
etc/osmocom/osmo-sysmon.cfg
usr/bin/osmo-sysmon
usr/share/doc/osmo-sysmon/examples/osmo-sysmon/osmo-sysmon.cfg usr/share/doc/osmo-sysmon/examples

49
debian/rules vendored Executable file
View File

@ -0,0 +1,49 @@
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
# See debhelper(7) (uncomment to enable)
# This is an autogenerated template for debian/rules.
#
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1
#
# Copy some variable definitions from pkg-info.mk and vendor.mk
# under /usr/share/dpkg/ to here if they are useful.
#
# See FEATURE AREAS/ENVIRONMENT in dpkg-buildflags(1)
# Apply all hardening options
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# Package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
#
# With debhelper version 9 or newer, the dh command exports
# all buildflags. So there is no need to include the
# /usr/share/dpkg/buildflags.mk file here if compat is 9 or newer.
#
# These are rarely used code. (START)
#
# The following include for *.mk magically sets miscellaneous
# variables while honoring existing values of pertinent
# environment variables:
#
# Architecture-related variables such as DEB_TARGET_MULTIARCH:
#include /usr/share/dpkg/architecture.mk
# Vendor-related variables such as DEB_VENDOR:
#include /usr/share/dpkg/vendor.mk
# Package-related variables such as DEB_DISTRIBUTION
#include /usr/share/dpkg/pkg-info.mk
#
# You may alternatively set them susing a simple script such as:
# DEB_VENDOR ?= $(shell dpkg-vendor --query Vendor)
#
# These are rarely used code. (END)
#
# main packaging script based on dh7 syntax
%:
dh $@ --with autoreconf
# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg
override_dh_strip:
dh_strip --dbg-package=osmo-sysmon-dbg

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)