debian: Initial packaging of the osmo-sip-connector

It installs a service file but requires a user to create a config
file. We will not provide a sysv start script.
This commit is contained in:
Holger Hans Peter Freyther 2016-03-31 19:04:14 +02:00
parent 2a7cfb5c93
commit adc7484a0c
7 changed files with 61 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
osmo-sip-connector (1) UNRELEASED; urgency=medium
* Initial release.
-- Holger Hans Peter Freyther <holger@moiji-mobile.com> Thu, 31 Mar 2016 18:33:30 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
7

23
debian/control vendored Normal file
View File

@ -0,0 +1,23 @@
Source: osmo-sip-connector
Section: net
Priority: optional
Maintainer: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Build-Depends: debhelper (>= 7.0.0~), autotools-dev, pkg-config, libosmocore-dev, libsofia-sip-ua-glib-dev, libsofia-sip-ua-dev, dh-systemd (>= 1.5)
Standards-Version: 3.8.4
Homepage: http://openbsc.osmocom.org/
Vcs-Git: git://bs11-abis.gnumonks.org/openbsc.git
Vcs-Browser: http://openbsc.osmocom.org/trac/browser
Package: osmo-sip-connector
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: MNCC to SIP bridge for osmo-nitb
Use the osmo-nitb MNCC interface and bridge it to SIP.
Package: osmo-sip-connector-dbg
Architecture: any
Section: debug
Priority: extra
Depends: osmo-sip-connector (= ${binary:Version}), ${misc:Depends}
Description: Debug symbols for the osmo-sip-connector
Make debugging possible

1
debian/osmo-sip-connector.install vendored Normal file
View File

@ -0,0 +1 @@
usr/bin/osmo-sip-connector

11
debian/osmo-sip-connector.service vendored Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Osmocom osmo-sip-connector
[Service]
Type=simple
ExecStart=/usr/bin/osmo-sip-connector -c /etc/osmocom/osmo-sip-connector.cfg
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target

19
debian/rules vendored Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/make -f
DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
#export DH_VERBOSE=1
export DEB_BUILD_HARDENING=1
%:
dh $@ --with=systemd --with autoreconf --fail-missing
override_dh_strip:
dh_strip --dbg-package=osmo-sip-connector-dbg
override_dh_autoreconf:
echo $(VERSION) > .tarball-version
dh_autoreconf

1
debian/source/format vendored Normal file
View File

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