aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-04-01 06:32:04 +0800
committeredwin <edwin@FreeBSD.org>2003-04-01 06:32:04 +0800
commit461d7d16858b9b07e4b5cbe06977c6552ab13d8e (patch)
treeb5b1f72be4e6f9c5c12eb847facecaf8bccdf7b9 /games
parentf85d7f5164bdc84bbc2b85bd3085124b8779bc48 (diff)
downloadfreebsd-ports-gnome-461d7d16858b9b07e4b5cbe06977c6552ab13d8e.tar.gz
freebsd-ports-gnome-461d7d16858b9b07e4b5cbe06977c6552ab13d8e.tar.zst
freebsd-ports-gnome-461d7d16858b9b07e4b5cbe06977c6552ab13d8e.zip
new port: games/nwnusers Monitoring Neverwinter Nights Servers with MRTG
A very easy to use tool for monitoring the number of active players on a (remote) Neverwinter Nights Server with MRTG. PR: ports/46370 Submitted by: Andreas Heil <ah@linux-hq.de>
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/nwnusers/Makefile27
-rw-r--r--games/nwnusers/distinfo1
-rw-r--r--games/nwnusers/pkg-descr6
-rw-r--r--games/nwnusers/pkg-message14
-rw-r--r--games/nwnusers/pkg-plist1
6 files changed, 50 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index f84c31274429..eadd7c68b6a7 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -232,6 +232,7 @@
SUBDIR += nighthawk
SUBDIR += nil
SUBDIR += nonsense
+ SUBDIR += nwnusers
SUBDIR += omega
SUBDIR += oneko
SUBDIR += oneko-sakura
diff --git a/games/nwnusers/Makefile b/games/nwnusers/Makefile
new file mode 100644
index 000000000000..0856350edc79
--- /dev/null
+++ b/games/nwnusers/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: nwnusers
+# Date created: 19 December 2002
+# Whom: Andreas Heil <ah@linux-hq.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= nwnusers
+PORTVERSION= 1.2
+CATEGORIES= games
+MASTER_SITES= http://www.linux-hq.de/pub/
+DISTNAME= nwnusers-v1.2
+
+MAINTAINER= ah@linux-hq.de
+COMMENT= A tool for monitoring Neverwinter Nights Server with mrtg
+
+do-build:
+ cd ${WRKDIR}/${DISTNAME} &&\
+ ${CC} ${CFLAGS} -Wall -Werror -DVERSION=\"${PORTVERSION}\" -o nwnusers nwnusers.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/nwnusers ${PREFIX}/bin/nwnusers
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/games/nwnusers/distinfo b/games/nwnusers/distinfo
new file mode 100644
index 000000000000..f32b19f55618
--- /dev/null
+++ b/games/nwnusers/distinfo
@@ -0,0 +1 @@
+MD5 (nwnusers-v1.2.tar.gz) = fa0d60ba704de7a57db5e23170727741
diff --git a/games/nwnusers/pkg-descr b/games/nwnusers/pkg-descr
new file mode 100644
index 000000000000..2bde0dc72cc6
--- /dev/null
+++ b/games/nwnusers/pkg-descr
@@ -0,0 +1,6 @@
+A tool for monitoring Neverwinter Nights Server with mrtg
+
+WWW: http://www.linux-hq.de/pub/
+
+- Andreas Heil
+ah@linux-hq.de
diff --git a/games/nwnusers/pkg-message b/games/nwnusers/pkg-message
new file mode 100644
index 000000000000..8e63b163077b
--- /dev/null
+++ b/games/nwnusers/pkg-message
@@ -0,0 +1,14 @@
+##############################################################################
+Add somthing like this to your mrtg.cfg:
+
+Target[nwn]: `${PREFIX}/bin/nwnusers some.nwn.server`
+MaxBytes[nwn]: 64
+Title[nwn]: Number of Players on some.nwn.server
+PageTop[nwn]: <H1>Number of Players on some.nwn.server</H1>
+Options[nwn]: growright,noinfo,integer,gauge
+YLegend[nwn]: Players
+ShortLegend[nwn]: Players
+Legend1[nwn]: Number of Players
+LegendI[nwn]: :
+LegendO[nwn]:
+##############################################################################
diff --git a/games/nwnusers/pkg-plist b/games/nwnusers/pkg-plist
new file mode 100644
index 000000000000..58c1250aa047
--- /dev/null
+++ b/games/nwnusers/pkg-plist
@@ -0,0 +1 @@
+bin/nwnusers