CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
f38b786a04d7899ed53a4ccca7fba5f70bf18907
[attic/ports/opt-cross.git] / libpcap / Pkgfile
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, devel at crux-arm dot nu
5 # Depends on: bison flex
6
7 name=libpcap
8 version=1.1.1
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 }