mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
httpflow: new recipe (#4955)
This commit is contained in:
48
net-analyzer/httpflow/httpflow-0.0.9.recipe
Normal file
48
net-analyzer/httpflow/httpflow-0.0.9.recipe
Normal file
@@ -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
|
||||
}
|
||||
22
net-analyzer/httpflow/patches/httpflow-0.0.9.patchset
Normal file
22
net-analyzer/httpflow/patches/httpflow-0.0.9.patchset
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user