diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-08-06 16:10:32 +0000 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-08-06 19:31:52 +0000 |
commit | cccb1c700ab036f0454fd4f4ece43741cfd8a557 (patch) | |
tree | a7392c14e89648c7bc8486d340c1f6fa33b54084 /testing/tcpflow | |
parent | 2179035721294e91ec4887d1a9f1f352608dceb7 (diff) | |
download | aports-cccb1c700ab036f0454fd4f4ece43741cfd8a557.tar.bz2 aports-cccb1c700ab036f0454fd4f4ece43741cfd8a557.tar.xz |
testing/tcpflow: new aport
tcpflow is a program that captures data transmitted as part of TCP
connections (flows), and stores the data in a way that is convenient
for protocol analysis and debugging. Each TCP flow is stored in its
own file. Thus, the typical TCP flow will be stored in two files,
one for each direction. tcpflow can also process stored ‘tcpdump
packet flows.
https://github.com/simsong/tcpflow
Diffstat (limited to 'testing/tcpflow')
-rw-r--r-- | testing/tcpflow/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/tcpflow/APKBUILD b/testing/tcpflow/APKBUILD new file mode 100644 index 0000000000..21847bceec --- /dev/null +++ b/testing/tcpflow/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=tcpflow +pkgver=1.2.8 +pkgrel=0 +pkgdesc="A TCP/IP packet demultiplexer" +url="https://github.com/simsong/tcpflow" +arch="all" +license="GPL3" +depends="" +depends_dev="" +makedepends="libpcap-dev" +install="" +subpackages="$pkgname-doc" +source="https://github.com/downloads/simsong/tcpflow/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="6fa51c81fad9d836371903ab14b03f8c tcpflow-1.2.8.tar.gz" |