summaryrefslogtreecommitdiffstats
path: root/base/libpcap/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/libpcap/Pkgfile')
-rw-r--r--base/libpcap/Pkgfile23
1 files changed, 16 insertions, 7 deletions
diff --git a/base/libpcap/Pkgfile b/base/libpcap/Pkgfile
index c859ef511..2b6f36f8d 100644
--- a/base/libpcap/Pkgfile
+++ b/base/libpcap/Pkgfile
@@ -4,18 +4,27 @@
# Packager: thierryn1 at hispeed dot ch
name=libpcap
-version=1.0.0
+version=1.1.1
release=1
source=(http://www.tcpdump.org/release/$name-$version.tar.gz)
build() {
cd $name-$version
- install -d $PKG/usr/bin
- sed -i '/ln [^-][^s]/s/ln/ln -s/' Makefile.in
+ install -d -m755 $PKG/usr/bin
+# sed -i '/ln [^-][^s]/s/ln/ln -s/' Makefile.in
./configure --prefix=/usr \
- --mandir=/usr/share/man
+ --mandir=/usr/share/man \
+ --enable-ipv6
make
- make DESTDIR=$PKG install install-shared
- ln -s $name.so.$version $PKG/usr/lib/$name.so.1
- ln -s $name.so.$version $PKG/usr/lib/$name.so
+ make DESTDIR=$PKG install
+ rm -rf $PKG/usr/lib/libpcap.a
+
+ # Compatibilité descendante , programme souvent vu comme net/bpf.h
+ mkdir -p $PKG/usr/include/net
+ cd $PKG/usr/include/net
+ ln -s ../pcap-bpf.h bpf.h
+
+# install-shared
+# ln -s $name.so.$version $PKG/usr/lib/$name.so.1
+# ln -s $name.so.$version $PKG/usr/lib/$name.so
}