blob: 6c87dda9f648e352f534c3482d142cd40be9e166 [file] [log] [blame]
DESCRIPTION = "Osmocom's Gb interface aggregation/conversion proxy"
HOMEPAGE = "https://osmocom.org/projects/osmo-gbproxy"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
DEPENDS = "libosmocore"
INC_PR="r2.${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_osmo-gbproxy = "osmo-gbproxy.service"
CONFFILES_osmo-gbproxy = "${sysconfdir}/osmocom/osmo-gbproxy.cfg"