Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2001 20:55:33 +0300 (EEST)
From:      kkonstan@daemon.gr
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26273: New port: wmnetmon-0.2p5
Message-ID:  <200104011755.f31HtX426555@emily.cc.duth.gr>

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

>Number:         26273
>Category:       ports
>Synopsis:       New port: wmnetmon-0.2p5
>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:   Sun Apr 01 11:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Konstantinos Konstantinidis
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Demokritos University of Thrace
>Environment:

	

>Description:

	A neat WindowMaker dockapp to monitor up to 63 hosts/services

>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:
#
#	wmnetmon
#	wmnetmon/files
#	wmnetmon/files/patch-aa
#	wmnetmon/files/patch-ab
#	wmnetmon/files/patch-ac
#	wmnetmon/files/patch-ad
#	wmnetmon/files/patch-ae
#	wmnetmon/files/patch-af
#	wmnetmon/files/patch-ag
#	wmnetmon/files/patch-ah
#	wmnetmon/distinfo
#	wmnetmon/pkg-comment
#	wmnetmon/Makefile
#	wmnetmon/pkg-plist
#	wmnetmon/pkg-descr
#
echo c - wmnetmon
mkdir -p wmnetmon > /dev/null 2>&1
echo c - wmnetmon/files
mkdir -p wmnetmon/files > /dev/null 2>&1
echo x - wmnetmon/files/patch-aa
sed 's/^X//' >wmnetmon/files/patch-aa << 'END-of-wmnetmon/files/patch-aa'
X*** configure.orig	Sun Apr  1 15:17:16 2001
X--- configure	Sun Apr  1 15:17:24 2001
X***************
X*** 1605,1611 ****
X  
X  fi
X  
X! for ac_hdr in fcntl.h malloc.h sys/file.h sys/time.h unistd.h sys/types.h ctype.h X11/Xlib.h X11/xpm.h
X  do
X  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
X  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
X--- 1605,1611 ----
X  
X  fi
X  
X! for ac_hdr in fcntl.h stdlib.h sys/file.h sys/time.h unistd.h sys/types.h ctype.h X11/Xlib.h X11/xpm.h
X  do
X  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
X  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
END-of-wmnetmon/files/patch-aa
echo x - wmnetmon/files/patch-ab
sed 's/^X//' >wmnetmon/files/patch-ab << 'END-of-wmnetmon/files/patch-ab'
X*** configure.in.orig	Sun Apr  1 15:17:40 2001
X--- configure.in	Sun Apr  1 15:17:47 2001
X***************
X*** 43,49 ****
X  dnl Checks for header files.
X  
X  AC_HEADER_STDC
X! AC_CHECK_HEADERS(fcntl.h malloc.h sys/file.h sys/time.h unistd.h sys/types.h ctype.h X11/Xlib.h X11/xpm.h,,
X  AC_MSG_ERROR([Couldn't find some include files... aborting]))
X  AC_CHECK_HEADERS(netinet/in_systm.h netinet/in.h netinet/ip.h netinet/ip_icmp.h arpa/inet.h netdb.h sys/socket.h,,
X  AC_MSG_ERROR([Couldn't find network include files])) 
X--- 43,49 ----
X  dnl Checks for header files.
X  
X  AC_HEADER_STDC
X! AC_CHECK_HEADERS(fcntl.h stdlib.h sys/file.h sys/time.h unistd.h sys/types.h ctype.h X11/Xlib.h X11/xpm.h,,
X  AC_MSG_ERROR([Couldn't find some include files... aborting]))
X  AC_CHECK_HEADERS(netinet/in_systm.h netinet/in.h netinet/ip.h netinet/ip_icmp.h arpa/inet.h netdb.h sys/socket.h,,
X  AC_MSG_ERROR([Couldn't find network include files])) 
END-of-wmnetmon/files/patch-ab
echo x - wmnetmon/files/patch-ac
sed 's/^X//' >wmnetmon/files/patch-ac << 'END-of-wmnetmon/files/patch-ac'
X*** Makefile.in.orig	Sat Jul 10 22:04:53 1999
X--- Makefile.in	Sun Apr  1 16:16:21 2001
X***************
X*** 11,19 ****
X  wmnetmon: $(OBJS)
X  	$(CC) $(OBJS) -o wmnetmon $(LDFLAGS)
X  	
X- .o:.c
X- 	$(CC) $(CFLAGS) -c $.c -o $.o
X- 
X  install: wmnetmon
X  	$(INSTALL) wmnetmon $(BINDIR) -o root --mode=4755
X  
X--- 11,16 ----
END-of-wmnetmon/files/patch-ac
echo x - wmnetmon/files/patch-ad
sed 's/^X//' >wmnetmon/files/patch-ad << 'END-of-wmnetmon/files/patch-ad'
X*** leds.c.orig	Sun Apr  1 15:18:44 2001
X--- leds.c	Sun Apr  1 15:19:01 2001
X***************
X*** 1,5 ****
X--- 1,7 ----
X  #include <stdlib.h>
X+ #ifndef __FreeBSD__
X  #include <malloc.h>
X+ #endif
X  #include <X11/xpm.h>
X  #include <stdio.h>
X  #include "list.h"
END-of-wmnetmon/files/patch-ad
echo x - wmnetmon/files/patch-ae
sed 's/^X//' >wmnetmon/files/patch-ae << 'END-of-wmnetmon/files/patch-ae'
X*** list.c.orig	Sun Apr  1 15:19:28 2001
X--- list.c	Sun Apr  1 15:19:39 2001
X***************
X*** 1,6 ****
X--- 1,8 ----
X  #include "list.h"
X  #include <stdlib.h>
X+ #ifndef __FreeBSD__
X  #include <malloc.h>
X+ #endif
X  #include <string.h>
X  
X  
END-of-wmnetmon/files/patch-ae
echo x - wmnetmon/files/patch-af
sed 's/^X//' >wmnetmon/files/patch-af << 'END-of-wmnetmon/files/patch-af'
X*** pinger.c.orig	Sun Apr  1 15:21:08 2001
X--- pinger.c	Sun Apr  1 15:21:22 2001
X***************
X*** 14,20 ****
X--- 14,22 ----
X  #include <netdb.h>
X  #include <errno.h>
X  #include <stdlib.h>
X+ #ifndef __FreeBSD__
X  #include <malloc.h>
X+ #endif
X  #include <unistd.h>
X  #include "list.h"
X  #include "config.h"
END-of-wmnetmon/files/patch-af
echo x - wmnetmon/files/patch-ag
sed 's/^X//' >wmnetmon/files/patch-ag << 'END-of-wmnetmon/files/patch-ag'
X*** pinger.h.orig	Fri Jul 23 17:08:26 1999
X--- pinger.h	Sun Apr  1 15:30:20 2001
X***************
X*** 2,7 ****
X--- 2,8 ----
X  #define __PINGER_H__
X  
X  
X+ #include <sys/types.h>
X  #include <netinet/in.h>
X  #include "list.h"
X  #include "config.h"
X***************
X*** 47,54 ****
X--- 48,57 ----
X  #define UDP_DPORT dest
X  #endif
X  
X+ #ifndef __FreeBSD__
X  #if ! (defined(__GLIBC__) && (__GLIBC__ >= 2))
X  #define inet_ntoa(x) inet_ntoa(*((struct in_addr *)&(x)))
X+ #endif
X  #endif
X  
X  #define TIMEOUT_SIZE 55
END-of-wmnetmon/files/patch-ag
echo x - wmnetmon/files/patch-ah
sed 's/^X//' >wmnetmon/files/patch-ah << 'END-of-wmnetmon/files/patch-ah'
X*** tcpmonitor.c.orig	Fri Jul 23 16:58:24 1999
X--- tcpmonitor.c	Sun Apr  1 15:32:49 2001
X***************
X*** 12,18 ****
X--- 12,20 ----
X  #include <sys/time.h>
X  #include <arpa/inet.h>
X  #include <stdlib.h>
X+ #ifndef __FreeBSD__
X  #include <malloc.h>
X+ #endif
X  #include <fcntl.h>
X  #include <errno.h>
X  #include "config.h"
X***************
X*** 51,57 ****
X  	if (debug)
X  	fprintf(stderr,"trying to connect (tcp) to port %d at %s...\n", h->tcpport,
X  	    inet_ntoa(h->tcpsock->sin_addr));
X! 	if (connect(h->tcp_socket, (struct sockaddr_in*)h->tcpsock, 
X  	        sizeof(struct sockaddr_in))<0) 
X  	   switch(errno) {
X  		case EISCONN: /* Common.. reported by lots of users 
X--- 53,59 ----
X  	if (debug)
X  	fprintf(stderr,"trying to connect (tcp) to port %d at %s...\n", h->tcpport,
X  	    inet_ntoa(h->tcpsock->sin_addr));
X! 	if (connect(h->tcp_socket, (struct sockaddr*)h->tcpsock, 
X  	        sizeof(struct sockaddr_in))<0) 
X  	   switch(errno) {
X  		case EISCONN: /* Common.. reported by lots of users 
END-of-wmnetmon/files/patch-ah
echo x - wmnetmon/distinfo
sed 's/^X//' >wmnetmon/distinfo << 'END-of-wmnetmon/distinfo'
XMD5 (wmnetmon-0.2p5.tar.gz) = 30dec9fdec039da92a612646cc228e62
END-of-wmnetmon/distinfo
echo x - wmnetmon/pkg-comment
sed 's/^X//' >wmnetmon/pkg-comment << 'END-of-wmnetmon/pkg-comment'
XA host availability monitor intended for the WindowMaker dock
END-of-wmnetmon/pkg-comment
echo x - wmnetmon/Makefile
sed 's/^X//' >wmnetmon/Makefile << 'END-of-wmnetmon/Makefile'
X# New ports collection makefile for:   wmnetmon
X# Date created:		1 April 2001
X# Whom:			Konstantinos Konstantinidis <kkonstan@daemon.gr>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wmnetmon
XPORTVERSION=	0.2p5
XCATEGORIES=	net windowmaker
XMASTER_SITES=	ftp://neubula.utad.pt/pub/wmnetmon/
X
XMAINTAINER=	kkonstan@daemon.gr
X
XUSE_XPM=	YES
XUSE_X_PREFIX=	YES
XGNU_CONFIGURE=	YES
X
XBINMODE=        4755
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/wmnetmon ${PREFIX}/bin
X	@${MKDIR} ${PREFIX}/share/examples/wmnetmon
X	@${INSTALL_DATA} ${WRKSRC}/wmnetmonrc ${PREFIX}/share/examples/wmnetmon
X
X.include <bsd.port.mk>
END-of-wmnetmon/Makefile
echo x - wmnetmon/pkg-plist
sed 's/^X//' >wmnetmon/pkg-plist << 'END-of-wmnetmon/pkg-plist'
Xbin/wmnetmon
Xshare/examples/wmnetmon/wmnetmonrc
X@dirrm share/examples/wmnetmon
END-of-wmnetmon/pkg-plist
echo x - wmnetmon/pkg-descr
sed 's/^X//' >wmnetmon/pkg-descr << 'END-of-wmnetmon/pkg-descr'
XThis application uses an ICMP ping/reply scheme to periodically poll a number
Xof interfaces. The results are displayed as a matrix of leds, that are green
Xif the interface is alive, yellow if it did not respond once, and flashing red
Xif it keeps not responding.
X
XYou can easily check which system corresponds to each led by pointing the mouse
Xover the leds.
X
XIt is intended to be run from the WindowMaker dock, and it can monitor up to
X63 interfaces.
X
XWWW: http://neubula.utad.pt/~alvieboy/new/wmaker.html.en
X
X-- K. Konstantinidis <kkonstan@daemon.gr>
END-of-wmnetmon/pkg-descr
exit

>Release-Note:
>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?200104011755.f31HtX426555>