1 # Contributor : xav <xav at ethertricks dot net>
6 pkgdesc="A tool for extracting portions of packet-trace files generated using tcpdump's -w flag."
8 url="http://www.tcpdump.org/"
11 source=(ftp://ftp.ee.lbl.gov/${pkgname}-${pkgver}.tar.gz\
12 tcpslice-CVS.20010207-bpf.patch \
13 tcpslice-1.2a3-time.patch \
15 md5sums=('e329cbeb7e589f132d92c3447c477190'
16 'd09da8cba8d72acc1bfcbca3244f7f0d'
17 '21ab0242869433d0e2b1b4f183dafcef'
18 'a8c9bb95fd32da1c9fdf4b5825ba7628')
21 cd ${srcdir}/${pkgname}-${pkgver}
23 patch < ${srcdir}/tcpslice-CVS.20010207-bpf.patch
24 patch < ${srcdir}/tcpslice-1.2a3-time.patch
25 sed -e "s/f301-\*)/f301-\* \| x86_64-\*)/" -i config.sub
29 install -Dm 755 tcpslice ${pkgdir}/usr/sbin/tcpslice
30 install -Dm 544 tcpslice.1 ${pkgdir}/usr/share/man/man1/tcpslice.1
32 install -D -m644 ${startdir}/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE