void-packages/srcpkgs/tcpflow/template

32 lines
1.3 KiB
Bash

# Template file for 'tcpflow'
pkgname=tcpflow
version=1.4.5
revision=9
build_style=gnu-configure
hostmakedepends="automake"
makedepends="libpcap-devel zlib-devel libressl-devel boost-devel"
short_desc="Captures data transmitted as part of TCP connections"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3"
homepage="https://github.com/simsong/tcpflow"
_be13_commit=8f4f4b3fe0b4815babb3a6fb595eb9a6d07e8a2e
_dfxml_commit=13a8cc22189a8336d16777f2897ada6ae2ee59de
_httpparser_commit=8d9e5db981b623fffc93657abacdc80270cbee58
distfiles="https://github.com/simsong/tcpflow/archive/${pkgname}-${version}.tar.gz
https://github.com/nodejs/http-parser/archive/$_httpparser_commit.tar.gz
https://github.com/simsong/be13_api/archive/$_be13_commit.tar.gz
https://github.com/simsong/dfxml/archive/$_dfxml_commit.tar.gz"
checksum="9cf7adac37aa28c259b88d2f3ac7f415ab7a346cb7ec44b9cae5919372392594
25dabef6192080ef81a1ade4b40682125f13c245151739c9312762ec6396b68a
db10b3e2ea3acecdd731f43d346a80b48d57fc5f8e9a524f9b469cf86078685f
f29e3b067e2a69effe8dafd8280faa7119f9a74d18e0726c80d9bc573b4f7695"
wrksrc="$pkgname-$pkgname-$version"
pre_configure() {
rmdir src/{dfxml,be13_api,http-parser}
ln -fsr ../be13_api-$_be13_commit src/be13_api
ln -fsr ../dfxml-$_dfxml_commit src/dfxml
ln -fsr ../http-parser-$_httpparser_commit src/http-parser
autoreconf -fi
}