Pau Espin Pedrol | 4b85e1a | 2017-07-21 13:37:18 +0200 | [diff] [blame] | 1 | DESCRITOPN = "Osmocom PCAP client (probe) and server (aggregator)" |
| 2 | HOMEPAGE = "https://osmocom.org/" |
| 3 | LICENSE = "AGPLv3+" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788" |
| 5 | |
| 6 | DEPENDS = "libosmocore zeromq libpcap gnutls" |
| 7 | |
Pau Espin Pedrol | df5ac43 | 2023-02-17 14:57:14 +0100 | [diff] [blame] | 8 | INC_PR="r1.${META_TELEPHONY_OSMO_INC}" |
Pau Espin Pedrol | 4b85e1a | 2017-07-21 13:37:18 +0200 | [diff] [blame] | 9 | |
| 10 | inherit autotools pkgconfig systemd |
| 11 | |
| 12 | PACKAGECONFIG ??= "\ |
| 13 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
| 14 | " |
| 15 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir" |
| 16 | |
Pau Espin Pedrol | df5ac43 | 2023-02-17 14:57:14 +0100 | [diff] [blame] | 17 | # StateDirectory requires systemd >= v235, but poky pyro ships with v232 (SYS#6340): |
| 18 | do_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 Pedrol | 4b85e1a | 2017-07-21 13:37:18 +0200 | [diff] [blame] | 25 | PACKAGES =+ "osmo-pcap-server osmo-pcap-client" |
| 26 | |
| 27 | SYSTEMD_PACKAGES = "osmo-pcap-server osmo-pcap-client" |
| 28 | SYSTEMD_SERVICE_osmo-pcap-server = "osmo-pcap-server.service" |
| 29 | SYSTEMD_SERVICE_osmo-pcap-client = "osmo-pcap-client.service" |
| 30 | |
| 31 | CONFFILES_osmo-pcap-server = "${sysconfdir}/osmocom/osmo-pcap-server.cfg" |
| 32 | CONFFILES_osmo-pcap-client = "${sysconfdir}/osmocom/osmo-pcap-client.cfg" |
| 33 | |
| 34 | EXTRA_OECONF += "--with-pcap-config=no" |
| 35 | |
| 36 | do_configure_prepend() { |
| 37 | export PCAP_LIBS="-lpcap" |
| 38 | } |
| 39 | |
| 40 | FILES_osmo-pcap-server = "${bindir}/osmo-pcap-server \ |
| 41 | ${sysconfdir}/osmocom/osmo-pcap-server.cfg \ |
| 42 | ${datadir}/osmo-pcap/osmo_pcap_clean_old \ |
| 43 | " |
| 44 | |
| 45 | FILES_osmo-pcap-client = "${bindir}/osmo-pcap-client \ |
| 46 | ${sysconfdir}/osmocom/osmo-pcap-client.cfg \ |
| 47 | " |