blob: 6bf01d323d1bb29757a0a71455eee2975a6512ae [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
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +01008INC_PR="r1.${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() {
22 sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
23 sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/${PN}.service"
24}
25
Pau Espin Pedrol5867b922022-01-07 13:20:54 +010026SYSTEMD_SERVICE_${PN} = "${PN}.service"
27
28CONFFILES_osmo-hnbgw = "${sysconfdir}/osmocom/osmo-hnbgw.cfg"