OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Robert J. Wozny Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 17-Apr-2006 20:56:57 Branch: HEAD Handle: 2006041719565700 Added files: openpkg-src/iftop iftop.patch Modified files: openpkg-src/iftop iftop.spec Log: modifying package: iftop-0.17 20060413 -> 20060417 Summary: Revision Changes Path 1.1 +12 -0 openpkg-src/iftop/iftop.patch 1.2 +14 -3 openpkg-src/iftop/iftop.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/iftop/iftop.patch ============================================================================ $ cvs diff -u -r0 -r1.1 iftop.patch --- /dev/null 2006-04-17 20:56:45 +0200 +++ iftop.patch 2006-04-17 20:56:57 +0200 @@ -0,0 +1,12 @@ +--- dlcommon.h.orig 2003-06-06 23:32:24.000000000 +0200 ++++ dlcommon.h 2006-02-10 18:39:27.960574999 +0100 +@@ -29,9 +29,4 @@ + */ + #define OFFADDR(s, n) (u_char*)((char*)(s) + (int)(n)) + +-/* +- * externs go here +- */ +-extern void sigalrm(); +- + #endif /* !DLCOMMON_H */ @@ . patch -p0 <<'@@ .' Index: openpkg-src/iftop/iftop.spec ============================================================================ $ cvs diff -u -r1.1 -r1.2 iftop.spec --- openpkg-src/iftop/iftop.spec 13 Apr 2006 17:33:56 -0000 1.1 +++ openpkg-src/iftop/iftop.spec 17 Apr 2006 18:56:57 -0000 1.2 @@ -33,10 +33,11 @@ Group: Network License: GPL Version: 0.17 -Release: 20060413 +Release: 20060417 # list of sources Source0: http://www.ex-parrot.com/~pdw/iftop/download/iftop-%{version}.tar.gz +Patch0: iftop.patch # build information Prefix: %{l_prefix} @@ -62,12 +63,22 @@ %prep %setup -q + %patch -p0 %build + cf="" + lf="" + case "%{l_platform -t}" in + *-freebsd*) pf=freebsd; cf="-pthread"; lf="" ;; + *-linux*) pf=linux; cf="-pthread"; lf="" ;; + *-hpux*) pf=hp-11; cf="-pthread"; lf="" ;; + *-sunos*) pf=solaris; cf="%{l_cppflags ncurses}"; lf="-lpthread" ;; + *-aix*) pf=aix; cf="-pthread"; lf="" ;; + esac CC="%{l_cc}" \ - CFLAGS="%{l_cflags -O}" \ + CFLAGS="%{l_cflags -O} $cf" \ CPPFLAGS="%{l_cppflags}" \ - LDFLAGS="%{l_ldflags}" \ + LDFLAGS="%{l_ldflags} $lf" \ ./configure \ --prefix=%{l_prefix} %{l_make} %{l_mflags -O} @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org