summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-09-10 14:10:29 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-09-13 12:06:08 +0200
commit422492998660ba40d3d7986fd43e1d7aafa3774a (patch)
treede0be8bc7dd9a2afcdae65c9ffe7b0d9547233ed /debian
parentac1b03c8e59408336d07527e2597171cb99ed654 (diff)
Install systemd services with autotools
Diffstat (limited to 'debian')
-rw-r--r--debian/control1
-rw-r--r--debian/osmo-bsc-mgcp.install1
l---------debian/osmo-bsc-mgcp.service1
-rw-r--r--debian/osmocom-bsc-nat.install1
l---------debian/osmocom-bsc-nat.service1
-rw-r--r--debian/osmocom-bsc-sccplite.install2
l---------debian/osmocom-bsc-sccplite.service1
-rw-r--r--debian/osmocom-nitb.install3
l---------debian/osmocom-nitb.service1
-rwxr-xr-xdebian/rules4
10 files changed, 8 insertions, 8 deletions
diff --git a/debian/control b/debian/control
index 46a8ab505..0e9bb0cb4 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends: debhelper (>= 9),
libosmo-sccp-dev,
libdbi0-dev,
dh-autoreconf,
+ dh-systemd (>= 1.5),
libosmo-abis-dev,
libosmo-netif-dev,
libdbd-sqlite3,
diff --git a/debian/osmo-bsc-mgcp.install b/debian/osmo-bsc-mgcp.install
index 155043746..828fb31de 100644
--- a/debian/osmo-bsc-mgcp.install
+++ b/debian/osmo-bsc-mgcp.install
@@ -1 +1,2 @@
+lib/systemd/system/osmo-bsc-mgcp.service
usr/bin/osmo-bsc_mgcp
diff --git a/debian/osmo-bsc-mgcp.service b/debian/osmo-bsc-mgcp.service
deleted file mode 120000
index 0f8700b6b..000000000
--- a/debian/osmo-bsc-mgcp.service
+++ /dev/null
@@ -1 +0,0 @@
-../openbsc/contrib/systemd/osmo-bsc-mgcp.service \ No newline at end of file
diff --git a/debian/osmocom-bsc-nat.install b/debian/osmocom-bsc-nat.install
index b561a7e11..d6cabe23a 100644
--- a/debian/osmocom-bsc-nat.install
+++ b/debian/osmocom-bsc-nat.install
@@ -1 +1,2 @@
+/lib/systemd/system/osmo-bsc-nat.service
/usr/bin/osmo-bsc_nat
diff --git a/debian/osmocom-bsc-nat.service b/debian/osmocom-bsc-nat.service
deleted file mode 120000
index 0d5b3be2f..000000000
--- a/debian/osmocom-bsc-nat.service
+++ /dev/null
@@ -1 +0,0 @@
-../openbsc/contrib/systemd/osmo-bsc-nat.service \ No newline at end of file
diff --git a/debian/osmocom-bsc-sccplite.install b/debian/osmocom-bsc-sccplite.install
index 9ce795c1b..67c50cbca 100644
--- a/debian/osmocom-bsc-sccplite.install
+++ b/debian/osmocom-bsc-sccplite.install
@@ -1,2 +1,2 @@
-/usr/bin/osmo-bsc_mgcp
+/lib/systemd/system/osmo-bsc-sccplite.service
/usr/bin/osmo-bsc-sccplite
diff --git a/debian/osmocom-bsc-sccplite.service b/debian/osmocom-bsc-sccplite.service
deleted file mode 120000
index f30a9db70..000000000
--- a/debian/osmocom-bsc-sccplite.service
+++ /dev/null
@@ -1 +0,0 @@
-../openbsc/contrib/systemd/osmo-bsc-sccplite.service \ No newline at end of file
diff --git a/debian/osmocom-nitb.install b/debian/osmocom-nitb.install
index 26caf71f1..78e8f7712 100644
--- a/debian/osmocom-nitb.install
+++ b/debian/osmocom-nitb.install
@@ -1,2 +1,3 @@
+/lib/systemd/system/osmo-nitb.service
/usr/bin/osmo-nitb
-openbsc/contrib/*.py usr/bin/ \ No newline at end of file
+openbsc/contrib/*.py usr/bin/
diff --git a/debian/osmocom-nitb.service b/debian/osmocom-nitb.service
deleted file mode 120000
index eaecd9da1..000000000
--- a/debian/osmocom-nitb.service
+++ /dev/null
@@ -1 +0,0 @@
-../openbsc/contrib/systemd/osmo-nitb.service \ No newline at end of file
diff --git a/debian/rules b/debian/rules
index ef085960d..e37a26268 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
- dh $@ --sourcedirectory=openbsc --with autoreconf
+ dh $@ --sourcedirectory=openbsc --with=systemd --with autoreconf
# This is needed for debian stable (squeeze)
override_dh_autoreconf:
@@ -25,7 +25,7 @@ override_dh_strip:
override_dh_auto_configure:
echo $(VERSION) > openbsc/.tarball-version
- dh_auto_configure --sourcedirectory=openbsc -- --enable-nat --enable-osmo-bsc --enable-smpp
+ dh_auto_configure --sourcedirectory=openbsc -- --enable-nat --enable-osmo-bsc --enable-smpp --with-systemdsystemunitdir=/lib/systemd/system
# Print test results in case of a failure
override_dh_auto_test: