From owner-svn-ports-head@freebsd.org Thu Jan 26 10:59:49 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12F2FCC1C7A; Thu, 26 Jan 2017 10:59:49 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C6972C6; Thu, 26 Jan 2017 10:59:48 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0QAxlNl050663; Thu, 26 Jan 2017 10:59:47 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0QAxlpu050659; Thu, 26 Jan 2017 10:59:47 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201701261059.v0QAxlpu050659@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Thu, 26 Jan 2017 10:59:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432482 - in head/games/qstat: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2017 10:59:49 -0000 Author: danfe Date: Thu Jan 26 10:59:47 2017 New Revision: 432482 URL: https://svnweb.freebsd.org/changeset/ports/432482 Log: - Update `games/qstat' to version 2.14 - Project had moved from SF to GitHub - Build must be bootstrapped now (USES+=autoreconf) - Define LICENSE (ART20) and install CHANGES.txt - Convert two-line pkg-plist into PLIST_FILES - Remove incomplete list of games from pkg-descr Because GitHub releases (tarballs) are not fetched with correct modification time, set TIMESTAMP to 1393638577 which corresponds to commit 71f0e4c tagged as this release. Deleted: head/games/qstat/files/patch-doom3.c head/games/qstat/pkg-plist Modified: head/games/qstat/Makefile head/games/qstat/distinfo head/games/qstat/files/patch-config.c head/games/qstat/pkg-descr Modified: head/games/qstat/Makefile ============================================================================== --- head/games/qstat/Makefile Thu Jan 26 10:49:07 2017 (r432481) +++ head/games/qstat/Makefile Thu Jan 26 10:59:47 2017 (r432482) @@ -2,18 +2,25 @@ # $FreeBSD$ PORTNAME= qstat -PORTVERSION= 2.11 -PORTREVISION= 1 +PORTVERSION= 2.14 +DISTVERSIONPREFIX= v CATEGORIES= games net -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= danfe@FreeBSD.org COMMENT= Command-line program to query game servers on the net +LICENSE= ART20 + CONFLICTS_INSTALL= torque-[0-9]* +USE_GITHUB= yes +GH_ACCOUNT= multiplay + +USES= autoreconf GNU_CONFIGURE= yes +PLIST_FILES= bin/qstat \ + @sample\ etc/qstat.cfg.sample PORTDOCS= * OPTIONS_DEFINE= DOCS @@ -22,12 +29,13 @@ post-extract: @${MV} ${WRKSRC}/qstat.cfg ${WRKSRC}/qstat.cfg.sample post-patch: - @${REINPLACE_CMD} -e 's|qstat\.cfg|&.sample|' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|qstat\.cfg|&.sample|' ${WRKSRC}/Makefile.am @${REINPLACE_CMD} -e 's|OpenBSD|${OPSYS}|' ${WRKSRC}/qstat.c -post-install: +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/info ${STAGEDIR}${DOCSDIR}/template - ${INSTALL_DATA} ${WRKSRC}/qstatdoc.html ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${WRKSRC}/qstatdoc.html \ + ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/template/*.html ${WRKSRC}/template/*.txt \ ${STAGEDIR}${DOCSDIR}/template ${INSTALL_DATA} ${WRKSRC}/info/*.txt ${STAGEDIR}${DOCSDIR}/info Modified: head/games/qstat/distinfo ============================================================================== --- head/games/qstat/distinfo Thu Jan 26 10:49:07 2017 (r432481) +++ head/games/qstat/distinfo Thu Jan 26 10:59:47 2017 (r432482) @@ -1,2 +1,3 @@ -SHA256 (qstat-2.11.tar.gz) = 16f0c0f55567597d7f2db5136a0858c56effb4481a2c821a48cd0432ea572150 -SIZE (qstat-2.11.tar.gz) = 258335 +TIMESTAMP = 1393638577 +SHA256 (multiplay-qstat-v2.14_GH0.tar.gz) = ae906b74d4cce8057b5a265b76859101da8104c2a07c05f11a51f7c9f033ef8b +SIZE (multiplay-qstat-v2.14_GH0.tar.gz) = 210440 Modified: head/games/qstat/files/patch-config.c ============================================================================== --- head/games/qstat/files/patch-config.c Thu Jan 26 10:49:07 2017 (r432481) +++ head/games/qstat/files/patch-config.c Thu Jan 26 10:59:47 2017 (r432482) @@ -1,11 +1,18 @@ ---- config.c.orig Fri Nov 8 19:06:04 2002 -+++ config.c Fri Feb 14 13:07:09 2003 -@@ -204,7 +204,7 @@ - filename= getenv( "HOME"); - if ( filename != NULL && filename[0] != '\0') { - char path[1024]; -- sprintf( path, "%s/%s", filename, HOME_CONFIG_FILE); +--- config.c.orig 2014-03-01 01:49:37 UTC ++++ config.c +@@ -192,14 +192,7 @@ qsc_load_default_config_files() + + var= getenv( "HOME"); + if ( var != NULL && var[0] != '\0') { +- int len= strlen(var); +- if ( len > 900) +- len= 900; +- strncpy( path, var, len); +- path[len]= '\0'; +- strcat( path, "/"); +- strcat( path, HOME_CONFIG_FILE); +-/* sprintf( path, "%s/%s", var, HOME_CONFIG_FILE); */ + snprintf( path, sizeof(path), "%s/%s", var, HOME_CONFIG_FILE); - } - /* 1. $QSTAT_CONFIG - 2. UNIX: $HOME/.qstatrc WIN: $HOME/qstat.cfg + rc= try_load_config_file( path, 0); + if ( rc == 0 || rc == -1) + return rc; Modified: head/games/qstat/pkg-descr ============================================================================== --- head/games/qstat/pkg-descr Thu Jan 26 10:49:07 2017 (r432481) +++ head/games/qstat/pkg-descr Thu Jan 26 10:59:47 2017 (r432482) @@ -4,18 +4,6 @@ running a game. For servers running a g current number of players, and response time are displayed. Server rules and player information may also be displayed. It can output templates for automatic HTML generation, and also has raw display mode for integration -with custom server browsers. Incomplete list of supported games includes: +with custom server browsers. - - old Quake (NetQuake) - - QuakeWorld - - Hexen II - - HexenWorld - - Quake II - - Unreal - - Half-Life 2 - - Half-Life - - Doom III - - Warsow - - Tremulous - -WWW: http://www.qstat.org/ +WWW: https://github.com/multiplay/qstat