blob: 3f39103d2d7f41f71ba6ab9999a48d9bba1300ac [file] [log] [blame]
Pau Espin Pedrol4b85e1a2017-07-21 13:37:18 +02001DESCRITOPN = "Osmocom PCAP client (probe) and server (aggregator)"
2HOMEPAGE = "https://osmocom.org/"
3LICENSE = "AGPLv3+"
4LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
5
6DEPENDS = "libosmocore zeromq libpcap gnutls"
7
Pau Espin Pedroldf5ac432023-02-17 14:57:14 +01008INC_PR="r1.${META_TELEPHONY_OSMO_INC}"
Pau Espin Pedrol4b85e1a2017-07-21 13:37:18 +02009
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}/osmo-pcap-server.service"
20 sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/osmo-pcap-server.service"
21 sed -i '/^StateDirectory=/d' "${D}${systemd_system_unitdir}/osmo-pcap-client.service"
22 sed -i '/^WorkingDirectory=/d' "${D}${systemd_system_unitdir}/osmo-pcap-client.service"
23}
24
Pau Espin Pedrol4b85e1a2017-07-21 13:37:18 +020025PACKAGES =+ "osmo-pcap-server osmo-pcap-client"
26
27SYSTEMD_PACKAGES = "osmo-pcap-server osmo-pcap-client"
28SYSTEMD_SERVICE_osmo-pcap-server = "osmo-pcap-server.service"
29SYSTEMD_SERVICE_osmo-pcap-client = "osmo-pcap-client.service"
30
31CONFFILES_osmo-pcap-server = "${sysconfdir}/osmocom/osmo-pcap-server.cfg"
32CONFFILES_osmo-pcap-client = "${sysconfdir}/osmocom/osmo-pcap-client.cfg"
33
34EXTRA_OECONF += "--with-pcap-config=no"
35
36do_configure_prepend() {
37 export PCAP_LIBS="-lpcap"
38}
39
40FILES_osmo-pcap-server = "${bindir}/osmo-pcap-server \
41 ${sysconfdir}/osmocom/osmo-pcap-server.cfg \
42 ${datadir}/osmo-pcap/osmo_pcap_clean_old \
43 "
44
45FILES_osmo-pcap-client = "${bindir}/osmo-pcap-client \
46 ${sysconfdir}/osmocom/osmo-pcap-client.cfg \
47 "