| 1 | # Description: Network sniffer with command line interface |
| 2 | # URL: http://www.tcpdump.org |
| 3 | # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: libpcap openssl |
| 6 | |
| 7 | name=tcpdump |
| 8 | version=4.1.1 |
| 9 | release=1 |
| 10 | source=(http://www.tcpdump.org/release/$name-$version.tar.gz) |
| 11 | |
| 12 | build() { |
| 13 | cd $name-$version |
| 14 | echo "ac_cv_linux_vers=2" > config.cache |
| 15 | ./configure --build=$CHOST \ |
| 16 | --host=$CTARGET \ |
| 17 | --prefix=/usr \ |
| 18 | --mandir=/usr/man \ |
| 19 | --disable-ipv6 \ |
| 20 | --cache-file=config.cache |
| 21 | sed -i 's|\-I/usr/include|\-I$(CLFS)/usr/include|g' Makefile |
| 22 | make |
| 23 | make DESTDIR=$PKG install |
| 24 | rm $PKG/usr/sbin/tcpdump.$version |
| 25 | } |