packages: iftop/iftop.spec, iftop/iftop-resolver.patch (NEW), iftop/iftop-n...

arekm arekm at pld-linux.org
Sun Nov 13 11:24:25 CET 2011


Author: arekm                        Date: Sun Nov 13 10:24:25 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.0pre2 (supports ipv6; use getnameinfo for resolving)

---- Files affected:
packages/iftop:
   iftop.spec (1.25 -> 1.26) , iftop-resolver.patch (NONE -> 1.1)  (NEW), iftop-ncurses.patch (1.1 -> NONE)  (REMOVED)

---- Diffs:

================================================================
Index: packages/iftop/iftop.spec
diff -u packages/iftop/iftop.spec:1.25 packages/iftop/iftop.spec:1.26
--- packages/iftop/iftop.spec:1.25	Thu Sep  1 19:05:47 2011
+++ packages/iftop/iftop.spec	Sun Nov 13 11:24:20 2011
@@ -1,15 +1,16 @@
 # $Revision$, $Date$
+%define	pre	pre2
 Summary:	Display bandwidth usage on an interface
 Summary(pl.UTF-8):	Wyświetlanie obciążenia na danym interfejsie
 Name:		iftop
-Version:	0.17
-Release:	4
+Version:	1.0
+Release:	0.%{pre}.1
 Epoch:		1
 License:	GPL v2
 Group:		Networking/Utilities
-Source0:	http://www.ex-parrot.com/~pdw/iftop/download/%{name}-%{version}.tar.gz
-# Source0-md5:	062bc8fb3856580319857326e0b8752d
-Patch0:		%{name}-ncurses.patch
+Source0:	http://www.ex-parrot.com/~pdw/iftop/download/%{name}-%{version}%{pre}.tar.gz
+# Source0-md5:	fef521a49ec0122458d02c64212af3c5
+Patch0:		%{name}-resolver.patch
 URL:		http://www.ex-parrot.com/~pdw/iftop/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -31,8 +32,8 @@
 wolne?".
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n %{name}-%{version}%{pre}
+#%patch0 -p1
 
 %build
 rm -f missing
@@ -41,7 +42,8 @@
 %{__autoconf}
 %{__automake}
 %configure \
-	LIBS="-ltinfo"
+	CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
+	--with-resolver=getnameinfo
 %{__make}
 
 %install
@@ -65,6 +67,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.26  2011/11/13 10:24:20  arekm
+- up to 1.0pre2 (supports ipv6; use getnameinfo for resolving)
+
 Revision 1.25  2011/09/01 17:05:47  arekm
 - release 4
 

================================================================
Index: packages/iftop/iftop-resolver.patch
diff -u /dev/null packages/iftop/iftop-resolver.patch:1.1
--- /dev/null	Sun Nov 13 11:24:25 2011
+++ packages/iftop/iftop-resolver.patch	Sun Nov 13 11:24:20 2011
@@ -0,0 +1,18 @@
+--- iftop-1.0pre2/configure.in~	2011-11-13 11:21:13.000000000 +0100
++++ iftop-1.0pre2/configure.in	2011-11-13 11:22:16.996495550 +0100
+@@ -172,13 +172,14 @@
+ dnl From this point on, resolver is our preferred resolver given the
+ dnl experiments we've done so far, or "guess" if we have no idea.
+ specified_resolver=$resolver
+-if test x$specified_resolver = xguess ; then
++if test x$specified_resolver = xguess -o test x$specified_resolver = xgetnameinfo; then
+     dnl Best possibility is getnameinfo.
+     use_getnameinfo=0
+     AC_SEARCH_LIBS(getnameinfo, [], [use_getnameinfo=1])
+ 
+     if test $use_getnameinfo = 1 ; then
+         dnl Done.
++        resolver=getnameinfo
+         AC_DEFINE(USE_GETNAMEINFO, 1, [use getnameinfo for name resolution])
+     else
+ 	dnl Best hope is netdb, which presently means gethostbyaddr_r.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/iftop/iftop.spec?r1=1.25&r2=1.26&f=u



More information about the pld-cvs-commit mailing list