[packages/httping] - updated to 2.2 - added patch to fix incorrect ncurses headers usage - workaround stupid configure

kiesiu kiesiu at pld-linux.org
Tue Apr 9 21:25:15 CEST 2013


commit 3bc39c32c160bf999481f203e4d79115e5fe7587
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Tue Apr 9 21:23:30 2013 +0200

    - updated to 2.2
    - added patch to fix incorrect ncurses headers usage
    - workaround stupid configure script (not autotool)

 httping.spec          | 14 ++++++++++++--
 ncurses-headers.patch | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 2 deletions(-)
---
diff --git a/httping.spec b/httping.spec
index 68a09c3..b93f31e 100644
--- a/httping.spec
+++ b/httping.spec
@@ -1,13 +1,16 @@
 Summary:	Ping-like tool for HTTP requests
 Summary(pl.UTF-8):	Narzędzie do "pingowania" poprzez protokół HTTP
 Name:		httping
-Version:	1.6
+Version:	2.2
 Release:	1
 License:	GPLv2
 Group:		Networking/Utilities
 Source0:	http://www.vanheusden.com/httping/%{name}-%{version}.tgz
-# Source0-md5:	7e8f054077a4b186b924cdd48906e0a2
+# Source0-md5:	622792cfd5116c99d0eff34b730e8737
+Patch0:		ncurses-headers.patch
 URL:		http://www.vanheusden.com/httping/
+BuildRequires:	fftw3-devel
+BuildRequires:	ncurses-devel
 BuildRequires:	openssl-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -26,8 +29,15 @@ statystycznych.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+cat << EOF > makefile.inc
+SSL=yes
+NC=yes
+FW=yes
+EOF
+
 %{__make} \
 	CC="%{__cc}" \
 	DEBUG="" \
diff --git a/ncurses-headers.patch b/ncurses-headers.patch
new file mode 100644
index 0000000..9a57e6a
--- /dev/null
+++ b/ncurses-headers.patch
@@ -0,0 +1,33 @@
+diff -uNr httping-2.2.old/main.c httping-2.2/main.c
+--- httping-2.2.old/main.c	2013-04-04 21:46:48.000000000 +0200
++++ httping-2.2/main.c	2013-04-09 21:12:02.313689100 +0200
+@@ -22,7 +22,7 @@
+ #include <time.h>
+ #include <sys/time.h>
+ #ifdef NC
+-#include <ncurses.h>
++#include <ncurses/ncurses.h>
+ #endif
+ 
+ #include "gen.h"
+diff -uNr httping-2.2.old/nc.c httping-2.2/nc.c
+--- httping-2.2.old/nc.c	2013-04-04 21:46:48.000000000 +0200
++++ httping-2.2/nc.c	2013-04-09 21:12:14.790931078 +0200
+@@ -6,7 +6,7 @@
+ #include <string.h>
+ #include <sys/ioctl.h>
+ 
+-#include <ncurses.h>
++#include <ncurses/ncurses.h>
+ 
+ #include "error.h"
+ #include "gen.h"
+diff -uNr httping-2.2.old/nc.h httping-2.2/nc.h
+--- httping-2.2.old/nc.h	2013-04-04 21:46:48.000000000 +0200
++++ httping-2.2/nc.h	2013-04-09 21:12:23.691341465 +0200
+@@ -1,4 +1,4 @@
+-#include <ncurses.h>
++#include <ncurses/ncurses.h>
+ 
+ extern char win_resize;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/httping.git/commitdiff/3bc39c32c160bf999481f203e4d79115e5fe7587



More information about the pld-cvs-commit mailing list