aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-09-10 12:40:56 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-09-13 11:52:30 +0200
commit97ba4062f892f349bc9695420bcd3e269b5747a7 (patch)
treecda3497a7ecf7dbf730a3821820d5e6fca87eac0 /debian
parente17ae024fa404c24ecd9c33c9397bd9ce98d6f95 (diff)
Install systemd services with autotools
Diffstat (limited to 'debian')
-rw-r--r--debian/control1
-rw-r--r--debian/osmo-gbproxy.install1
l---------debian/osmo-gbproxy.service1
-rw-r--r--debian/osmo-gtphub.install1
l---------debian/osmo-gtphub.service1
-rw-r--r--debian/osmo-sgsn.install1
l---------debian/osmo-sgsn.service1
-rwxr-xr-xdebian/rules2
8 files changed, 5 insertions, 4 deletions
diff --git a/debian/control b/debian/control
index 330945fc0..46a6b67cf 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: extra
Maintainer: Alexander Couzens <lynxis@fe80.eu>
Build-Depends: debhelper (>=9),
dh-autoreconf,
+ dh-systemd (>= 1.5),
autotools-dev,
autoconf,
automake,
diff --git a/debian/osmo-gbproxy.install b/debian/osmo-gbproxy.install
index 8272551d8..9c7fb77f9 100644
--- a/debian/osmo-gbproxy.install
+++ b/debian/osmo-gbproxy.install
@@ -1,3 +1,4 @@
+lib/systemd/system/osmo-gbproxy.service
usr/bin/osmo-gbproxy
usr/share/doc/osmo-sgsn/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg usr/share/doc/osmo-gbproxy/examples
usr/share/doc/osmo-sgsn/examples/osmo-gbproxy/osmo-gbproxy.cfg usr/share/doc/osmo-gbproxy/examples
diff --git a/debian/osmo-gbproxy.service b/debian/osmo-gbproxy.service
deleted file mode 120000
index d23c64920..000000000
--- a/debian/osmo-gbproxy.service
+++ /dev/null
@@ -1 +0,0 @@
-../contrib/systemd/osmo-gbproxy.service \ No newline at end of file
diff --git a/debian/osmo-gtphub.install b/debian/osmo-gtphub.install
index ed0bd1b75..568caaff2 100644
--- a/debian/osmo-gtphub.install
+++ b/debian/osmo-gtphub.install
@@ -1,3 +1,4 @@
+lib/systemd/system/osmo-gtphub.service
usr/bin/osmo-gtphub
usr/share/doc/osmo-sgsn/examples/osmo-gtphub/osmo-gtphub-1iface.cfg usr/share/doc/osmo-gtphub/examples
usr/share/doc/osmo-sgsn/examples/osmo-gtphub/osmo-gtphub.cfg usr/share/doc/osmo-gtphub/examples
diff --git a/debian/osmo-gtphub.service b/debian/osmo-gtphub.service
deleted file mode 120000
index 81a0eb473..000000000
--- a/debian/osmo-gtphub.service
+++ /dev/null
@@ -1 +0,0 @@
-../contrib/systemd/osmo-gtphub.service \ No newline at end of file
diff --git a/debian/osmo-sgsn.install b/debian/osmo-sgsn.install
index 9390deba5..9d603f9bc 100644
--- a/debian/osmo-sgsn.install
+++ b/debian/osmo-sgsn.install
@@ -1,3 +1,4 @@
+lib/systemd/system/osmo-sgsn.service
usr/bin/osmo-sgsn
usr/share/doc/osmo-sgsn/examples/osmo-sgsn/osmo-sgsn.cfg usr/share/doc/osmo-sgsn/examples
usr/share/doc/osmo-sgsn/examples/osmo-sgsn/osmo-sgsn-accept-all.cfg usr/share/doc/osmo-sgsn/examples
diff --git a/debian/osmo-sgsn.service b/debian/osmo-sgsn.service
deleted file mode 120000
index de22d9096..000000000
--- a/debian/osmo-sgsn.service
+++ /dev/null
@@ -1 +0,0 @@
-../contrib/systemd/osmo-sgsn.service \ No newline at end of file
diff --git a/debian/rules b/debian/rules
index fb31c5830..af6b5b6e4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -46,7 +46,7 @@
# debmake generated override targets
# Set options for ./configure
-CONFIGURE_FLAGS += --enable-iu
+CONFIGURE_FLAGS += --enable-iu --with-systemdsystemunitdir=/lib/systemd/system
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_FLAGS)
#