Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2002 09:40:20 +0100 (CET)
From:      Andreas Heil <ah@linux-hq.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46370: new port: games/nwnusers Monitoring Neverwinter Nights Servers with MRTG
Message-ID:  <200212190840.gBJ8eKMw021078@fbsd-01.rootpark.de>

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

>Number:         46370
>Category:       ports
>Synopsis:       new port: games/nwnusers Monitoring Neverwinter Nights Servers with MRTG
>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:   Thu Dec 19 00:50:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Heil
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD fbsd-01.rootpark.de 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #0: Mon Nov 18 13:43:29 CET 2002 root@fbsd-01.rootpark.de:/usr/obj/usr/src/sys/ROOTPARK i386


	
>Description:
	A very easy to use tool for monitoring the number of active
	players on a (remote) Neverwinter Nights Server with MRTG.
>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:
#
#	nwnusers
#	nwnusers/pkg-plist
#	nwnusers/pkg-descr
#	nwnusers/pkg-comment
#	nwnusers/Makefile
#	nwnusers/distinfo
#	nwnusers/pkg-message
#
echo c - nwnusers
mkdir -p nwnusers > /dev/null 2>&1
echo x - nwnusers/pkg-plist
sed 's/^X//' >nwnusers/pkg-plist << 'END-of-nwnusers/pkg-plist'
Xbin/nwnusers
END-of-nwnusers/pkg-plist
echo x - nwnusers/pkg-descr
sed 's/^X//' >nwnusers/pkg-descr << 'END-of-nwnusers/pkg-descr'
XA tool for monitoring Neverwinter Nights Server with mrtg
X
XWWW: http://www.linux-hq.de/pub/
X
X- Andreas Heil
Xah@linux-hq.de
END-of-nwnusers/pkg-descr
echo x - nwnusers/pkg-comment
sed 's/^X//' >nwnusers/pkg-comment << 'END-of-nwnusers/pkg-comment'
XA tool for monitoring Neverwinter Nights Server with mrtg
END-of-nwnusers/pkg-comment
echo x - nwnusers/Makefile
sed 's/^X//' >nwnusers/Makefile << 'END-of-nwnusers/Makefile'
X# New ports collection makefile for: nwnusers
X# Date created: 19 December 2002
X# Whom: Andreas Heil <ah@linux-hq.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=     nwnusers
XPORTVERSION=  1.2
XCATEGORIES=   games
XMASTER_SITES= http://www.linux-hq.de/pub/
XDISTNAME=     nwnusers-v1.2
X
XMAINTAINER=   ah@linux-hq.de
X
Xdo-build:
X	cd ${WRKDIR}/${DISTNAME} &&\
X	${CC} ${CFLAGS} -Wall -Werror -DVERSION=\"${PORTVERSION}\" -o nwnusers nwnusers.c
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/nwnusers ${PREFIX}/bin/nwnusers
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-nwnusers/Makefile
echo x - nwnusers/distinfo
sed 's/^X//' >nwnusers/distinfo << 'END-of-nwnusers/distinfo'
XMD5 (nwnusers-v1.2.tar.gz) = fa0d60ba704de7a57db5e23170727741
END-of-nwnusers/distinfo
echo x - nwnusers/pkg-message
sed 's/^X//' >nwnusers/pkg-message << 'END-of-nwnusers/pkg-message'
X##############################################################################
XAdd somthing like this to your mrtg.cfg:
X
XTarget[nwn]: `${PREFIX}/bin/nwnusers some.nwn.server`
XMaxBytes[nwn]: 64
XTitle[nwn]: Number of Players on some.nwn.server
XPageTop[nwn]: <H1>Number of Players on some.nwn.server</H1>
XOptions[nwn]: growright,noinfo,integer,gauge
XYLegend[nwn]: Players
XShortLegend[nwn]: Players
XLegend1[nwn]: Number of Players
XLegendI[nwn]: :
XLegendO[nwn]:
X##############################################################################
END-of-nwnusers/pkg-message
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?200212190840.gBJ8eKMw021078>