summaryrefslogtreecommitdiff
path: root/net/wmqmon
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-05-30 03:14:46 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-05-30 03:14:46 +0000
commitf900f71f1ceae7b7dbe4f60f7bb654b848e4091e (patch)
treef487974104e388145338425875b4311f1e389e3f /net/wmqmon
parentNew port: Window Maker dockapp that displays cpu load and a realtime (diff)
New port: Window Maker dockapp that monitors Quake 3 and Half-Life
servers Submitted by: Patrick Li <pat@databits.net>
Notes
Notes: svn path=/head/; revision=43299
Diffstat (limited to 'net/wmqmon')
-rw-r--r--net/wmqmon/Makefile42
-rw-r--r--net/wmqmon/distinfo1
-rw-r--r--net/wmqmon/files/patch-Makefile29
-rw-r--r--net/wmqmon/files/patch-wmqmon.c17
-rw-r--r--net/wmqmon/pkg-comment1
-rw-r--r--net/wmqmon/pkg-descr12
-rw-r--r--net/wmqmon/pkg-plist6
7 files changed, 108 insertions, 0 deletions
diff --git a/net/wmqmon/Makefile b/net/wmqmon/Makefile
new file mode 100644
index 000000000000..5bfbcc770418
--- /dev/null
+++ b/net/wmqmon/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: wmqmon
+# Date created: Mon May 28 13:59:51 EDT 2001
+# Whom: Patrick Li <pat@databits.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= wmqmon
+PORTVERSION= 0.7
+CATEGORIES= net windowmaker
+MASTER_SITES= http://www.gibfest.org/~w1nter/
+DISTNAME= ${PORTNAME}.${PORTVERSION}
+
+MAINTAINER= pat@databits.net
+
+ONLY_FOR_ARCHS= i386
+WRKSRC= ${WRKDIR}/${PORTNAME}/${PORTNAME}
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+USE_XPM= yes
+
+do-configure:
+ @${PERL} -pi -ne "s|/usr/X11R6/|${X11BASE}/|" \
+ ${WRKSRC}/Makefile
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ @${ECHO} "===> Installing wmqmon.rcfile.example in ${PREFIX}/share/examples/${PORTNAME}"
+ @${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
+ @${INSTALL_DATA} ${WRKSRC}/wmqmon.rcfile.example ${PREFIX}/share/examples/${PORTNAME}
+ @${ECHO} "===> Modify to your config and copy to ~/.wmqmon.rcfile.example"
+.ifndef(NOPORTDOCS)
+ @${ECHO} "===> Installing README in ${PREFIX}/share/doc/${PORTNAME}"
+ @${ECHO} "===> Please read it for usage instructions"
+ @${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 555 \
+ ${PREFIX}/share/doc/${PORTNAME}
+.for file in BUGS README
+ @${INSTALL_DATA} ${WRKSRC}/../${file} ${PREFIX}/share/doc/${PORTNAME}
+.endfor
+.endif # !NOPORTDOCS
+
+.include <bsd.port.mk>
diff --git a/net/wmqmon/distinfo b/net/wmqmon/distinfo
new file mode 100644
index 000000000000..c3687853fd3f
--- /dev/null
+++ b/net/wmqmon/distinfo
@@ -0,0 +1 @@
+MD5 (wmqmon.0.7.tar.gz) = 9cf9f48c7e6e1d65c071d764dcabfa0d
diff --git a/net/wmqmon/files/patch-Makefile b/net/wmqmon/files/patch-Makefile
new file mode 100644
index 000000000000..507466657276
--- /dev/null
+++ b/net/wmqmon/files/patch-Makefile
@@ -0,0 +1,29 @@
+--- Makefile.orig Fri Feb 23 06:47:50 2001
++++ Makefile Tue May 29 15:39:34 2001
+@@ -21,14 +21,14 @@
+ #
+ #
+
+-CC = gcc
+-CFLAGS = -O2 -Wall
+-INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
++CFLAGS += -Wall
++INCDIR = -I/usr/X11R6/include
+ DESTDIR= /usr/local
+ LIBDIR = -L/usr/X11R6/lib
+
+ # for Linux
+ LIBS = -lXpm -lX11 -lXext
++LIBS+= -lcompat
+
+ # for Solaris
+ # LIBS = -lXpm -lX11 -lXext -lsocket -lnsl
+@@ -39,7 +39,7 @@
+ ../wmgeneral/misc.o \
+ ../wmgeneral/list.o
+
+-.cpp.o:
++.c.o:
+ $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
+
+
diff --git a/net/wmqmon/files/patch-wmqmon.c b/net/wmqmon/files/patch-wmqmon.c
new file mode 100644
index 000000000000..b762bfea6db4
--- /dev/null
+++ b/net/wmqmon/files/patch-wmqmon.c
@@ -0,0 +1,17 @@
+--- wmqmon.c.orig Fri Feb 23 04:57:29 2001
++++ wmqmon.c Mon May 28 15:01:01 2001
+@@ -33,13 +33,13 @@
+ #define EMAIL "w1nter@gibfest.org"
+ #define WEBPAGE "http://www.gibfest.org/~w1nter/"
+
+-#include <sys/socket.h>
+ #include <sys/time.h>
+ #include <sys/timeb.h>
+ #include <sys/poll.h>
+ #include <sys/wait.h>
+ #include <sys/param.h>
+ #include <sys/types.h>
++#include <sys/socket.h>
+
+ #include <stdio.h>
+ #include <stdlib.h>
diff --git a/net/wmqmon/pkg-comment b/net/wmqmon/pkg-comment
new file mode 100644
index 000000000000..7e69be10eec2
--- /dev/null
+++ b/net/wmqmon/pkg-comment
@@ -0,0 +1 @@
+Window Maker dockapp that monitors Quake 3 and Half-Life servers
diff --git a/net/wmqmon/pkg-descr b/net/wmqmon/pkg-descr
new file mode 100644
index 000000000000..7886c0326007
--- /dev/null
+++ b/net/wmqmon/pkg-descr
@@ -0,0 +1,12 @@
+wmqmon allows you to keep an eye on any number of Quake 3 Arena
+and Half-Life servers. This of course includes CounterStrike. The
+display currently includes the ping time, number of players, and
+the current map. Note that wmqmon does not interrogate a master
+server for a list of running games. It is intended only to monitor
+a collection of favorite servers that you set up by hand. The
+default configuration file it reads from is $HOME/.wmqmon
+
+WWW: http://www.gibfest.org/~w1nter/
+Author: Jon Pile <w1nter@gibfest.org>
+
+-Patrick Li <pat@databits.net>
diff --git a/net/wmqmon/pkg-plist b/net/wmqmon/pkg-plist
new file mode 100644
index 000000000000..86a9a967ac42
--- /dev/null
+++ b/net/wmqmon/pkg-plist
@@ -0,0 +1,6 @@
+bin/wmqmon
+%%PORTDOCS%%share/doc/wmqmon/BUGS
+%%PORTDOCS%%share/doc/wmqmon/README
+share/examples/wmqmon/wmqmon.rcfile.example
+@dirrm share/examples/wmqmon
+%%PORTDOCS%%@dirrm share/doc/wmqmon