From 97ba4062f892f349bc9695420bcd3e269b5747a7 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 10 Sep 2018 12:40:56 +0200 Subject: Install systemd services with autotools Change-Id: I103bf3468d53578045593eac31b61f7e0248495e --- debian/control | 1 + debian/osmo-gbproxy.install | 1 + debian/osmo-gbproxy.service | 1 - debian/osmo-gtphub.install | 1 + debian/osmo-gtphub.service | 1 - debian/osmo-sgsn.install | 1 + debian/osmo-sgsn.service | 1 - debian/rules | 2 +- 8 files changed, 5 insertions(+), 4 deletions(-) delete mode 120000 debian/osmo-gbproxy.service delete mode 120000 debian/osmo-gtphub.service delete mode 120000 debian/osmo-sgsn.service (limited to 'debian') 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 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) # -- cgit v1.2.3