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