blob: 7aabf20b7bceea65d80e054f4710a5fc67660572 [file] [log] [blame]
Pau Espin Pedrola0862392018-02-16 17:38:33 +01001DESCRIPTION = "Osmo SIP Connector"
2HOMEPAGE = "https://osmocom.org/projects/osmo-sip-conector"
3LICENSE = "AGPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=ccdfc45f78d625db70e70ede679d5ce3"
5
6DEPENDS = "sofia-sip libosmocore"
7
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +01008INC_PR="r2.${META_TELEPHONY_OSMO_INC}"
Pau Espin Pedrola0862392018-02-16 17:38:33 +01009
10inherit autotools pkgconfig systemd
11
Pau Espin Pedrole1ad7042018-09-14 14:47:08 +020012PACKAGECONFIG ??= "\
13 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
14 "
15PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
Pau Espin Pedrola0862392018-02-16 17:38:33 +010016
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010017# StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340):
18do_install_append() {
19 sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
20 sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
21}
Pau Espin Pedrola0862392018-02-16 17:38:33 +010022
Pau Espin Pedrola0862392018-02-16 17:38:33 +010023SYSTEMD_SERVICE_${PN} = "${PN}.service"
24CONFFILES_osmo-sip-connector = "${sysconfdir}/osmocom/osmo-sip-connector.cfg"