blob: 34454b19f7584a656d0dd5710be7e8fcfb2c8a4d [file] [log] [blame]
Pau Espin Pedrol587f6ac2017-09-29 13:43:18 +02001DESCRIPTION = "An utility library for Open Source Mobile Communications"
Harald Welteec8c4f62016-06-23 21:22:13 +02002DEPENDS = "libosmocore libosmo-netif"
Pau Espin Pedrold7e9e0e2017-09-27 12:17:43 +02003HOMEPAGE = "https://osmocom.org/projects/libosmo-sccp"
Holger Hans Peter Freytherd24c97d2012-05-30 17:50:06 +08004LICENSE = "AGPLv3"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08005
Oliver Smithc9f254d2024-04-19 15:56:59 +02006INC_PR="r3.${META_TELEPHONY_OSMO_INC}"
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +08007
8LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
9
Pau Espin Pedrold7e9e0e2017-09-27 12:17:43 +020010inherit autotools pkgconfig systemd
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080011
Pau Espin Pedrol501f34e2018-09-14 13:28:34 +020012PACKAGECONFIG ??= "\
13 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
14 "
15PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
16
Pau Espin Pedrol745ab772018-05-06 22:59:37 +020017# we require the tests to link to the static libosmo-sigtran library to
18# access symbols not starting with osmo_*
19EXTRA_OECONF_remove = "--disable-static"
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}/osmo-stp.service"
24 sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/osmo-stp.service"
Oliver Smithc9f254d2024-04-19 15:56:59 +020025
26 # Run as root (OS#5684):
27 sed -i '/^User=/d' "${D}${systemd_system_unitdir}/osmo-stp.service"
28 sed -i '/^Group=/d' "${D}${systemd_system_unitdir}/osmo-stp.service"
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +010029}
30
Pau Espin Pedrol745ab772018-05-06 22:59:37 +020031PACKAGES =+ "osmo-stp"
32SYSTEMD_PACKAGES = "osmo-stp"
33SYSTEMD_SERVICE_osmo-stp = "osmo-stp.service"
34
Pau Espin Pedrol745ab772018-05-06 22:59:37 +020035FILES_osmo-stp = " \
36 ${bindir}/osmo-stp \
37 ${sysconfdir}/osmocom/osmo-stp.cfg \
38 "
39CONFFILES_osmo-stp = "${sysconfdir}/osmocom/osmo-stp.cfg"
40
Holger Hans Peter Freyther60ee4cd2011-11-11 21:26:06 +080041ALLOW_EMPTY_libosmo-sccp = "1"