diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-09-14 14:47:08 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-01-30 22:47:10 +0100 |
commit | e1ad70462d1d2230eedd9afb7bba5756f6fe57f3 (patch) | |
tree | cea03232f88e0b253f08f1cafaf1f0cc9784af52 | |
parent | 4e337d2fe73e09b9b402ec2310555da18627fda7 (diff) |
osmo-sip-connector: handle systemd and cfg files through autotools
Change-Id: I88fa636fdc97dbd1c8d13358fb48d157bd95c805
-rw-r--r-- | recipes-osmocom/osmo-sip-connector/osmo-sip-connector.inc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/recipes-osmocom/osmo-sip-connector/osmo-sip-connector.inc b/recipes-osmocom/osmo-sip-connector/osmo-sip-connector.inc index d7f22a3..96d3734 100644 --- a/recipes-osmocom/osmo-sip-connector/osmo-sip-connector.inc +++ b/recipes-osmocom/osmo-sip-connector/osmo-sip-connector.inc @@ -5,17 +5,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ccdfc45f78d625db70e70ede679d5ce3" DEPENDS = "sofia-sip libosmocore" -INC_PR="r0.${META_TELEPHONY_OSMO_INC}" +INC_PR="r1.${META_TELEPHONY_OSMO_INC}" inherit autotools pkgconfig systemd -do_install_append() { - install -d ${D}${systemd_system_unitdir}/ - install -d ${D}${sysconfdir}/osmocom/ +PACKAGECONFIG ??= "\ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + " +PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir" - install -m 0644 ${S}/doc/examples/osmo-sip-connector.cfg ${D}${sysconfdir}/osmocom/ - install -m 0644 ${S}/contrib/systemd/osmo-sip-connector.service ${D}${systemd_system_unitdir}/ -} SYSTEMD_SERVICE_${PN} = "${PN}.service" CONFFILES_osmo-sip-connector = "${sysconfdir}/osmocom/osmo-sip-connector.cfg" |