On Thu, Apr 13, 2006, robert j. wozny wrote:
>On Apr 13, 2006, at 5:56 PM, Mark Keller wrote:
>
>>Anyhow, the Bill's version doesn't build on Solaris 9 sparc either.  
>>Just in
>>case anyone cares.
>
>try older version/spec from <http://web.ziew.org/storage/openpkg/src/ 
>iftop/>. It's build and works on solaris/sparc. (but doesn't work on  
>macosx)

I just tried this on the rm7 sparc9 system, with the attache
iftop.spec file, and it fails in the POSIX threads test.  When I
extracted the test conftest.c file from config.log, and tried
compiling it with the command from config.log, it compiled
without errors.

I'm very much out of practice dealing with Solaris, and don't
understand what it is doing.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``If you make yourselves sheep, the wolves will eat you'' -- Benjamin Franklin
##
##  iftop.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package information
Name:         iftop
Summary:      Display Network Interface Activity
URL:          http://www.ex-parrot.com/~pdw/iftop
Vendor:       Paul Warren & Chris Lightfoot
Packager:     OpenPKG
Distribution: OpenPKG
Class:        EVAL
Group:        Network
License:      GPL
Version:      0.17
Release:      20060414

#   list of sources
Source0:      
http://www.ex-parrot.com/~pdw/iftop/download/iftop-%{version}.tar.gz
Patch0:       iftop.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20040130
PreReq:       OpenPKG, openpkg >= 20040130
BuildPreReq:  libpcap, ncurses
PreReq:       libpcap, ncurses
AutoReq:      no
AutoReqProv:  no

%description
    iftop does for network usage what top(1) does for CPU usage. It
    listens to network traffic on a named interface and displays a table
    of current bandwidth usage by pairs of hosts.

%track
    prog iftop = {
        version   = %{version}
        url       = http://www.ex-parrot.com/~pdw/iftop/download/
        regex     = iftop-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %patch -p0

%build
    case "%{l_target t}" in #{(
        *-sunos5*) # Solaris 9
            %{l_shtool} subst \
                -e 's;u_int32_t;uint32_t;g' \
                options.c
            ;;
    esac #}

    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CPPFLAGS="%{l_cppflags}" \
    LDFLAGS="%{l_ldflags}" \
    ./configure \
        --prefix=%{l_prefix} \
        --disable-shared

    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

Reply via email to