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 | |
| 8 | INC_PR="r0.${META_TELEPHONY_OSMO_INC}" |
| 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 | |
| 17 | PACKAGES =+ "osmo-pcap-server osmo-pcap-client" |
| 18 | |
| 19 | SYSTEMD_PACKAGES = "osmo-pcap-server osmo-pcap-client" |
| 20 | SYSTEMD_SERVICE_osmo-pcap-server = "osmo-pcap-server.service" |
| 21 | SYSTEMD_SERVICE_osmo-pcap-client = "osmo-pcap-client.service" |
| 22 | |
| 23 | CONFFILES_osmo-pcap-server = "${sysconfdir}/osmocom/osmo-pcap-server.cfg" |
| 24 | CONFFILES_osmo-pcap-client = "${sysconfdir}/osmocom/osmo-pcap-client.cfg" |
| 25 | |
| 26 | EXTRA_OECONF += "--with-pcap-config=no" |
| 27 | |
| 28 | do_configure_prepend() { |
| 29 | export PCAP_LIBS="-lpcap" |
| 30 | } |
| 31 | |
| 32 | FILES_osmo-pcap-server = "${bindir}/osmo-pcap-server \ |
| 33 | ${sysconfdir}/osmocom/osmo-pcap-server.cfg \ |
| 34 | ${datadir}/osmo-pcap/osmo_pcap_clean_old \ |
| 35 | " |
| 36 | |
| 37 | FILES_osmo-pcap-client = "${bindir}/osmo-pcap-client \ |
| 38 | ${sysconfdir}/osmocom/osmo-pcap-client.cfg \ |
| 39 | " |