blob: c83ce1272b499bad018da38842f25603a51dcf3e [file] [log] [blame]
Pau Espin Pedrol5867b922022-01-07 13:20:54 +01001DESCRIPTION = "Osmocom HNB-GW implementation"
2HOMEPAGE = "https://osmocom.org/projects/osmohnbgw"
3LICENSE = "AGPLv3"
4LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
5
Oliver Smith400e3582022-02-25 10:07:53 +01006DEPENDS = "libosmocore libosmo-netif libosmo-sccp osmo-iuh libasn1c lksctp-tools osmo-mgw"
Pau Espin Pedrol5867b922022-01-07 13:20:54 +01007
Oliver Smithc9f254d2024-04-19 15:56:59 +02008INC_PR="r2.${META_TELEPHONY_OSMO_INC}"
Pau Espin Pedrol5867b922022-01-07 13:20:54 +01009
10# Workaround to oe-core meta/site/* CONFIG_SITE files passed to autoconf forcing unavailability of netinet/sctp.h.
11# Patch fixing issue upstream: https://patchwork.openembedded.org/patch/168892/
12CACHED_CONFIGUREVARS += "ac_cv_header_netinet_sctp_h=yes"
13
14inherit autotools pkgconfig systemd
15
16PACKAGECONFIG ??= "\
17 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
18 "
19PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
20
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010021do_install_append() {
Oliver Smithc9f254d2024-04-19 15:56:59 +020022 # StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340):
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010023 sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
24 sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
Oliver Smithc9f254d2024-04-19 15:56:59 +020025
26 # Run as root (OS#5684):
27 sed -i '/^User=/d' "${D}${systemd_system_unitdir}/${PN}.service"
28 sed -i '/^Group=/d' "${D}${systemd_system_unitdir}/${PN}.service"
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010029}
30
Pau Espin Pedrol5867b922022-01-07 13:20:54 +010031SYSTEMD_SERVICE_${PN} = "${PN}.service"
32
33CONFFILES_osmo-hnbgw = "${sysconfdir}/osmocom/osmo-hnbgw.cfg"