summaryrefslogtreecommitdiffstats
path: root/base/libpcap/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2011-02-26 11:01:00 +0100
committersibel <lesibel@free.fr>2011-02-26 11:01:00 +0100
commita167557f3d42c51a88d97c95869d2f25d417eaa8 (patch)
tree8c8a7ed00133d8633c7da66880e89f0c32984f78 /base/libpcap/Pkgfile
parent1b7645aa9e79f0ef39917b6c9d07b40fb07153e8 (diff)
downloadnutyx-pakxe-a167557f3d42c51a88d97c95869d2f25d417eaa8.tar.gz
nutyx-pakxe-a167557f3d42c51a88d97c95869d2f25d417eaa8.tar.bz2
nutyx-pakxe-a167557f3d42c51a88d97c95869d2f25d417eaa8.tar.xz
nutyx-pakxe-a167557f3d42c51a88d97c95869d2f25d417eaa8.zip
libpcap, maj 1.1.1-1
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
}