pespin has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/c/meta-telephony/+/3534 )

Change subject: Add recipe for osmo-pcap, both server and client
......................................................................

Add recipe for osmo-pcap, both server and client

Change-Id: I5bb85b118029d1559a958803184690a9d0f23e4a
---
A recipes-osmocom/osmo-pcap/osmo-pcap.inc
A recipes-osmocom/osmo-pcap/osmo-pcap_git.bb
2 files changed, 46 insertions(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, approved; Verified



diff --git a/recipes-osmocom/osmo-pcap/osmo-pcap.inc 
b/recipes-osmocom/osmo-pcap/osmo-pcap.inc
new file mode 100644
index 0000000..a7d3a60
--- /dev/null
+++ b/recipes-osmocom/osmo-pcap/osmo-pcap.inc
@@ -0,0 +1,39 @@
+DESCRITOPN = "Osmocom PCAP client (probe) and server (aggregator)"
+HOMEPAGE = "https://osmocom.org/";
+LICENSE = "AGPLv3+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=73f1eb20517c55bf9493b7dd6e480788"
+
+DEPENDS = "libosmocore zeromq libpcap gnutls"
+
+INC_PR="r0.${META_TELEPHONY_OSMO_INC}"
+
+inherit autotools pkgconfig systemd
+
+PACKAGECONFIG ??= "\
+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+    "
+PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_system_unitdir},--without-systemdsystemunitdir"
+
+PACKAGES =+ "osmo-pcap-server osmo-pcap-client"
+
+SYSTEMD_PACKAGES = "osmo-pcap-server osmo-pcap-client"
+SYSTEMD_SERVICE_osmo-pcap-server = "osmo-pcap-server.service"
+SYSTEMD_SERVICE_osmo-pcap-client = "osmo-pcap-client.service"
+
+CONFFILES_osmo-pcap-server = "${sysconfdir}/osmocom/osmo-pcap-server.cfg"
+CONFFILES_osmo-pcap-client = "${sysconfdir}/osmocom/osmo-pcap-client.cfg"
+
+EXTRA_OECONF += "--with-pcap-config=no"
+
+do_configure_prepend() {
+       export PCAP_LIBS="-lpcap"
+}
+
+FILES_osmo-pcap-server = "${bindir}/osmo-pcap-server \
+                         ${sysconfdir}/osmocom/osmo-pcap-server.cfg \
+                         ${datadir}/osmo-pcap/osmo_pcap_clean_old \
+                         "
+
+FILES_osmo-pcap-client = "${bindir}/osmo-pcap-client \
+                         ${sysconfdir}/osmocom/osmo-pcap-client.cfg \
+                         "
diff --git a/recipes-osmocom/osmo-pcap/osmo-pcap_git.bb 
b/recipes-osmocom/osmo-pcap/osmo-pcap_git.bb
new file mode 100644
index 0000000..9ffb510
--- /dev/null
+++ b/recipes-osmocom/osmo-pcap/osmo-pcap_git.bb
@@ -0,0 +1,7 @@
+require ${PN}.inc
+
+S = "${WORKDIR}/git"
+SRCREV = "901543a78846cc4e3a0cdae91dead4913b1be961"
+SRC_URI = "git://git.osmocom.org/osmo-pcap.git;protocol=git"
+PV = "0.1.0+gitr${SRCPV}"
+PR = "${INC_PR}.0"

--
To view, visit https://gerrit.osmocom.org/c/meta-telephony/+/3534
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: meta-telephony
Gerrit-Branch: 201705
Gerrit-Change-Id: I5bb85b118029d1559a958803184690a9d0f23e4a
Gerrit-Change-Number: 3534
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <[email protected]>
Gerrit-Assignee: pespin <[email protected]>
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: Max <[email protected]>
Gerrit-MessageType: merged

Reply via email to