void-packages/srcpkgs/tcpflow/template

32 lines
1.3 KiB
Bash

# Template file for 'tcpflow'
pkgname=tcpflow
version=1.5.0
revision=1
wrksrc="$pkgname-$pkgname-$version"
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.0-only"
homepage="https://github.com/simsong/tcpflow"
_be13_commit=c81521d768bb78499c069fcd7c47adc8eee0350c
_dfxml_commit=c31224626cf5f6678d42cbcfbfcd4e6191c9a864
_httpparser_commit=6b05cce82da5c4d407e5576ab892bc20a17b0394
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="ea607f7b57980f54e916b70ef761c5ee53a51520571a666eb4a8235e876d4185
b947bd185511fd28a12a30436bcbe8f765473a667cdb6f8f55888274d44f550f
a682edf8469b7130b52e6f12dc7beea4bb60d4834d6de42904a3c0a1425cd5fe
358e4d3599c6e26f1dff85066e15e86025fc537466e8f4e35924922886eed86b"
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
}