Hello community,

here is the log from the commit of package hping for openSUSE:Factory checked 
in at 2014-12-30 00:50:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hping (Old)
 and      /work/SRC/openSUSE:Factory/.hping.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hping"

Changes:
--------
--- /work/SRC/openSUSE:Factory/hping/hping.changes      2011-12-08 
11:28:19.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.hping.new/hping.changes 2014-12-30 
00:50:27.000000000 +0100
@@ -1,0 +2,24 @@
+Fri Dec 26 09:34:51 UTC 2014 - [email protected]
+
+- Change URL
+- Use Version from release.h
+- Remove BuildRequires for automake
+- Download from https://github.com/antirez/hping and packed as
+  tar.bz2
+- Add hping-rpmlintrc, binary-or-shlib-calls-gethostbyname isn't
+  fixable yet
+- Add patch hping-3.0.0_alpha_1-Makefile.in.patch, added support
+  for  $(DESTDIR), docs, man pages too for French, remove
+  hping-cflags.patch
+- Add patch hping-3.0.0_alpha_1-ars.c.patch, fix build
+- Use sed instead of simple patches patches hping-64bit.patch and
+  hping-include.patch
+- Use sed for scan.c and hping-3.0.0_alpha_1-ars.c.patch instead of
+  patch hping-build-fix.patch
+- Remove obsolete patch hping-bytesex.patch, changed by upstream
+- Change Description
+- Split out doc and add doc into subpackages
+- Use CCOPT="%{optflags}" to fix
+  'File is compiled without RPM_OPT_FLAGS'
+
+-------------------------------------------------------------------

Old:
----
  hping-64bit.patch
  hping-build-fix.patch
  hping-bytesex.patch
  hping-cflags.patch
  hping-include.patch
  hping3-20051105.tar.bz2

New:
----
  hping-3.0.0_alpha_1+git-7257579.tar.bz2
  hping-3.0.0_alpha_1-Makefile.in.patch
  hping-3.0.0_alpha_1-ars.c.patch
  hping-rpmlintrc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hping.spec ++++++
--- /var/tmp/diff_new_pack.YsmBSa/_old  2014-12-30 00:50:30.000000000 +0100
+++ /var/tmp/diff_new_pack.YsmBSa/_new  2014-12-30 00:50:30.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hping
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,53 +15,79 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:           hping
-#BuildRequires:
+Version:        3.0.0_alpha_1
+Release:        0
+Summary:        Command-line oriented TCP/IP packet assembler/analyzer
 License:        GPL-2.0
 Group:          Productivity/Networking/Diagnostic
-BuildRequires:  automake
+Url:            https://github.com/antirez/hping
+# Downloaded from https://github.com/antirez/hping
+# Packed as tar.bz2
+Source:         %{name}-%{version}+git-7257579.tar.bz2
+Source1:        %{name}-rpmlintrc
+# PATCH-FIX-UPSTREAM - hping-3.0.0_alpha_1-Makefile.in.patch -- fix build 
https://github.com/antirez/hping/issues/10
+Patch0:         %{name}-3.0.0_alpha_1-Makefile.in.patch
+# PATCH-FIX-UPSTREAM - hping-3.0.0_alpha_1-ars.c.patch -- fix build 
https://github.com/antirez/hping/issues/10
+Patch1:         %{name}-3.0.0_alpha_1-ars.c.patch
 BuildRequires:  libpcap-devel
 BuildRequires:  tcl-devel
-Version:        3
-Release:        0
-Summary:        Command-line oriented TCP/IP packet assembler/analyzer
-Url:            http://www.hping.org/
-Source:         %{name}%{version}-20051105.tar.bz2
-Patch0:         %{name}-include.patch
-Patch1:         %{name}-cflags.patch
-Patch2:         %{name}-bytesex.patch
-Patch3:         %{name}-64bit.patch
-Patch4:         %{name}-build-fix.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
-hping is a command-line oriented TCP/IP packet assembler/analyzer.
-The interface is inspired to the ping(8) unix command, but hping 
-isn't only able to send ICMP echo requests. It supports TCP, UDP, 
-ICMP and RAW-IP protocols, has a traceroute mode, the ability to 
-send files between a covered channel, and many other features.
+ping3 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, read the API.txt
+file under the /docs directory to know more about it.
+
+As a command line utility, hping is useful to test at many kind of
+networking devices like firewalls, routers, and so. It can be used as
+a traceroute alike program over all the supported protocols, firewalk usage,
+OS fingerprinting, port-scanner (see the --scan option introduced with hping3),
+TCP/IP stack auditing.
+
+%package -n %{name}-doc
+Summary:        Documentation for the hping
+Group:          Documentation
+BuildArch:      noarch
+
+%description -n %{name}-doc
+Documentation for the package hping.
 
 %prep
-%setup -q -n %{name}%{version}-20051105
-%patch0 -p0
-%patch1 -p0
-%patch2 -p1
-%patch3 -p0
-%patch4 -p0
+%setup -q -n %{name}
+%patch0
+%patch1
+
+# SED-FIX-UPSTREAM -- add 64bit https://github.com/antirez/hping/issues/9
+sed -i 's|/usr/lib|/usr/lib/ /usr/lib64/|' configure
+
+# SED-FIX-UPSTREAM -- fix includes https://github.com/antirez/hping/issues/9
+sed -i 's|net/bpf.h|pcap-bpf.h|' script.c libpcap_stuff.c
+
+# SED-FIX-UPSTREAM -- fix build https://github.com/antirez/hping/issues/10
+sed -i 's|icmp, p, sizeof(subtcp|icmp, p, sizeof(icmp|' scan.c
 
 %build
-autoreconf -fiv
+
 %configure
-make %{?_smp_mflags}
+make %{?_smp_mflags} CCOPT="%{optflags}"
 
 %install
-%makeinstall
+%make_install strip
 
 %files
-%defattr(-,root,root)
-%doc COPYING *BUGS CHANGES NEWS README TODO 
-%doc docs/HPING2-IS-OPEN docs/MORE-FUN-WITH-IPID docs/SPOOFED_SCAN.txt 
docs/HPING3.txt docs/AS-BACKDOOR docs/HPING2-HOWTO.txt  
-%attr(755,root,root) %{_sbindir}/hping3
-%{_mandir}/man8/*
+%defattr(-,root,root,-)
+%{_sbindir}/hping*
+%{_mandir}/man8/%{name}*.8%{ext_man}
+%{_mandir}/fr/man8/%{name}2-fr.8%{ext_man}
+
+%files -n %{name}-doc
+%defattr(-,root,root,-)
+%{_defaultdocdir}/%{name}
 
 %changelog

++++++ hping-3.0.0_alpha_1-Makefile.in.patch ++++++
--- Makefile.in.orig    2014-12-25 15:01:43.000000000 +0100
+++ Makefile.in 2014-12-26 08:06:25.681410513 +0100
@@ -9,14 +9,19 @@
 CC= gcc
 AR=/usr/bin/ar
 RANLIB=/usr/bin/ranlib
-CCOPT= -O2 -Wall @PCAP_INCLUDE@ @TCL_INC@ @USE_TCL@
+CCOPT= $(CFLAGS) -O2 -Wall @PCAP_INCLUDE@ @TCL_INC@ @USE_TCL@
 DEBUG= -g
 #uncomment the following if you need libpcap based build under linux
 #(not raccomanded)
 COMPILE_TIME=
-INSTALL_MANPATH=@MANPATH@
 @PCAP@
 
+DOCS = AUTHORS *BUGS CHANGES COPYING NEWS README TODO
+DOCS_EN = docs/*.txt docs/AS-BACKDOOR docs/HPING2-IS-OPEN 
docs/MORE-FUN-WITH-IPID
+DOCS_FR = docs/french/*.txt docs/french/AS-BACKDOOR docs/french/HPING2-IS-OPEN 
docs/french/MORE-FUN-WITH-IPID
+MANS = docs/hping2.8 docs/hping3.8
+MANS_FR = docs/french/hping2-fr.8
+
 ARSOBJ = ars.o apd.o split.o rapd.o
 
 OBJ=   main.o getifname.o getlhs.o \
@@ -72,17 +77,18 @@
        rm -rf hping3 *.o byteorder byteorder.h systype.h Makefile libars.a 
.depend
 
 install: hping3
-       cp -f hping3 /usr/sbin/
-       chmod 755 /usr/sbin/hping3
-       ln -s /usr/sbin/hping3 /usr/sbin/hping
-       ln -s /usr/sbin/hping3 /usr/sbin/hping2
-       @if [ -d ${INSTALL_MANPATH}/man8 ]; then \
-               cp ./docs/hping3.8 ${INSTALL_MANPATH}/man8; \
-               chmod 644 ${INSTALL_MANPATH}/man8/hping3.8; \
-       else \
-               echo "@@@@@@ WARNING @@@@@@"; \
-               echo "Can't install the man page: ${INSTALL_MANPATH}/man8 does 
not exist"; \
-       fi
+       install -m 0755 -d $(DESTDIR)/usr/sbin
+       install -m 0755 -d $(DESTDIR)/usr/share/man/man8
+       install -m 0755 -d $(DESTDIR)/usr/share/man/fr/man8
+       install -m 0755 -d $(DESTDIR)/usr/share/doc/packages/hping/docs/french
+       install -m 0755 hping3 $(DESTDIR)/usr/sbin/
+       ln -s /usr/sbin/hping3 hping
+       ln -s /usr/sbin/hping3 hping2
+       install -m 0644 $(MANS) $(DESTDIR)/usr/share/man/man8/
+       install -m 0644 $(MANS_FR) $(DESTDIR)/usr/share/man/fr/man8/
+       install -m 0644 $(DOCS) $(DESTDIR)/usr/share/doc/packages/hping/
+       install -m 0644 $(DOCS_EN) $(DESTDIR)/usr/share/doc/packages/hping/docs/
+       install -m 0644 $(DOCS_FR) 
$(DESTDIR)/usr/share/doc/packages/hping/docs/french/
 
 strip: hping3
        @ls -l ./hping3
++++++ hping-3.0.0_alpha_1-ars.c.patch ++++++
--- ars.c.orig  2014-12-25 15:01:43.000000000 +0100
+++ ars.c       2014-12-26 07:50:20.883410513 +0100
@@ -481,8 +481,8 @@
                sum = (sum >> 16) + (sum & 0xffff);
                sum += (sum >> 16);
                return (u_int16_t) ~sum;
-       } else {
-               assert("else reached in ars_multi_cksum()" == "");
+//     } else {
+//             assert("else reached in ars_multi_cksum()" == "");
        }
        return 0; /* unreached, here to prevent warnings */
 }
++++++ hping-rpmlintrc ++++++
# This is a not fixable yet
addFilter("binary-or-shlib-calls-gethostbyname")
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to