From aheil@fbsd-01.rootpark.de  Thu Dec 19 00:40:38 2002
Return-Path: <aheil@fbsd-01.rootpark.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 05D3437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Dec 2002 00:40:38 -0800 (PST)
Received: from fbsd-01.rootpark.de (fbsd-01.rootpark.de [62.8.207.154])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 933A943EA9
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Dec 2002 00:40:35 -0800 (PST)
	(envelope-from aheil@fbsd-01.rootpark.de)
Received: from fbsd-01.rootpark.de (localhost [127.0.0.1])
	by fbsd-01.rootpark.de (8.12.6/8.12.6) with ESMTP id gBJ8eQU1021079
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Dec 2002 09:40:27 +0100 (CET)
	(envelope-from aheil@fbsd-01.rootpark.de)
Received: (from aheil@localhost)
	by fbsd-01.rootpark.de (8.12.6/8.12.6/Submit) id gBJ8eKMw021078;
	Thu, 19 Dec 2002 09:40:20 +0100 (CET)
Message-Id: <200212190840.gBJ8eKMw021078@fbsd-01.rootpark.de>
Date: Thu, 19 Dec 2002 09:40:20 +0100 (CET)
From: Andreas Heil <ah@linux-hq.de>
Reply-To: Andreas Heil <ah@linux-hq.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: new port: games/nwnusers Monitoring Neverwinter Nights Servers with MRTG
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 19 00:50:00 PST 2002
>Closed-Date:    Mon Mar 31 14:33:00 PST 2003
>Last-Modified:  Mon Mar 31 14:33:00 PST 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Mon Mar 31 14:32:20 PST 2003 
State-Changed-Why:  
Commited, thanks! 
Maybe you want to give the port a RUN_DEPENDS on the MRTG port, so 
that it will automaticly install it this port is installed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46370 
>Unformatted:
