Commit | Line | Data |
---|---|---|
e4ce8af1 VM |
1 | # Description: Packet capture library |
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 |
e4ce8af1 VM |
5 | # Depends on: bison flex |
6 | ||
7 | name=libpcap | |
7e0c8b02 | 8 | version=1.1.1 |
e4ce8af1 VM |
9 | release=1 |
10 | source=(http://www.tcpdump.org/release/$name-$version.tar.gz) | |
11 | ||
12 | build () { | |
13 | cd $name-$version | |
14 | install -d $PKG/usr/bin | |
15 | sed -i '/ln [^-][^s]/s/ln/ln -s/' Makefile.in | |
16 | echo "ac_cv_linux_vers=2" > config.cache | |
17 | ./configure --build=$CHOST \ | |
18 | --host=$CTARGET \ | |
19 | --prefix=/usr \ | |
20 | --mandir=/usr/man \ | |
21 | --with-pcap=linux \ | |
22 | --cache-file=config.cache | |
23 | make | |
24 | make DESTDIR=$PKG install install-shared | |
e4ce8af1 | 25 | } |