From e4ce8af181504e9e0112d5a3fa3404ffe31f3603 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 21 Dec 2009 14:42:37 +0000 Subject: [PATCH] libpcap: initial import (verified compilation) --- libpcap/.footprint | 86 ++++++++++++++++++++++++++++++++++++++++++++++ libpcap/.md5sum | 1 + libpcap/Pkgfile | 27 +++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 libpcap/.footprint create mode 100644 libpcap/.md5sum create mode 100644 libpcap/Pkgfile diff --git a/libpcap/.footprint b/libpcap/.footprint new file mode 100644 index 0000000..bf17897 --- /dev/null +++ b/libpcap/.footprint @@ -0,0 +1,86 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/pcap-config +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/pcap-bpf.h +-rw-r--r-- root/root usr/include/pcap-namedb.h +-rw-r--r-- root/root usr/include/pcap.h +drwxr-xr-x root/root usr/include/pcap/ +-rw-r--r-- root/root usr/include/pcap/bpf.h +-rw-r--r-- root/root usr/include/pcap/namedb.h +-rw-r--r-- root/root usr/include/pcap/pcap.h +-rw-r--r-- root/root usr/include/pcap/sll.h +-rw-r--r-- root/root usr/include/pcap/usb.h +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libpcap.a +lrwxrwxrwx root/root usr/lib/libpcap.so -> libpcap.so.1.0.0 +lrwxrwxrwx root/root usr/lib/libpcap.so.1 -> libpcap.so.1.0.0 +-rwxr-xr-x root/root usr/lib/libpcap.so.1.0.0 +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/pcap-config.1.gz +drwxr-xr-x root/root usr/man/man3/ +-rw-r--r-- root/root usr/man/man3/pcap.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_activate.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_breakloop.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_can_set_rfmon.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_close.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_compile.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_create.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_datalink.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_datalink_name_to_val.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_datalink_val_to_description.3pcap.gz -> pcap_datalink_val_to_name.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_datalink_val_to_name.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_dispatch.3pcap.gz -> pcap_loop.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_dump.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_dump_close.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_dump_file.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_dump_flush.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_dump_fopen.3pcap.gz -> pcap_dump_open.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_dump_ftell.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_dump_open.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_file.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_fileno.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_findalldevs.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_fopen_offline.3pcap.gz -> pcap_open_offline.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_free_datalinks.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_freealldevs.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_freecode.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_get_selectable_fd.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_geterr.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_getnonblock.3pcap.gz -> pcap_setnonblock.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_inject.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_is_swapped.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_lib_version.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_list_datalinks.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_lookupdev.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_lookupnet.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_loop.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_major_version.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_minor_version.3pcap.gz -> pcap_major_version.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_next.3pcap.gz -> pcap_next_ex.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_next_ex.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_offline_filter.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_open_dead.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_open_live.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_open_offline.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_perror.3pcap.gz -> pcap_geterr.3pcap.gz +lrwxrwxrwx root/root usr/man/man3/pcap_sendpacket.3pcap.gz -> pcap_inject.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_set_buffer_size.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_set_datalink.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_set_promisc.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_set_rfmon.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_set_snaplen.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_set_timeout.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_setdirection.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_setfilter.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_setnonblock.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_snapshot.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_stats.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_statustostr.3pcap.gz +-rw-r--r-- root/root usr/man/man3/pcap_strerror.3pcap.gz +drwxr-xr-x root/root usr/man/man5/ +-rw-r--r-- root/root usr/man/man5/pcap-savefile.5.gz +drwxr-xr-x root/root usr/man/man7/ +-rw-r--r-- root/root usr/man/man7/pcap-filter.7.gz +-rw-r--r-- root/root usr/man/man7/pcap-linktype.7.gz diff --git a/libpcap/.md5sum b/libpcap/.md5sum new file mode 100644 index 0000000..c62d941 --- /dev/null +++ b/libpcap/.md5sum @@ -0,0 +1 @@ +9ad1358c5dec48456405eac197a46d3d libpcap-1.0.0.tar.gz diff --git a/libpcap/Pkgfile b/libpcap/Pkgfile new file mode 100644 index 0000000..021c6fb --- /dev/null +++ b/libpcap/Pkgfile @@ -0,0 +1,27 @@ +# Description: Packet capture library +# URL: http://www.tcpdump.org +# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: bison flex + +name=libpcap +version=1.0.0 +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 + echo "ac_cv_linux_vers=2" > config.cache + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --mandir=/usr/man \ + --with-pcap=linux \ + --cache-file=config.cache + 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 +} -- 2.26.2