Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Aug 1998 18:44:08 -0700 (PDT)
From:      billf@jade.chc-chimes.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   ports/7566: [re]submission of new port: net/ntop
Message-ID:  <199808110144.SAA10098@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         7566
>Category:       ports
>Synopsis:       [re]submission of new port: net/ntop
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 10 18:50:01 PDT 1998
>Last-Modified:
>Originator:     Bill Fumerola
>Organization:
Computer Horizons Corp
>Release:        FreeBSD jade.chc-chimes.com 2.2.7-STABLE
>Environment:
FreeBSD jade.chc-chimes.com 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Aug 10 14:34:07 EDT 1998
billf@jade.chc-chimes.com:/usr/cvs-update/src/sys/compile/JADED  i386
>Description:
shar follows. I still had to use most of my old patches because for some 
reason they still try to include headers that aren't installed and aren't needed.
next release they should make some sort of #ifdef.

Also for some ungodly reason they include /usr/5include and they try and usr /usr/5lib as a libdir.
perhaps it's just my lack of knowledge of C, but WTF are they trying to do.

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       .
#       ./Makefile
#       ./files
#       ./files/md5
#       ./pkg
#       ./pkg/COMMENT
#       ./pkg/DESCR
#       ./pkg/PLIST
#       ./patches
#       ./patches/patch-aa
#       ./patches/patch-ab
#       ./patches/patch-ac
#       ./patches/patch-ad
#       ./patches/patch-ae
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:   ntop
X# Version required:    0.2.2
X# Date created:        10 August 1998
X# Whom:                Bill Fumerola <billf@chc-chimes.com>
X#
X# $Id: $
X#
X
XDISTNAME=      ntop-0.4-src
XPKGNAME=       ntop-0.4
XCATEGORIES=    net
XMASTER_SITES=  http://jake.unipi.it/~deri/ntop/
X
XMAINTAINER=    billf@chc-chimes.com
X
XWRKSRC=                ${WRKDIR}/${PKGNAME}
XUSE_AUTOCONF=  yes
XALL_TARGET=
X
Xpost-install:
X
X       strip ${PREFIX}/sbin/ntop
X
X.include <bsd.port.mk>
END-of-./Makefile
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/md5
sed 's/^X//' >./files/md5 << 'END-of-./files/md5'
XMD5 (ntop-0.4-src.tar.gz) = 6867ac4fd7390de478ce0c401c11e23e
END-of-./files/md5
echo c - ./pkg
mkdir -p ./pkg > /dev/null 2>&1
echo x - ./pkg/COMMENT
sed 's/^X//' >./pkg/COMMENT << 'END-of-./pkg/COMMENT'
Xshows the network usage, with an interface similar to top(1)
END-of-./pkg/COMMENT
echo x - ./pkg/DESCR
sed 's/^X//' >./pkg/DESCR << 'END-of-./pkg/DESCR'
Xntop is a tool that shows the network usage, similar to what the popular top
XUnix command does. ntop is based on pcapture
X
Xhttp://jake.unipi.it/~deri/ntop/
X
XBill Fumerola <billf@chc-chimes.com>
END-of-./pkg/DESCR
echo x - ./pkg/PLIST
sed 's/^X//' >./pkg/PLIST << 'END-of-./pkg/PLIST'
Xsbin/ntop
END-of-./pkg/PLIST
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X--- ntop.h.old Mon Aug 10 21:17:29 1998
X+++ ntop.h     Mon Aug 10 21:17:50 1998
X@@ -38,7 +38,9 @@
X #include <stdio.h>
X #include <stdlib.h>
X #include <string.h>
X+/*
X #include <ethertype.h>
X+*/ 
X #include <setjmp.h>
X #include <pcap.h>
X 
END-of-./patches/patch-aa
echo x - ./patches/patch-ab
sed 's/^X//' >./patches/patch-ab << 'END-of-./patches/patch-ab'
X--- interface.h.old    Mon Aug 10 21:18:53 1998
X+++ interface.h        Mon Aug 10 21:19:12 1998
X@@ -25,8 +25,9 @@
X  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
X  */
X 
X-
X+/*
X #include <gnuc.h>
X+*/
X #ifdef HAVE_OS_PROTO_H
X #include "os-proto.h"
X #endif
END-of-./patches/patch-ab
echo x - ./patches/patch-ac
sed 's/^X//' >./patches/patch-ac << 'END-of-./patches/patch-ac'
X--- setsignal.c.old    Mon Aug 10 21:20:09 1998
X+++ setsignal.c        Mon Aug 10 21:20:31 1998
X@@ -40,7 +40,9 @@
X #include <string.h>
X #endif
X 
X+/*
X #include <gnuc.h>
X+*/
X #ifdef HAVE_OS_PROTO_H
X #include "os-proto.h"
X #endif
END-of-./patches/patch-ac
echo x - ./patches/patch-ad
sed 's/^X//' >./patches/patch-ad << 'END-of-./patches/patch-ad'
X--- Makefile.in.old    Mon Aug 10 21:23:13 1998
X+++ Makefile.in        Mon Aug 10 21:23:39 1998
X@@ -38,17 +38,17 @@
X CC = @CC@
X PROG = ntop
X CCOPT = @V_CCOPT@
X-INCLS = -I. -I/usr/5include @V_INCLS@
X+INCLS = -I. -I/usr/include @V_INCLS@
X DEFS = @DEFS@
X 
X # Standard CFLAGS
X CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
X 
X # Standard LDFLAGS
X-LDFLAGS = @LDFLAGS@ -L/usr/5lib
X+LDFLAGS = @LDFLAGS@ -L/usr/lib
X 
X # Standard LIBS
X-LIBS = @LIBS@
X+LIBS = @LIBS@ -lncurses
X 
X INSTALL = @INSTALL@
X 
END-of-./patches/patch-ad
echo x - ./patches/patch-ae
sed 's/^X//' >./patches/patch-ae << 'END-of-./patches/patch-ae'
X--- ntop.c.old Mon Aug 10 21:25:09 1998
X+++ ntop.c     Mon Aug 10 21:25:44 1998
X@@ -298,11 +298,11 @@
X usage()
X {
X   extern char version[];
X-  extern char pcap_version[];
X+/*  extern char pcap_version[]; */
X 
X   (void)fprintf(stderr, "%s v.%s for %s\n", program_name, 
X               version, osName);
X-  (void)fprintf(stderr, "[libpcap version %s]\n", pcap_version);
X+/*  (void)fprintf(stderr, "[libpcap version %s]\n", pcap_version); */
X   (void)fprintf(stderr, "Written by %s.\n", author);
X   (void)fprintf(stderr, "\nUsage: %s [-r (refresh time [default 3 secs]]\n\t"
X               "    [-n (numeric IP addresses)]\n\t"
END-of-./patches/patch-ae
exit

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808110144.SAA10098>