From 63ce259dffb3f068f118f8b29e823aed5c4976e4 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 5 Feb 2024 15:15:18 +0100 Subject: [PATCH] New package: pwru-1.0.5 --- srcpkgs/pwru/patches/pcap.patch | 11 +++++++++++ srcpkgs/pwru/template | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/pwru/patches/pcap.patch create mode 100644 srcpkgs/pwru/template diff --git a/srcpkgs/pwru/patches/pcap.patch b/srcpkgs/pwru/patches/pcap.patch new file mode 100644 index 00000000000..6b590e80e3b --- /dev/null +++ b/srcpkgs/pwru/patches/pcap.patch @@ -0,0 +1,11 @@ +--- a/internal/libpcap/compile.go ++++ b/internal/libpcap/compile.go +@@ -11,7 +11,7 @@ + + /* + #cgo CFLAGS: -I${SRCDIR}/../../libpcap +-#cgo LDFLAGS: -L${SRCDIR}/../../libpcap -lpcap -static ++#cgo LDFLAGS: -L${SRCDIR}/../../libpcap -lpcap + #include + #include + */ diff --git a/srcpkgs/pwru/template b/srcpkgs/pwru/template new file mode 100644 index 00000000000..f4e5a7072a6 --- /dev/null +++ b/srcpkgs/pwru/template @@ -0,0 +1,20 @@ +# Template file for 'pwru' +pkgname=pwru +version=1.0.5 +revision=1 +build_style=go +go_import_path="github.com/cilium/pwru" +go_ldflags="-X github.com/cilium/pwru/internal/pwru.Version=${version}" +hostmakedepends="clang" +makedepends="libnl3-devel libpcap-devel" +short_desc="Packet, where are you? eBPF-based kernel networking debugger" +maintainer="Leah Neukirchen " +license="Apache-2.0" +homepage="https://github.com/cilium/pwru" +distfiles="https://github.com/cilium/pwru/archive/refs/tags/v${version}.tar.gz" +checksum=e8054fd5cc8c9e1ba61a5912e40c069a12b499d7684e258b70745585a994232d +nocross="go generate runs on wrong architecture" + +pre_build() { + TARGET_GOARCH=$GOARCH go generate +}