summaryrefslogtreecommitdiff
path: root/net/wmnetmon
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-04-07 06:16:10 +0000
committerWill Andrews <will@FreeBSD.org>2001-04-07 06:16:10 +0000
commit45d7e712eb09bcfb90a25df7b3e16346bb7e99c3 (patch)
tree76a7920cf6cf75a3052927458d2c3e8d60f6c63f /net/wmnetmon
parentAdd funktrackergold 1.5.2, a curses MOD/FNK music tracker. (diff)
Add wmnetmon 0.2p5, a host availability monitor intended for the
WindowMaker dock. PR: 26273 Submitted by: Konstantinos Konstantinidis <kkonstan@daemon.gr>
Notes
Notes: svn path=/head/; revision=41012
Diffstat (limited to 'net/wmnetmon')
-rw-r--r--net/wmnetmon/Makefile26
-rw-r--r--net/wmnetmon/distinfo1
-rw-r--r--net/wmnetmon/files/patch-Makefile.in14
-rw-r--r--net/wmnetmon/files/patch-configure19
-rw-r--r--net/wmnetmon/files/patch-configure.in19
-rw-r--r--net/wmnetmon/files/patch-leds.c12
-rw-r--r--net/wmnetmon/files/patch-list.c13
-rw-r--r--net/wmnetmon/files/patch-pinger.c14
-rw-r--r--net/wmnetmon/files/patch-pinger.h25
-rw-r--r--net/wmnetmon/files/patch-tcpmonitor.c31
-rw-r--r--net/wmnetmon/pkg-comment1
-rw-r--r--net/wmnetmon/pkg-descr14
-rw-r--r--net/wmnetmon/pkg-plist3
13 files changed, 192 insertions, 0 deletions
diff --git a/net/wmnetmon/Makefile b/net/wmnetmon/Makefile
new file mode 100644
index 000000000000..6f5d676583e9
--- /dev/null
+++ b/net/wmnetmon/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: wmnetmon
+# Date created: 1 April 2001
+# Whom: Konstantinos Konstantinidis <kkonstan@daemon.gr>
+#
+# $FreeBSD$
+#
+
+PORTNAME= wmnetmon
+PORTVERSION= 0.2p5
+CATEGORIES= net windowmaker
+MASTER_SITES= ftp://neubula.utad.pt/pub/wmnetmon/
+
+MAINTAINER= kkonstan@daemon.gr
+
+USE_XPM= YES
+USE_X_PREFIX= YES
+GNU_CONFIGURE= YES
+
+BINMODE= 4755
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/wmnetmon ${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/share/examples/wmnetmon
+ @${INSTALL_DATA} ${WRKSRC}/wmnetmonrc ${PREFIX}/share/examples/wmnetmon
+
+.include <bsd.port.mk>
diff --git a/net/wmnetmon/distinfo b/net/wmnetmon/distinfo
new file mode 100644
index 000000000000..ae3e30749fa7
--- /dev/null
+++ b/net/wmnetmon/distinfo
@@ -0,0 +1 @@
+MD5 (wmnetmon-0.2p5.tar.gz) = 30dec9fdec039da92a612646cc228e62
diff --git a/net/wmnetmon/files/patch-Makefile.in b/net/wmnetmon/files/patch-Makefile.in
new file mode 100644
index 000000000000..cea2c390d796
--- /dev/null
+++ b/net/wmnetmon/files/patch-Makefile.in
@@ -0,0 +1,14 @@
+*** Makefile.in.orig Sat Jul 10 22:04:53 1999
+--- Makefile.in Sun Apr 1 16:16:21 2001
+***************
+*** 11,19 ****
+ wmnetmon: $(OBJS)
+ $(CC) $(OBJS) -o wmnetmon $(LDFLAGS)
+
+- .o:.c
+- $(CC) $(CFLAGS) -c $.c -o $.o
+-
+ install: wmnetmon
+ $(INSTALL) wmnetmon $(BINDIR) -o root --mode=4755
+
+--- 11,16 ----
diff --git a/net/wmnetmon/files/patch-configure b/net/wmnetmon/files/patch-configure
new file mode 100644
index 000000000000..b1b401a12fea
--- /dev/null
+++ b/net/wmnetmon/files/patch-configure
@@ -0,0 +1,19 @@
+*** configure.orig Sun Apr 1 15:17:16 2001
+--- configure Sun Apr 1 15:17:24 2001
+***************
+*** 1605,1611 ****
+
+ fi
+
+! 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
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+--- 1605,1611 ----
+
+ fi
+
+! 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
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
diff --git a/net/wmnetmon/files/patch-configure.in b/net/wmnetmon/files/patch-configure.in
new file mode 100644
index 000000000000..901058ada5b0
--- /dev/null
+++ b/net/wmnetmon/files/patch-configure.in
@@ -0,0 +1,19 @@
+*** configure.in.orig Sun Apr 1 15:17:40 2001
+--- configure.in Sun Apr 1 15:17:47 2001
+***************
+*** 43,49 ****
+ dnl Checks for header files.
+
+ AC_HEADER_STDC
+! 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,,
+ AC_MSG_ERROR([Couldn't find some include files... aborting]))
+ 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,,
+ AC_MSG_ERROR([Couldn't find network include files]))
+--- 43,49 ----
+ dnl Checks for header files.
+
+ AC_HEADER_STDC
+! 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,,
+ AC_MSG_ERROR([Couldn't find some include files... aborting]))
+ 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,,
+ AC_MSG_ERROR([Couldn't find network include files]))
diff --git a/net/wmnetmon/files/patch-leds.c b/net/wmnetmon/files/patch-leds.c
new file mode 100644
index 000000000000..b90e3a9f1718
--- /dev/null
+++ b/net/wmnetmon/files/patch-leds.c
@@ -0,0 +1,12 @@
+*** leds.c.orig Sun Apr 1 15:18:44 2001
+--- leds.c Sun Apr 1 15:19:01 2001
+***************
+*** 1,5 ****
+--- 1,7 ----
+ #include <stdlib.h>
++ #ifndef __FreeBSD__
+ #include <malloc.h>
++ #endif
+ #include <X11/xpm.h>
+ #include <stdio.h>
+ #include "list.h"
diff --git a/net/wmnetmon/files/patch-list.c b/net/wmnetmon/files/patch-list.c
new file mode 100644
index 000000000000..7a7d2545e835
--- /dev/null
+++ b/net/wmnetmon/files/patch-list.c
@@ -0,0 +1,13 @@
+*** list.c.orig Sun Apr 1 15:19:28 2001
+--- list.c Sun Apr 1 15:19:39 2001
+***************
+*** 1,6 ****
+--- 1,8 ----
+ #include "list.h"
+ #include <stdlib.h>
++ #ifndef __FreeBSD__
+ #include <malloc.h>
++ #endif
+ #include <string.h>
+
+
diff --git a/net/wmnetmon/files/patch-pinger.c b/net/wmnetmon/files/patch-pinger.c
new file mode 100644
index 000000000000..033b91a6639d
--- /dev/null
+++ b/net/wmnetmon/files/patch-pinger.c
@@ -0,0 +1,14 @@
+*** pinger.c.orig Sun Apr 1 15:21:08 2001
+--- pinger.c Sun Apr 1 15:21:22 2001
+***************
+*** 14,20 ****
+--- 14,22 ----
+ #include <netdb.h>
+ #include <errno.h>
+ #include <stdlib.h>
++ #ifndef __FreeBSD__
+ #include <malloc.h>
++ #endif
+ #include <unistd.h>
+ #include "list.h"
+ #include "config.h"
diff --git a/net/wmnetmon/files/patch-pinger.h b/net/wmnetmon/files/patch-pinger.h
new file mode 100644
index 000000000000..ee4abbc5de5c
--- /dev/null
+++ b/net/wmnetmon/files/patch-pinger.h
@@ -0,0 +1,25 @@
+*** pinger.h.orig Fri Jul 23 17:08:26 1999
+--- pinger.h Sun Apr 1 15:30:20 2001
+***************
+*** 2,7 ****
+--- 2,8 ----
+ #define __PINGER_H__
+
+
++ #include <sys/types.h>
+ #include <netinet/in.h>
+ #include "list.h"
+ #include "config.h"
+***************
+*** 47,54 ****
+--- 48,57 ----
+ #define UDP_DPORT dest
+ #endif
+
++ #ifndef __FreeBSD__
+ #if ! (defined(__GLIBC__) && (__GLIBC__ >= 2))
+ #define inet_ntoa(x) inet_ntoa(*((struct in_addr *)&(x)))
++ #endif
+ #endif
+
+ #define TIMEOUT_SIZE 55
diff --git a/net/wmnetmon/files/patch-tcpmonitor.c b/net/wmnetmon/files/patch-tcpmonitor.c
new file mode 100644
index 000000000000..379db455096a
--- /dev/null
+++ b/net/wmnetmon/files/patch-tcpmonitor.c
@@ -0,0 +1,31 @@
+*** tcpmonitor.c.orig Fri Jul 23 16:58:24 1999
+--- tcpmonitor.c Sun Apr 1 15:32:49 2001
+***************
+*** 12,18 ****
+--- 12,20 ----
+ #include <sys/time.h>
+ #include <arpa/inet.h>
+ #include <stdlib.h>
++ #ifndef __FreeBSD__
+ #include <malloc.h>
++ #endif
+ #include <fcntl.h>
+ #include <errno.h>
+ #include "config.h"
+***************
+*** 51,57 ****
+ if (debug)
+ fprintf(stderr,"trying to connect (tcp) to port %d at %s...\n", h->tcpport,
+ inet_ntoa(h->tcpsock->sin_addr));
+! if (connect(h->tcp_socket, (struct sockaddr_in*)h->tcpsock,
+ sizeof(struct sockaddr_in))<0)
+ switch(errno) {
+ case EISCONN: /* Common.. reported by lots of users
+--- 53,59 ----
+ if (debug)
+ fprintf(stderr,"trying to connect (tcp) to port %d at %s...\n", h->tcpport,
+ inet_ntoa(h->tcpsock->sin_addr));
+! if (connect(h->tcp_socket, (struct sockaddr*)h->tcpsock,
+ sizeof(struct sockaddr_in))<0)
+ switch(errno) {
+ case EISCONN: /* Common.. reported by lots of users
diff --git a/net/wmnetmon/pkg-comment b/net/wmnetmon/pkg-comment
new file mode 100644
index 000000000000..6e743225b2fc
--- /dev/null
+++ b/net/wmnetmon/pkg-comment
@@ -0,0 +1 @@
+A host availability monitor intended for the WindowMaker dock
diff --git a/net/wmnetmon/pkg-descr b/net/wmnetmon/pkg-descr
new file mode 100644
index 000000000000..6d46dae8b2e3
--- /dev/null
+++ b/net/wmnetmon/pkg-descr
@@ -0,0 +1,14 @@
+This application uses an ICMP ping/reply scheme to periodically poll a number
+of interfaces. The results are displayed as a matrix of leds, that are green
+if the interface is alive, yellow if it did not respond once, and flashing red
+if it keeps not responding.
+
+You can easily check which system corresponds to each led by pointing the mouse
+over the leds.
+
+It is intended to be run from the WindowMaker dock, and it can monitor up to
+63 interfaces.
+
+WWW: http://neubula.utad.pt/~alvieboy/new/wmaker.html.en
+
+-- K. Konstantinidis <kkonstan@daemon.gr>
diff --git a/net/wmnetmon/pkg-plist b/net/wmnetmon/pkg-plist
new file mode 100644
index 000000000000..a7fcfc42282b
--- /dev/null
+++ b/net/wmnetmon/pkg-plist
@@ -0,0 +1,3 @@
+bin/wmnetmon
+share/examples/wmnetmon/wmnetmonrc
+@dirrm share/examples/wmnetmon