osmo-pcu: clean systemd service install

Simplfies the recipe, preparation to change systemd service name from
upsream.
This commit is contained in:
Pau Espin 2017-04-04 18:07:40 +02:00
parent 1b77777791
commit 87f3fb188d
1 changed files with 6 additions and 7 deletions

View File

@ -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}"