aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-01 16:46:42 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-01 17:01:54 +0200
commit460e1b7387ded53bd2ba320d3108196dc7100d40 (patch)
tree209fc698d2c277c6142484268bae920ea86d227a
parent21fc6e45fbe201dcc6c066a006cef899e931064a (diff)
debian: Create initial packaging for the osmo-bts-trx
This is only with osmo-bts-trx as others require headers that are not packaged yet.
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control24
-rw-r--r--debian/osmo-bts-trx.install1
-rw-r--r--debian/osmo-bts-trx.service15
-rwxr-xr-xdebian/rules22
-rw-r--r--debian/source/format1
7 files changed, 69 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 00000000..5c2d203c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+osmo-bts (0.5.0) UNRELEASED; urgency=medium
+
+ * Initial release.
+
+ -- Holger Hans Peter Freyther <holger@moiji-mobile.com> Fri, 01 Apr 2016 16:13:40 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 00000000..7f8f011e
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..d067e317
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: osmo-bts
+Section: net
+Priority: optional
+Maintainer: Holger Hans Peter Freyther <holger@moiji-mobile.com>
+Build-Depends: debhelper (>= 7.0.0~), dh-autoreconf, dh-systemd (>= 1.5), autotools-dev, pkg-config, libosmocore-dev, libortp-dev, libosmo-abis-dev, libosmo-netif-dev
+Standards-Version: 3.8.4
+Homepage: http://osmocom.org/projects/osmobts
+Vcs-Git: git://git.osmocom.org/osmo-bts
+Vcs-Browser: http://git.osmocom.org/osmo-bts/
+
+Package: osmo-bts-trx
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: osmo-bts-trx GSM BTS with osmo-trx
+ osmo-bts-trx to be used with the osmo-trx application
+
+Package: osmo-bts-trx-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: osmo-bts-trx (= ${binary:Version}), ${misc:Depends}
+Description: Debug symbols for the osmo-bts-trx
+ Make debugging possible
+
diff --git a/debian/osmo-bts-trx.install b/debian/osmo-bts-trx.install
new file mode 100644
index 00000000..92d524c9
--- /dev/null
+++ b/debian/osmo-bts-trx.install
@@ -0,0 +1 @@
+usr/bin/osmo-bts-trx
diff --git a/debian/osmo-bts-trx.service b/debian/osmo-bts-trx.service
new file mode 100644
index 00000000..cea8719c
--- /dev/null
+++ b/debian/osmo-bts-trx.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Osmocom osmo-bts for osmo-trx
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/osmo-bts-trx -s -c /etc/osmocom/osmo-bts.cfg
+Restart=always
+RestartSec=2
+
+# Let it process messages quickly enough
+CPUSchedulingPolicy=rr
+CPUSchedulingPriority=1
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..f7f941b3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/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-bts-trx-dbg
+
+override_dh_autoreconf:
+ echo $(VERSION) > .tarball-version
+ dh_autoreconf
+
+override_dh_auto_configure:
+ dh_auto_configure -- --enable-trx
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 00000000..89ae9db8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)