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.
changes/26/126/1
Holger Hans Peter Freyther 7 years ago
parent 2a7cfb5c93
commit adc7484a0c
  1. 5
      debian/changelog
  2. 1
      debian/compat
  3. 23
      debian/control
  4. 1
      debian/osmo-sip-connector.install
  5. 11
      debian/osmo-sip-connector.service
  6. 19
      debian/rules
  7. 1
      debian/source/format

5
debian/changelog vendored

@ -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

@ -0,0 +1 @@
7

23
debian/control vendored

@ -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

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

@ -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

@ -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

@ -0,0 +1 @@
3.0 (native)
Loading…
Cancel
Save