From e9d37db7f23076571e2ac8fdbeae64158063acac Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 13 Mar 2017 16:08:11 +0100 Subject: [PATCH] Add .deb packaging Add initial metadata for .deb packages. Change-Id: Ied02e445236410de51488fbb5aaea3170d02a31d Related: OS#1948 --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 35 +++++++++++++++++++++++++++++++++++ debian/copyright | 21 +++++++++++++++++++++ debian/osmo-hlr.install | 1 + debian/rules | 12 ++++++++++++ debian/source/format | 1 + 7 files changed, 76 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/osmo-hlr.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..97069267 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +osmo-hlr (0.0.1) UNRELEASED; urgency=low + + * Initial release (Closes: OS#1948) + + -- Max Suraev Mon, 13 Mar 2017 16:26:41 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..de7c5e59 --- /dev/null +++ b/debian/control @@ -0,0 +1,35 @@ +Source: osmo-hlr +Section: net +Priority: optional +Maintainer: Max Suraev +Build-Depends: debhelper (>= 9), + pkg-config, + dh-autoreconf, + dh-systemd (>= 1.5), + autotools-dev, + pkg-config, + libosmocore-dev, + libosmo-abis-dev, + libosmo-netif-dev, + libdbd-sqlite3, + libsqlite3-dev, + hardening-wrapper +Standards-Version: 3.9.6 +Vcs-Browser: http://cgit.osmocom.org/osmo-hlr +Vcs-Git: git://git.osmocom.org/osmo-hlr +Homepage: https://projects.osmocom.org/projects/osmo-hlr + +Package: osmo-hlr +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libdbd-sqlite3 +Description: Osmocom Home Location Register + OsmoHLR is a Osmocom implementation of HLR (Home Location Registrar) which works over GSUP + protocol. The subscribers are store in sqlite DB. It supports both 2G and 3G authentication. + +Package: osmo-hlr-dbg +Architecture: any +Section: debug +Priority: extra +Depends: osmo-hlr (= ${binary:Version}), ${misc:Depends} +Description: Debug symbols for the osmo-hlr + Make debugging possible diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..c0e2b452 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: OsmoHLR +Source: http://cgit.osmocom.org/osmo-hlr/ + +Files: * +Copyright: 2016-2017 Sysmocom s. f. m. c. GmbH +License: AGPL-3+ + +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 Affero 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 . diff --git a/debian/osmo-hlr.install b/debian/osmo-hlr.install new file mode 100644 index 00000000..028b9b37 --- /dev/null +++ b/debian/osmo-hlr.install @@ -0,0 +1 @@ +/usr/bin/osmo-hlr diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..8797d5a0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ --with autoreconf + +override_dh_shlibdeps: + dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info + +override_dh_strip: + dh_strip --dbg-package=osmo-hlr-dbg diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..9f674278 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) \ No newline at end of file