Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2006 10:58:19 +1000 (YAKST)
From:      Alexander Logvinov <ports@logvinov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/104698: [new port] games/quaqut
Message-ID:  <200610230058.k9N0wJuD010951@blg.akavia.ru>
Resent-Message-ID: <200610230100.k9N10V3f069118@freefall.freebsd.org>

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

>Number:         104698
>Category:       ports
>Synopsis:       [new port] games/quaqut
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 23 01:00:31 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.1-RELEASE-p3 i386
>Organization:
>Environment:

>Description:

    Queries information from Unreal Tournament 2004 game servers
    
>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:
#
#	quaqut
#	quaqut/Makefile
#	quaqut/distinfo
#	quaqut/pkg-descr
#	quaqut/files
#	quaqut/files/patch-display.c
#	quaqut/files/quaqut.in
#
echo c - quaqut
mkdir -p quaqut > /dev/null 2>&1
echo x - quaqut/Makefile
sed 's/^X//' >quaqut/Makefile << 'END-of-quaqut/Makefile'
X# New ports collection makefile for:	quaqut
X# Date created:				19 October 2006
X# Whom:					Alexander Logvinov <ports@logvinov.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	quaqut
XPORTVERSION=	0.2.0
XCATEGORIES=	games
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	ports@logvinov.com
XCOMMENT=	Queries information from Unreal Tournament 2004 game servers
X
XHAS_CONFIGURE=	yes
XUSE_RC_SUBR=	${PORTNAME}
XMAN1=		${PORTNAME}.1
XPORTDOCS=	AUTHORS COPYING ChangeLog README
XPLIST_FILES=	bin/${PORTNAME}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for i in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-quaqut/Makefile
echo x - quaqut/distinfo
sed 's/^X//' >quaqut/distinfo << 'END-of-quaqut/distinfo'
XMD5 (quaqut-0.2.0.tar.gz) = eed70af25d2e0255363858d416c8d70f
XSHA256 (quaqut-0.2.0.tar.gz) = 0eb16c36599922c316ccf690428408ec6a0e2c0d1060e01d192d2faf98d4c1e1
XSIZE (quaqut-0.2.0.tar.gz) = 299205
END-of-quaqut/distinfo
echo x - quaqut/pkg-descr
sed 's/^X//' >quaqut/pkg-descr << 'END-of-quaqut/pkg-descr'
XQuaqut is a simple program that queries Unreal Tournament 2004 (TM)
Xgame servers and retrieves information like those available while
Xbrowsing servers in the game. That means information like server
Xname, game type and current map, names and scores of players, and much more.
X
XWWW: http://quaqut.sourceforge.net/
END-of-quaqut/pkg-descr
echo c - quaqut/files
mkdir -p quaqut/files > /dev/null 2>&1
echo x - quaqut/files/patch-display.c
sed 's/^X//' >quaqut/files/patch-display.c << 'END-of-quaqut/files/patch-display.c'
X--- src/display.c.orig	Tue Sep 28 22:49:58 2004
X+++ src/display.c	Thu Oct 19 17:50:41 2006
X@@ -122,7 +122,9 @@
X   
X   if ( quaqut.options & QUAQUT_OPTION_LOGFILE )
X     fclose(destination);
X-  
X+  else
X+    fflush(stdout);
X+    
X   return 1;
X }
X 
END-of-quaqut/files/patch-display.c
echo x - quaqut/files/quaqut.in
sed 's/^X//' >quaqut/files/quaqut.in << 'END-of-quaqut/files/quaqut.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: quaqut
X# REQUIRE: NETWORKING
X#
X# Add the following line to /etc/rc.conf[.local] to enable quaqut
X#
X# quaqut_enable (bool):		Set to "NO" by default.
X#				Set it to "YES" to enable quaqut.
X# quaqut_host (str):		Server hostname.
X# quaqut_logfile (str):		Logfile name.
X# quaqut_interval (number):	Query interval duration.
X#				It must be a number between 10 and 9999.
X#
X
X. %%RC_SUBR%%
X
Xname="quaqut"
Xrcvar=${name}_enable
X
Xload_rc_config $name
X
X: ${quaqut_enable="NO"}
X: ${quaqut_host="some.ut2004server.tld"}
X: ${quaqut_logfile="/var/log/quaqut.log"}
X: ${quaqut_interval="10"}
X
Xcommand="/usr/local/bin/quaqut"
Xcommand_args="-d ${quaqut_interval} ${quaqut_flags} ${quaqut_host} >> ${quaqut_logfile} &"
X
Xrun_rc_command "$1"
END-of-quaqut/files/quaqut.in
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610230058.k9N0wJuD010951>