summaryrefslogtreecommitdiffstats
path: root/extra/libpcap/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2011-10-15 16:39:10 +0200
committertnut <tnut at nutyx dot com>2011-10-15 16:39:10 +0200
commit44bd65d8abccd2a2b8be9f1049b8703a4636d39a (patch)
tree19189f89aca0deb7a36724c2e8f39fbe7da343bb /extra/libpcap/Pkgfile
parentc95e55ef9782f3a298cd88ec4a5c66cb96a3f37d (diff)
downloadnutyx-pakxe-44bd65d8abccd2a2b8be9f1049b8703a4636d39a.tar.gz
nutyx-pakxe-44bd65d8abccd2a2b8be9f1049b8703a4636d39a.tar.bz2
nutyx-pakxe-44bd65d8abccd2a2b8be9f1049b8703a4636d39a.tar.xz
nutyx-pakxe-44bd65d8abccd2a2b8be9f1049b8703a4636d39a.zip
libpcap dans extra
Diffstat (limited to 'extra/libpcap/Pkgfile')
-rw-r--r--extra/libpcap/Pkgfile30
1 files changed, 30 insertions, 0 deletions
diff --git a/extra/libpcap/Pkgfile b/extra/libpcap/Pkgfile
new file mode 100644
index 000000000..2b6f36f8d
--- /dev/null
+++ b/extra/libpcap/Pkgfile
@@ -0,0 +1,30 @@
+# Description: Fourni les fonctions niveau utilisateur pour le fitrage de paquets
+# URL: http://www.tcpdump.org
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+
+name=libpcap
+version=1.1.1
+release=1
+source=(http://www.tcpdump.org/release/$name-$version.tar.gz)
+
+build() {
+ cd $name-$version
+ install -d -m755 $PKG/usr/bin
+# sed -i '/ln [^-][^s]/s/ln/ln -s/' Makefile.in
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --enable-ipv6
+ make
+ 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
+}