From 006adb888c2439079120a1b2d93c010ae85c3ea4 Mon Sep 17 00:00:00 2001 From: Al Hoang <13622+hoanga@users.noreply.github.com> Date: Sat, 23 May 2020 16:55:54 -0500 Subject: [PATCH] httpflow: new recipe (#4955) --- net-analyzer/httpflow/httpflow-0.0.9.recipe | 48 +++++++++++++++++++ .../httpflow/patches/httpflow-0.0.9.patchset | 22 +++++++++ 2 files changed, 70 insertions(+) create mode 100644 net-analyzer/httpflow/httpflow-0.0.9.recipe create mode 100644 net-analyzer/httpflow/patches/httpflow-0.0.9.patchset diff --git a/net-analyzer/httpflow/httpflow-0.0.9.recipe b/net-analyzer/httpflow/httpflow-0.0.9.recipe new file mode 100644 index 000000000..c5bc7e42c --- /dev/null +++ b/net-analyzer/httpflow/httpflow-0.0.9.recipe @@ -0,0 +1,48 @@ +SUMMARY="Analyze HTTP streams from the command line" +DESCRIPTION="A command line utility helps to capture and dump HTTP stream." +HOMEPAGE="https://github.com/six-ddc/httpflow" +COPYRIGHT="2020 dudongcheng" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz" +SOURCE_FILENAME="httpflow-$portVersion.tar.gz" +CHECKSUM_SHA256="2347bd416641e165669bf1362107499d0bc4524ed9bfbb273ccd3b3dd411e89c" +PATCHES="httpflow-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + httpflow$secondaryArchSuffix = $portVersion + cmd:httpflow = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libpcap$secondaryArchSuffix + lib:libpcre$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libpcap$secondaryArchSuffix + devel:libpcre$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchPrefix + cmd:make + cmd:pkg_config$secondaryArchPrefix + cmd:sed + " + +BUILD() +{ + make +} + +INSTALL() +{ + mkdir -p $binDir + cp httpflow $binDir +} diff --git a/net-analyzer/httpflow/patches/httpflow-0.0.9.patchset b/net-analyzer/httpflow/patches/httpflow-0.0.9.patchset new file mode 100644 index 000000000..c14269433 --- /dev/null +++ b/net-analyzer/httpflow/patches/httpflow-0.0.9.patchset @@ -0,0 +1,22 @@ +From 0d232909b89968837bcf1f94f9ee8a5efb2cf6f7 Mon Sep 17 00:00:00 2001 +From: Al Hoang <13622+hoanga@users.noreply.github.com> +Date: Sat, 9 May 2020 08:57:49 -0500 +Subject: [PATCH] Add network link parameter + + +diff --git a/Makefile b/Makefile +index 82c7858..bf46aa2 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,7 +2,7 @@ + default: all + + CXXFLAGS=-O2 -I/usr/local/include +-LIBS=-lz -lpcap -lpcre ++LIBS=-lz -lpcap -lpcre -lnetwork + + PREFIX?=/usr/local + INSTALL_BIN=$(PREFIX)/bin +-- +2.26.0 +