Pau Espin Pedrol | a086239 | 2018-02-16 17:38:33 +0100 | [diff] [blame] | 1 | DESCRIPTION = "Osmo SIP Connector" |
| 2 | HOMEPAGE = "https://osmocom.org/projects/osmo-sip-conector" |
| 3 | LICENSE = "AGPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=ccdfc45f78d625db70e70ede679d5ce3" |
| 5 | |
| 6 | DEPENDS = "sofia-sip libosmocore" |
| 7 | |
Oliver Smith | c9f254d | 2024-04-19 15:56:59 +0200 | [diff] [blame^] | 8 | INC_PR="r3.${META_TELEPHONY_OSMO_INC}" |
Pau Espin Pedrol | a086239 | 2018-02-16 17:38:33 +0100 | [diff] [blame] | 9 | |
| 10 | inherit autotools pkgconfig systemd |
| 11 | |
Pau Espin Pedrol | e1ad704 | 2018-09-14 14:47:08 +0200 | [diff] [blame] | 12 | PACKAGECONFIG ??= "\ |
| 13 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
| 14 | " |
| 15 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir" |
Pau Espin Pedrol | a086239 | 2018-02-16 17:38:33 +0100 | [diff] [blame] | 16 | |
Pau Espin Pedrol | df5ac43 | 2023-02-17 14:57:14 +0100 | [diff] [blame] | 17 | do_install_append() { |
Oliver Smith | c9f254d | 2024-04-19 15:56:59 +0200 | [diff] [blame^] | 18 | # StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340): |
Pau Espin Pedrol | df5ac43 | 2023-02-17 14:57:14 +0100 | [diff] [blame] | 19 | sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service" |
| 20 | sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service" |
Oliver Smith | c9f254d | 2024-04-19 15:56:59 +0200 | [diff] [blame^] | 21 | |
| 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 Pedrol | df5ac43 | 2023-02-17 14:57:14 +0100 | [diff] [blame] | 25 | } |
Pau Espin Pedrol | a086239 | 2018-02-16 17:38:33 +0100 | [diff] [blame] | 26 | |
Pau Espin Pedrol | a086239 | 2018-02-16 17:38:33 +0100 | [diff] [blame] | 27 | SYSTEMD_SERVICE_${PN} = "${PN}.service" |
| 28 | CONFFILES_osmo-sip-connector = "${sysconfdir}/osmocom/osmo-sip-connector.cfg" |