OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 18-Dec-2006 19:49:59 Branch: HEAD Handle: 2006121818495900 Added files: openpkg-src/lft lft.patch lft.spec Log: new package: lft 3.0b (Layer Four Traceroute (LFT)) Summary: Revision Changes Path 1.1 +37 -0 openpkg-src/lft/lft.patch 1.1 +93 -0 openpkg-src/lft/lft.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/lft/lft.patch ============================================================================ $ cvs diff -u -r0 -r1.1 lft.patch --- /dev/null 2006-12-18 19:47:54 +0100 +++ lft.patch 2006-12-18 19:49:59 +0100 @@ -0,0 +1,37 @@ +Index: Makefile.in +--- Makefile.in.orig 2006-12-17 21:50:13 +0100 ++++ Makefile.in 2006-12-18 19:48:28 +0100 +@@ -44,7 +44,7 @@ + $(CC) -o lft $(OBJS) $(LDFLAGS) $(LIBS) + + whob: whois.o +- $(CC) -o whob whois.c -DSTANDALONE $(LDFLAGS) $(LIBS) ++ $(CC) $(CFLAGS) -o whob whois.c -DSTANDALONE $(LDFLAGS) $(LIBS) + + install: lft lft.8 whob whob.8 + @echo "Installing LFT and WhoB" +Index: lft_lib.c +--- lft_lib.c.orig 2006-12-17 21:53:46 +0100 ++++ lft_lib.c 2006-12-18 19:47:54 +0100 +@@ -2491,7 +2491,7 @@ + return; + } + #ifdef BSD_IP_STACK +-#ifndef DARWIN ++#if !defined(DARWIN) && defined(BIOCIMMEDIATE) + bpfimmflag = 1; + if ( ioctl(sess->pcapdescr->fd, BIOCIMMEDIATE, &bpfimmflag) < 0) { + LFTErrHandler(sess, WRN_BIOCIMMEDIATE, pcap_strerror(errno)); +Index: lft_types.h +--- lft_types.h.orig 2006-12-17 21:55:30 +0100 ++++ lft_types.h 2006-12-18 19:47:54 +0100 +@@ -89,8 +89,7 @@ + #include <errno.h> + #include <sys/ioctl.h> + #ifndef DARWIN +-#include <net/bpf.h> +-#include <pcap-int.h> ++#include "pcap-bpf.h" + #endif + #endif + @@ . patch -p0 <<'@@ .' Index: openpkg-src/lft/lft.spec ============================================================================ $ cvs diff -u -r0 -r1.1 lft.spec --- /dev/null 2006-12-18 19:47:54 +0100 +++ lft.spec 2006-12-18 19:49:59 +0100 @@ -0,0 +1,93 @@ +## +## lft.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/> +## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: lft +Summary: Layer Four Traceroute (LFT) +URL: http://pwhois.org/lft/ +Vendor: VOSTROM Holdings, Inc. +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Mapping +License: Open Source +Version: 3.0b +Release: 20061218 + +# list of sources +Source0: http://pwhois.org/dl/index.who?file=lft-%{version}.tar.gz +Patch0: lft.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130 +PreReq: OpenPKG, openpkg >= 20040130 +BuildPreReq: libpcap +PreReq: libpcap +AutoReq: no +AutoReqProv: no + +%description + LFT, short for Layer Four Traceroute, is a sort of traceroute(8) + that often works much faster (than the commonly-used Van Jacobson + method) and goes through many configurations of packet-filters + (firewalls). More importantly, LFT implements numerous other + features including AS number lookups through several reliable + sources, loose source routing, netblock name lookups, et al. LFT is + the all-in-one traceroute tool because it can launch a variety of + different probes using both UDP and TCP layer-4 protocols. + +%track + prog lft = { + version = %{version} + url = http://pwhois.org/lft/ + regex = lft-(__VER__)\.tar\.gz + } + +%prep + %setup -q + %patch -p0 + +%build + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O} %{l_cppflags}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} \ + --with-pcap=%{l_prefix} + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org