summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-31 19:04:14 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-31 19:12:56 +0200
commitadc7484a0c65caf01278759804535e4072e27fa2 (patch)
tree1da6b12c7fd771cee363ab470baaee06fd527903 /debian
parent2a7cfb5c93ed4ceb4f193d7cca037e894a4d5212 (diff)
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.
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control23
-rw-r--r--debian/osmo-sip-connector.install1
-rw-r--r--debian/osmo-sip-connector.service11
-rwxr-xr-xdebian/rules19
-rw-r--r--debian/source/format1
7 files changed, 61 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b72a761
--- /dev/null
+++ b/debian/changelog
@@ -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
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a0a6bad
--- /dev/null
+++ b/debian/control
@@ -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
diff --git a/debian/osmo-sip-connector.install b/debian/osmo-sip-connector.install
new file mode 100644
index 0000000..a16b95f
--- /dev/null
+++ b/debian/osmo-sip-connector.install
@@ -0,0 +1 @@
+usr/bin/osmo-sip-connector
diff --git a/debian/osmo-sip-connector.service b/debian/osmo-sip-connector.service
new file mode 100644
index 0000000..6694a17
--- /dev/null
+++ b/debian/osmo-sip-connector.service
@@ -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
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..48f53f5
--- /dev/null
+++ b/debian/rules
@@ -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
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)