devel/hping2 hping2-cflags.patch, NONE, 1.1 hping2-getifnamedebug.patch, NONE, 1.1 hping2.spec, 1.6, 1.7
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Tue Jul 26 16:28:08 UTC 2005
Author: mschwendt
Update of /cvs/extras/devel/hping2
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24801
Modified Files:
hping2.spec
Added Files:
hping2-cflags.patch hping2-getifnamedebug.patch
Log Message:
* Tue Jul 26 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.0.0-0.5.rc3
- Fix "local variable used before set" (#149776).
- Use rpm optflags.
hping2-cflags.patch:
--- NEW FILE hping2-cflags.patch ---
diff -Nur hping2-rc3-orig/Makefile.in hping2-rc3/Makefile.in
--- hping2-rc3-orig/Makefile.in 2004-05-03 11:29:39.000000000 +0200
+++ hping2-rc3/Makefile.in 2005-07-26 18:26:15.000000000 +0200
@@ -9,7 +9,7 @@
CC= gcc
AR=/usr/bin/ar
RANLIB=/usr/bin/ranlib
-CCOPT= -O2 -Wall @PCAP_INCLUDE@
+CCOPT= $(CFLAGS) -Wall @PCAP_INCLUDE@
DEBUG= -g
#uncomment the following if you need libpcap based build under linux
#(not raccomanded)
hping2-getifnamedebug.patch:
--- NEW FILE hping2-getifnamedebug.patch ---
diff -Nur hping2-rc3-orig/getifname.c hping2-rc3/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");
Index: hping2.spec
===================================================================
RCS file: /cvs/extras/devel/hping2/hping2.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- hping2.spec 6 Apr 2005 22:12:01 -0000 1.6
+++ hping2.spec 26 Jul 2005 16:28:06 -0000 1.7
@@ -1,7 +1,6 @@
Name: hping2
Version: 2.0.0
-Release: 0.4.rc3
-
+Release: 0.5.rc3
Summary: TCP/IP stack auditing and much more
Group: Applications/Internet
@@ -10,6 +9,8 @@
Source0: http://www.hping.org/hping2.0.0-rc3.tar.gz
Patch0: hping2-include.patch
Patch1: hping2-x86_64.patch
+Patch2: hping2-getifnamedebug.patch
+Patch3: hping2-cflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libpcap
@@ -23,6 +24,8 @@
%setup -q -n hping2-rc3
%patch0 -p0
%patch1 -p0
+%patch2 -p1 -b .getifnamedebug
+%patch3 -p1 -b .cflags
%build
%configure --force-libpcap
@@ -49,6 +52,10 @@
%{_mandir}/man8/*
%changelog
+* Tue Jul 26 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.0.0-0.5.rc3
+- Fix "local variable used before set" (#149776).
+- Use rpm optflags.
+
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt
More information about the fedora-extras-commits
mailing list