CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
tcpdump: Initial import (verified compilation)
[attic/ports/opt-cross.git] / tcpdump / Pkgfile
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, crux-arm at mikeux dot dyndns dot org
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 }