rpms/hping3/devel hping3-bytesex.patch, NONE, 1.1 hping3-cflags.patch, NONE, 1.1 hping3-getifnamedebug.patch, NONE, 1.1 hping3-include.patch, NONE, 1.1 hping3.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Paul Wouters (pwouters) fedora-extras-commits at redhat.com
Wed Jul 26 20:17:32 UTC 2006


Author: pwouters

Update of /cvs/extras/rpms/hping3/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4781/devel

Modified Files:
	.cvsignore sources 
Added Files:
	hping3-bytesex.patch hping3-cflags.patch 
	hping3-getifnamedebug.patch hping3-include.patch hping3.spec 
Log Message:
auto-import hping3-0.0.20051105-3 on branch devel from hping3-0.0.20051105-3.src.rpm

hping3-bytesex.patch:

--- NEW FILE hping3-bytesex.patch ---
--- bytesex.h.orig      2003-07-28 05:00:55.000000000 -0400
+++ bytesex.h   2006-05-07 21:19:31.000000000 -0400
@@ -9,6 +9,8 @@

 #if    defined(__i386__) \
 	|| defined(__alpha__) \
+	|| defined(__x86_64__) \
+	|| defined(__ia64__) \
 	|| (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
 #define BYTE_ORDER_LITTLE_ENDIAN
 #elif  defined(__mc68000__) \

hping3-cflags.patch:

--- NEW FILE hping3-cflags.patch ---
--- Makefile.in.org	2006-05-12 15:29:02.000000000 -0400
+++ Makefile.in	2006-05-12 15:29:10.000000000 -0400
@@ -9,7 +9,7 @@
 CC= gcc
 AR=/usr/bin/ar
 RANLIB=/usr/bin/ranlib
-CCOPT= -O2 -Wall @PCAP_INCLUDE@ @TCL_INC@ @USE_TCL@
+CCOPT= $(CFLAGS) -Wall @PCAP_INCLUDE@ @TCL_INC@ @USE_TCL@
 DEBUG= -g
 #uncomment the following if you need libpcap based build under linux
 #(not raccomanded)

hping3-getifnamedebug.patch:

--- NEW FILE hping3-getifnamedebug.patch ---
diff -Nur hping3-20051105-orig/getifname.c hping3-20051105/getifname.c
--- hping2-rc3-orig/getifname.c	2004-05-03 10:55:53.000000000 +0200
+++ hping2-rc3/getifname.c	2005-07-26 18:23:34.000000000 +0200
@@ -60,7 +60,7 @@
 			known_output_if = 1;
 			if (opt_debug)
 				printf("DEBUG: Output interface address: %s\n",
-					inet_ntoa(sa.sin_addr));
+					inet_ntoa(output_if_addr.sin_addr));
 		} else {
 			fprintf(stderr, "Warning: Unable to guess the output "
 					"interface\n");

hping3-include.patch:

--- NEW FILE hping3-include.patch ---
--- script.c.orig	2006-05-12 15:32:49.000000000 -0400
+++ script.c	2006-05-12 15:33:17.000000000 -0400
@@ -24,7 +24,7 @@
 
 #include <sys/ioctl.h>
 #include <pcap.h>
-#include <net/bpf.h>
+#include <pcap-bpf.h>
 
 #include "release.h"
 #include "hping2.h"
--- libpcap_stuff.c.orig	2006-05-12 15:32:44.000000000 -0400
+++ libpcap_stuff.c	2006-05-12 15:33:07.000000000 -0400
@@ -17,7 +17,7 @@
 #include <stdlib.h>
 #include <sys/ioctl.h>
 #include <pcap.h>
-#include <net/bpf.h>
+#include <pcap-bpf.h>
 
 #include "globals.h"
 


--- NEW FILE hping3.spec ---
%define	cvs	20051105
Name:    hping3
Version: 0.0.%{cvs}
Release: 3%{?dist}
Summary: TCP/IP stack auditing and much more

Group: Applications/Internet
License: GPL
URL: http://www.hping.org/
Source0: http://www.hping.org/hping3-20051105.tar.gz
Patch0: hping3-include.patch
Patch1: hping3-bytesex.patch
Patch2: hping3-getifnamedebug.patch
Patch3: hping3-cflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libpcap-devel, tcl-devel
Obsoletes: hping2
Provides: hping2

%description
hping3 is a network tool able to send custom TCP/IP packets and to
display target replies like ping do with ICMP replies. hping3 can handle
fragmentation, and almost arbitrary packet size and content, using the
command line interface.
Since version 3, hping implements scripting capabilties

%prep

%setup -q  -n hping3-20051105
%patch0 -p0 -b .include
%patch1 -p0 -b .bytesex
%patch2 -p1 -b .getifnamedebug
%patch3 -p0 -b .cflags

%build
%configure --force-libpcap
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}

install -m0755 hping3 $RPM_BUILD_ROOT%{_sbindir}
install -m0644 docs/hping3.8 $RPM_BUILD_ROOT%{_mandir}/man8

ln -sf hping3 $RPM_BUILD_ROOT%{_sbindir}/hping
ln -sf hping3 $RPM_BUILD_ROOT%{_sbindir}/hping2

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%doc COPYING *BUGS CHANGES README TODO docs/AS-BACKDOOR docs/HPING2-HOWTO.txt
%doc docs/HPING2-IS-OPEN docs/MORE-FUN-WITH-IPID docs/SPOOFED_SCAN.txt
%doc docs/HPING3.txt
%attr(755,root,root) %{_sbindir}/*
%{_mandir}/man8/*

%changelog
* Sun May 19 2006 Paul Wouters <paul at xelerance.com> 0.0.20051105-2
- Added Provides hping2 to fix upgrade path

* Sun May 07 2006 Paul Wouters <paul at xelerance.com> 0.0.20051105-1
- Initial Release based on hping2 package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/hping3/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	26 Jul 2006 20:15:57 -0000	1.1
+++ .cvsignore	26 Jul 2006 20:17:32 -0000	1.2
@@ -0,0 +1 @@
+hping3-20051105.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/hping3/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	26 Jul 2006 20:15:57 -0000	1.1
+++ sources	26 Jul 2006 20:17:32 -0000	1.2
@@ -0,0 +1 @@
+ca4ea4e34bcc2162aedf25df8b2d1747  hping3-20051105.tar.gz




More information about the fedora-extras-commits mailing list