blob: 7056cc41968c1b05b9caa88287dc7292c01e62c2 [file] [log] [blame]
DESCRIPTION = "Osmo SIP Connector"
HOMEPAGE = "https://osmocom.org/projects/osmo-sip-conector"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=ccdfc45f78d625db70e70ede679d5ce3"
DEPENDS = "sofia-sip libosmocore"
INC_PR="r3.${META_TELEPHONY_OSMO_INC}"
inherit autotools pkgconfig systemd
PACKAGECONFIG ??= "\
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
"
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
do_install_append() {
# StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340):
sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
# Run as root (OS#5684):
sed -i '/^User=/d' "${D}${systemd_system_unitdir}/${PN}.service"
sed -i '/^Group=/d' "${D}${systemd_system_unitdir}/${PN}.service"
}
SYSTEMD_SERVICE_${PN} = "${PN}.service"
CONFFILES_osmo-sip-connector = "${sysconfdir}/osmocom/osmo-sip-connector.cfg"