Commit | Line | Data |
---|---|---|
b3addca0 VM |
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 | |
38b50d66 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
b3addca0 VM |
5 | # Depends on: libpcap openssl |
6 | ||
7 | name=tcpdump | |
8 | version=4.0.0 | |
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 | sed -i 's|LDFLAGS = \-L/usr/lib|LDFLAGS = \-L$(CLFS)/usr/lib|g' Makefile | |
23 | sed -i -e '80 d' -e '81 d' -e '82 d' print-enc.c | |
24 | make | |
25 | make DESTDIR=$PKG install | |
26 | rm $PKG/usr/sbin/tcpdump.$version | |
27 | } |