[PATCH] libosmo-netif[master]: Integrate Debian packaging changes

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/.

Max gerrit-no-reply at lists.osmocom.org
Wed Dec 21 13:37:41 UTC 2016


Review at  https://gerrit.osmocom.org/1473

Integrate Debian packaging changes

debian/control:
* restructure to make it easier to incorporate further changes
* update package descriptions
* update project URL

debian/rules:
* use proper hardening syntax
* restructure to make it easier to incorporate further changes
* add cleanup override

debian/coryright: add file matching Debian format

Change-Id: I9174b34a79c0562ef43f757ea76d67301088f109
Related: OS#1694
---
M debian/control
A debian/copyright
M debian/rules
3 files changed, 93 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/73/1473/1

diff --git a/debian/control b/debian/control
index 3953414..f499728 100644
--- a/debian/control
+++ b/debian/control
@@ -2,24 +2,50 @@
 Section: libs
 Priority: optional
 Maintainer: Holger Hans Peter Freyther <holger at moiji-mobile.com>
-Build-Depends: debhelper (>= 9), autotools-dev, autoconf, automake, libtool, dh-autoreconf, libdpkg-perl, git, libosmocore-dev, libosmo-abis-dev, pkg-config, libsctp-dev
+Build-Depends: debhelper (>= 9),
+               autotools-dev,
+               autoconf,
+               automake,
+               libtool,
+               dh-autoreconf,
+               libdpkg-perl,
+               git,
+               libosmocore-dev,
+               libosmo-abis-dev,
+               pkg-config,
+               libsctp-dev,
+               libortp-dev
 Standards-Version: 3.9.6
-Vcs-Git: git://git.osmocom.org/libosmo-netif.git
 Vcs-Browser: http://git.osmocom.org/gitweb?p=libosmo-netif.git;a=summary
+Vcs-Git: git://git.osmocom.org/libosmo-netif.git
+Homepage: https://projects.osmocom.org/projects/libosmo-netif
 
 Package: libosmonetif2
 Section: libs
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Multi-Arch: same
-Description: Library containing common/shared code regarding network interface
+Description: Common/shared code regarding network interface for OpenBSC
+ The libosmo-netif library is one of the libraries needed by the
+ OpenBSC GSM infrastructure software. This library in particular implements
+ the shared code for network interfaces.
 
 Package: libosmo-netif-dev
 Section: libdevel
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libosmocore, libosmonetif2 (= ${binary:Version})
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         libosmocore-dev,
+         libosmocore,
+         libosmonetif3 (= ${binary:Version})
 Multi-Arch: same
 Description: Development headers for Osmocom network interface
+ The libosmo-netif library is one of the libraries needed by the
+ OpenBSC GSM infrastructure software. This library in particular implements
+ the shared code for network interfaces.
+ .
+ This package contains the development files needed for developing with
+ the libosmo-netif library.
 
 Package: libosmo-netif-dbg
 Section: debug
@@ -27,4 +53,9 @@
 Priority: extra
 Depends: libosmonetif2 (= ${binary:Version}), ${misc:Depends}
 Multi-Arch: same
-Description: Debug symbols for Osmocom network interface
+Description: Debug symbols for Osmocom network interface library
+ The libosmo-netif library is one of the libraries needed by the
+ OpenBSC GSM infrastructure software. This library in particular implements
+ the shared code for network interfaces.
+ .
+ This package contains the debug symbols for the library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1c1eb91
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,51 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libosmocore
+Source: git://git.osmocom.org/libosmo-netif.git
+
+Files: *
+Copyright: 2012-2013 On-Waves
+           2012-2013 Pablo Neira Ayuso <pablo at gnumonks.org>
+License: GPL-2+
+
+Files: src/rs232.c 
+Copyright: 2008-2011 Harald Welte <laforge at gnumonks.org>
+                     Pablo Neira Ayuso <pablo at gnumonks.org>
+License: AGPL-3+
+
+Files: debian/*
+Copyright: 2013-2015 Holger Hans Peter Freyther <holger at moiji-mobile.com>
+           2015 Ruben Undheim <ruben.undheim at gmail.com>
+License: GPL-2+
+
+
+License: GPL-2+
+ This package 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, 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, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+
+License: AGPL-3+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Affero 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 Affero General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
diff --git a/debian/rules b/debian/rules
index a4ddfaa..f398831 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,9 @@
 DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
 VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
 #export DH_VERBOSE=1
-export DEB_BUILD_HARDENING=1
 
 
 %:
@@ -21,3 +22,7 @@
 override_dh_install:
 	dh_install
 	sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'`
+
+override_dh_clean:
+	dh_clean
+	rm -f tests/package.m4 tests/testsuite .version .tarball-version

-- 
To view, visit https://gerrit.osmocom.org/1473
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9174b34a79c0562ef43f757ea76d67301088f109
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list