blob: 7056cc41968c1b05b9caa88287dc7292c01e62c2 [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
Oliver Smithc9f254d2024-04-19 15:56:59 +02008INC_PR="r3.${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 +010017do_install_append() {
Oliver Smithc9f254d2024-04-19 15:56:59 +020018 # StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340):
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010019 sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
20 sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
Oliver Smithc9f254d2024-04-19 15:56:59 +020021
22 # Run as root (OS#5684):
23 sed -i '/^User=/d' "${D}${systemd_system_unitdir}/${PN}.service"
24 sed -i '/^Group=/d' "${D}${systemd_system_unitdir}/${PN}.service"
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010025}
Pau Espin Pedrola0862392018-02-16 17:38:33 +010026
Pau Espin Pedrola0862392018-02-16 17:38:33 +010027SYSTEMD_SERVICE_${PN} = "${PN}.service"
28CONFFILES_osmo-sip-connector = "${sysconfdir}/osmocom/osmo-sip-connector.cfg"