# Contributor: Michael Mason # Maintainer: Natanael Copa global pkgname := 'tcpflow' global pkgver := '1.4.5' global pkgrel := '2' global pkgdesc := '"A Tool for monitoring, capturing and storing TCP connections flows'" global url := '"https://github.com/simsong/tcpflow'" global arch := '"all'" global license := '"GPL3'" global depends := ''"" global makedepends := '"libpcap-dev zlib-dev boost-dev libressl-dev autoconf automake'" global install := ''"" global subpackages := ""$pkgname-doc"" global source := ""http://fossies.org/linux/misc/$pkgname-$pkgver.tar.gz configure-missing-m4-files.patch"" global builddir := ""$srcdir"/$pkgname-$pkgver" proc prepare { cd $builddir sed -i 's/test-pdfs.sh//' tests/Makefile.am autoreconf -fsiv || return 1 } proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ || return 1 make || return 1 make check || return 1 } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 } global md5sums := '"5978b112a899f2099e98cef6d9a0ece9 tcpflow-1.4.5.tar.gz daaa92561b255032db24f905295d2a69 configure-missing-m4-files.patch'" global sha256sums := '"f39fed437911b858c97937bc902f68f9a690753617abe825411a8483a7f70c72 tcpflow-1.4.5.tar.gz 05a2344d08614cdf86da3ac442aaa40dd88972a26c201af027f26d2ceeeae978 configure-missing-m4-files.patch'" global sha512sums := '"e31b278b8f4e97b6d1ffb6f8f145a56806963271ab96204ba555ab88049dedc5a13adf78b7775e96e92fe48bbf5116781810cef0d3374231764af059fc09dd97 tcpflow-1.4.5.tar.gz 79f6255ca9f94c8ce94b4f2c9736e5ff0c1b307492a7af6d16ea3a14915df144c3322a5410cc31bcc28d6eddc1dd02b08d77f891ecbdd7f2ca99f0b9f9228b15 configure-missing-m4-files.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(tcpflow)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.4.5)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(2)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A Tool for monitoring, capturing and storing TCP connections flows"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("https://github.com/simsong/tcpflow"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[25])] spids: [25] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL3))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ )} spids:[35])] spids: [35] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("libpcap-dev zlib-dev boost-dev libressl-dev autoconf automake"))} spids: [39] ) ] spids: [39] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(DQ )} spids:[44])] spids: [44] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [48] ) ] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://fossies.org/linux/misc/") ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\t\tconfigure-missing-m4-files.patch") ) } spids: [54] ) ] spids: [54] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver")} spids: [65] ) ] spids: [65] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(sed)} {(-i)} {(SQ )} {(tests/Makefile.am)}) (AndOr children: [ (C {(autoreconf)} {(-fsiv)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [79] ) spids: [75 78] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--mandir) (Lit_Other "=") (/usr/share/man)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) (AndOr children: [ (C {(make)} {(check)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [117] ) spids: [113 116] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [189] ) spids: [185 188] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("5978b112a899f2099e98cef6d9a0ece9 tcpflow-1.4.5.tar.gz\n") ("daaa92561b255032db24f905295d2a69 configure-missing-m4-files.patch") ) } spids: [217] ) ] spids: [217] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "f39fed437911b858c97937bc902f68f9a690753617abe825411a8483a7f70c72 tcpflow-1.4.5.tar.gz\n" ) ( "05a2344d08614cdf86da3ac442aaa40dd88972a26c201af027f26d2ceeeae978 configure-missing-m4-files.patch" ) ) } spids: [223] ) ] spids: [223] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "e31b278b8f4e97b6d1ffb6f8f145a56806963271ab96204ba555ab88049dedc5a13adf78b7775e96e92fe48bbf5116781810cef0d3374231764af059fc09dd97 tcpflow-1.4.5.tar.gz\n" ) ( "79f6255ca9f94c8ce94b4f2c9736e5ff0c1b307492a7af6d16ea3a14915df144c3322a5410cc31bcc28d6eddc1dd02b08d77f891ecbdd7f2ca99f0b9f9228b15 configure-missing-m4-files.patch" ) ) } spids: [229] ) ] spids: [229] ) ] )