blob: 6c87dda9f648e352f534c3482d142cd40be9e166 [file] [log] [blame]
Oliver Smithef066732021-02-09 11:47:52 +01001DESCRIPTION = "Osmocom's Gb interface aggregation/conversion proxy"
2HOMEPAGE = "https://osmocom.org/projects/osmo-gbproxy"
3LICENSE = "AGPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
5
6DEPENDS = "libosmocore"
7
Oliver Smithc9f254d2024-04-19 15:56:59 +02008INC_PR="r2.${META_TELEPHONY_OSMO_INC}"
Oliver Smithef066732021-02-09 11:47:52 +01009
10inherit autotools pkgconfig systemd
11
12PACKAGECONFIG ??= "\
13 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
14 "
15PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
16
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}
26
Oliver Smithef066732021-02-09 11:47:52 +010027SYSTEMD_SERVICE_osmo-gbproxy = "osmo-gbproxy.service"
28
29CONFFILES_osmo-gbproxy = "${sysconfdir}/osmocom/osmo-gbproxy.cfg"