From 87f3fb188d4d54f4dac90d9a7c73485dbd5d8bc9 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 4 Apr 2017 18:07:40 +0200 Subject: [PATCH] osmo-pcu: clean systemd service install Simplfies the recipe, preparation to change systemd service name from upsream. --- recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb b/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb index b805e92..dca05f9 100644 --- a/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb +++ b/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb @@ -15,17 +15,16 @@ RDEPENDS_${PN} = "osmo-bts (>= 0.4.0)" EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmocom-dsp" -inherit autotools pkgconfig +inherit autotools pkgconfig systemd + +SYSTEMD_SERVICE_${PN} = "sysmopcu.service" # Select the API version inherit femtobts_api CPPFLAGS += " ${BTS_HW_VERSION} " do_install_append() { - # Install systemd and enable on sysinit - install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/ - install -m 0644 ${S}/contrib/sysmopcu.service ${D}${systemd_unitdir}/system/ - ln -sf ../sysmopcu.service ${D}${systemd_unitdir}/system/multi-user.target.wants/ + # Install systemd services (enabled by default) + install -d ${D}/${systemd_unitdir}/system + install -m 644 ${S}/contrib/*.service ${D}/${systemd_unitdir}/system } - -FILES_${PN} += "${systemd_unitdir}"