Compare commits

...

4 Commits

Author SHA1 Message Date
Pau Espin a87de11387 osmo-bts: systemd service name changed
Systemd service name changed upstream from sysmobts to osmo-bts-sysmo.
2017-04-06 00:28:48 +02:00
Pau Espin a69a9e6a8e osmo-bts: clean systemd service install
Simplfies the recipe, preparation to change systemd service name from upsream.
2017-04-04 18:12:01 +02:00
Pau Espin f8073e70f0 osmo-pcu: systemd service name changed
Systemd service name changed upstream from sysmopcu to osmo-pcu.
systemd.bbclass should handle it automatically now.
2017-04-04 18:09:25 +02:00
Pau Espin 87f3fb188d osmo-pcu: clean systemd service install
Simplfies the recipe, preparation to change systemd service name from
upsream.
2017-04-04 18:07:43 +02:00
2 changed files with 9 additions and 18 deletions

View File

@ -17,8 +17,9 @@ RCONFLICTS_${PN} = "sysmobts-firmware (< 5.1)"
EXTRA_OECONF += "--enable-sysmocom-bts"
inherit autotools update-rc.d pkgconfig
inherit autotools update-rc.d pkgconfig systemd
SYSTEMD_SERVICE_${PN} = "osmo-bts-sysmo.service"
# Select the API version
inherit femtobts_api
@ -42,15 +43,9 @@ do_install_append() {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${S}/contrib/sysmobts.init ${D}${sysconfdir}/init.d/sysmobts
# Install systemd and enable on sysinit
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
install -m 0644 ${S}/contrib/sysmobts.service ${D}${systemd_unitdir}/system/
ln -sf ../sysmobts.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
# Future sysmobts-mgr handling
install -m 0660 ${S}/doc/examples/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom
install -m 0644 ${S}/contrib/sysmobts-mgr.service ${D}${systemd_unitdir}/system/
ln -sf ../sysmobts-mgr.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
}
do_install_append_sysmobts-v2() {
@ -65,7 +60,6 @@ INITSCRIPT_PARAMS_${PN} = "defaults 30 30"
PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util"
FILES_${PN} += "${systemd_unitdir}"
FILES_osmo-bts-remote = " ${bindir}/sysmobts-remote "
FILES_sysmobts-calib = " ${bindir}/sysmobts-calib "
FILES_sysmobts-util = " ${bindir}/sysmobts-util "

View File

@ -15,17 +15,14 @@ RDEPENDS_${PN} = "osmo-bts (>= 0.4.0)"
EXTRA_OECONF_sysmobts-v2 += "--enable-sysmocom-bts --enable-sysmocom-dsp"
inherit autotools pkgconfig
inherit autotools pkgconfig systemd
# 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}"