blob: aff20fa3021f01d38587fc588ee5f7893c0ebc0b [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
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +01008INC_PR="r1.${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 +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}
22
Oliver Smithef066732021-02-09 11:47:52 +010023SYSTEMD_SERVICE_osmo-gbproxy = "osmo-gbproxy.service"
24
25CONFFILES_osmo-gbproxy = "${sysconfdir}/osmocom/osmo-gbproxy.cfg"