|
|
@@ -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 @@ Class: EVAL
|
|
|
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 @@ AutoReqProv: no
|
|
|
|
|
|
%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 @@ AutoReqProv: no
|
|
|
$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
|
|
|
|