From 830229cdcfcc2cf891c64bfc3eb4d70cfd2c623a Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 14 Sep 2018 15:35:10 +0200 Subject: [PATCH] osmo-pcu: handle systemd and cfg files through autotools --- recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb b/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb index 8e8df18..fdee665 100644 --- a/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb +++ b/recipes-sysmobts/osmo-pcu/osmo-pcu_git.bb @@ -22,6 +22,11 @@ EXTRA_OECONF_sysmobts2100 += "--enable-lc15bts-phy" inherit autotools pkgconfig systemd +PACKAGECONFIG ??= "\ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + " +PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir" + SYSTEMD_PACKAGES = "${PN}" SYSTEMD_AUTO_ENABLE_${PN}="enable" SYSTEMD_SERVICE_${PN} = "osmo-pcu.service" @@ -30,10 +35,4 @@ SYSTEMD_SERVICE_${PN} = "osmo-pcu.service" inherit femtobts_api CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} " -do_install_append() { - # Install systemd and enable on sysinit - install -d ${D}/${systemd_system_unitdir} - install -m 0644 ${S}/contrib/osmo-pcu.service ${D}${systemd_system_unitdir}/ -} - CONFFILES_${PN} = "${sysconfdir}/osmocom/osmo-pcu.cfg"