From b3addca023b746e39c5a5826e5459c0b72c909cc Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 25 Dec 2009 00:56:09 +0100 Subject: [PATCH] tcpdump: Initial import (verified compilation) --- tcpdump/.footprint | 6 ++++++ tcpdump/.md5sum | 1 + tcpdump/Pkgfile | 27 +++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 tcpdump/.footprint create mode 100644 tcpdump/.md5sum create mode 100644 tcpdump/Pkgfile diff --git a/tcpdump/.footprint b/tcpdump/.footprint new file mode 100644 index 0000000..85aea8f --- /dev/null +++ b/tcpdump/.footprint @@ -0,0 +1,6 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/tcpdump.1.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/tcpdump diff --git a/tcpdump/.md5sum b/tcpdump/.md5sum new file mode 100644 index 0000000..21a8920 --- /dev/null +++ b/tcpdump/.md5sum @@ -0,0 +1 @@ +b22ca72890df2301d922c9f2d17867f9 tcpdump-4.0.0.tar.gz diff --git a/tcpdump/Pkgfile b/tcpdump/Pkgfile new file mode 100644 index 0000000..6a8ebd8 --- /dev/null +++ b/tcpdump/Pkgfile @@ -0,0 +1,27 @@ +# Description: Network sniffer with command line interface +# 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: libpcap openssl + +name=tcpdump +version=4.0.0 +release=1 +source=(http://www.tcpdump.org/release/$name-$version.tar.gz) + +build() { + cd $name-$version + echo "ac_cv_linux_vers=2" > config.cache + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --mandir=/usr/man \ + --disable-ipv6 \ + --cache-file=config.cache + sed -i 's|\-I/usr/include|\-I$(CLFS)/usr/include|g' Makefile + sed -i 's|LDFLAGS = \-L/usr/lib|LDFLAGS = \-L$(CLFS)/usr/lib|g' Makefile + sed -i -e '80 d' -e '81 d' -e '82 d' print-enc.c + make + make DESTDIR=$PKG install + rm $PKG/usr/sbin/tcpdump.$version +} -- 2.26.2