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 | |
4 | # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org | |
5 | # Depends on: bison flex | |
6 | ||
7 | name=libpcap | |
8 | version=1.0.0 | |
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 | |
25 | ln -s $name.so.$version $PKG/usr/lib/$name.so.1 | |
26 | ln -s $name.so.$version $PKG/usr/lib/$name.so | |
27 | } |