[CVS] OpenPKG: openpkg-src/hping/ hping.patch hping.spec

2005-01-24 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   24-Jan-2005 15:53:18
  Branch: HEAD Handle: 2005012414531800

  Modified files:
openpkg-src/hping   hping.patch hping.spec

  Log:
port to AMD64

  Summary:
RevisionChanges Path
1.2 +13 -2  openpkg-src/hping/hping.patch
1.8 +1  -1  openpkg-src/hping/hping.spec
  

  patch -p0 '@@ .'
  Index: openpkg-src/hping/hping.patch
  
  $ cvs diff -u -r1.1 -r1.2 hping.patch
  --- openpkg-src/hping/hping.patch 3 May 2004 18:26:41 -   1.1
  +++ openpkg-src/hping/hping.patch 24 Jan 2005 14:53:18 -  1.2
  @@ -1,6 +1,17 @@
  +Index: bytesex.h
  +--- bytesex.h.orig   2003-07-28 11:00:55 +0200
   bytesex.h2005-01-24 15:52:19 +0100
  +@@ -8,6 +8,7 @@
  + #define ARS_BYTESEX_H
  + 
  + #if defined(__i386__) \
  ++|| defined(__amd64__) \
  + || defined(__alpha__) \
  + || (defined(__mips__)  (defined(MIPSEL) || defined (__MIPSEL__)))
  + #define BYTE_ORDER_LITTLE_ENDIAN
   Index: libpcap_stuff.c
   libpcap_stuff.c.orig 2002-12-13 15:07:07.0 +0100
  -+++ libpcap_stuff.c  2004-05-03 20:14:42.0 +0200
  +--- libpcap_stuff.c.orig 2002-12-13 15:07:07 +0100
   libpcap_stuff.c  2005-01-24 15:51:48 +0100
   @@ -17,7 +17,7 @@
#include stdlib.h
#include sys/ioctl.h
  @@ .
  patch -p0 '@@ .'
  Index: openpkg-src/hping/hping.spec
  
  $ cvs diff -u -r1.7 -r1.8 hping.spec
  --- openpkg-src/hping/hping.spec  1 Jan 2005 10:50:12 -   1.7
  +++ openpkg-src/hping/hping.spec  24 Jan 2005 14:53:18 -  1.8
  @@ -39,7 +39,7 @@
   Group:Network
   License:  GPL
   Version:  %{V_opkg}
  -Release:  20040503
  +Release:  20050124
   
   #   list of sources
   Source0:  http://www.hping.org/hping%{V_dst}.tar.gz
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org


[CVS] OpenPKG: openpkg-src/hping/ hping.patch hping.spec

2004-05-03 Thread Ralf S. Engelschall
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   03-May-2004 20:26:41
  Branch: HEAD Handle: 2004050319264100

  Added files:
openpkg-src/hping   hping.patch
  Modified files:
openpkg-src/hping   hping.spec

  Log:
update to new version; fix substitution option; install without suffix

  Summary:
RevisionChanges Path
1.1 +21 -0  openpkg-src/hping/hping.patch
1.6 +10 -12 openpkg-src/hping/hping.spec
  

  patch -p0 '@@ .'
  Index: openpkg-src/hping/hping.patch
  
  $ cvs diff -u -r0 -r1.1 hping.patch
  --- /dev/null 2004-05-03 20:26:41.0 +0200
  +++ hping.patch   2004-05-03 20:26:41.0 +0200
  @@ -0,0 +1,21 @@
  +Index: libpcap_stuff.c
  +--- libpcap_stuff.c.orig 2002-12-13 15:07:07.0 +0100
   libpcap_stuff.c  2004-05-03 20:14:42.0 +0200
  +@@ -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
  + 
  +@@ -35,7 +35,7 @@
  + printf([open_pcap] pcap_open_live: %s\n, errbuf);
  + return -1;
  + }
  +-#if (!defined OSTYPE_LINUX)  (!defined __sun__)
  ++#if 0
  + /* Return the packets to userspace as fast as possible */
  + if (ioctl(pcap_fileno(pcapfp), BIOCIMMEDIATE, on) == -1)
  + perror([open_pcap] ioctl(... BIOCIMMEDIATE ...));
  @@ .
  patch -p0 '@@ .'
  Index: openpkg-src/hping/hping.spec
  
  $ cvs diff -u -r1.5 -r1.6 hping.spec
  --- openpkg-src/hping/hping.spec  7 Feb 2004 17:55:30 -   1.5
  +++ openpkg-src/hping/hping.spec  3 May 2004 18:26:41 -   1.6
  @@ -24,9 +24,9 @@
   ##
   
   #   package version
  -%define   V_opkg 2.0.0rc2
  -%define   V_dst  2.0.0-rc2
  -%define   V_src  2-rc2
  +%define   V_opkg 2.0.0rc3
  +%define   V_dst  2.0.0-rc3
  +%define   V_src  2-rc3
   
   #   package information
   Name: hping
  @@ -39,10 +39,11 @@
   Group:Network
   License:  GPL
   Version:  %{V_opkg}
  -Release:  20040207
  +Release:  20040503
   
   #   list of sources
   Source0:  http://www.hping.org/hping%{V_dst}.tar.gz
  +Patch0:   hping.patch
   
   #   build information
   Prefix:   %{l_prefix}
  @@ -67,10 +68,11 @@
   
   %prep
   %setup -q -n hping%{V_src}
  +%patch -p0
   %{l_shtool} subst \
   -e 's;\^$PCAP\^;^PCAP=%{l_ldflags} -lpcap^;' \
   -e 's;\^$PCAP_INCLUDE\^;^%{l_cppflags}^;' \
  --s 's;INSTALL_MANPATH;%{l_prefix}/man;' \
  +-e 's;INSTALL_MANPATH;%{l_prefix}/man;' \
   configure
   
   %build
  @@ -89,15 +91,11 @@
   $RPM_BUILD_ROOT%{l_prefix}/sbin \
   $RPM_BUILD_ROOT%{l_prefix}/man/man8
   %{l_shtool} install -c -s -m 700 \
  -hping2 \
  -$RPM_BUILD_ROOT%{l_prefix}/sbin/
  -ln -s hping2 $RPM_BUILD_ROOT%{l_prefix}/sbin/hping
  +hping2 $RPM_BUILD_ROOT%{l_prefix}/sbin/hping
   %{l_shtool} install -c -m 644 \
  -docs/hping2.8 \
  -$RPM_BUILD_ROOT%{l_prefix}/man/man8/
  -ln -s hping2.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/hping.8
  +docs/hping2.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/hping.8
   %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
  -'%attr(0700,%{l_susr},%{l_mgrp}) %{l_prefix}/sbin/hping2'
  +'%attr(0700,%{l_susr},%{l_mgrp}) %{l_prefix}/sbin/hping'
   
   %files -f files
   
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]