svn commit: r351458 - in head/games/qstat: . files
Alexey Dokuchaev
danfe at FreeBSD.org
Thu Apr 17 08:06:07 UTC 2014
Author: danfe
Date: Thu Apr 17 08:06:06 2014
New Revision: 351458
URL: http://svnweb.freebsd.org/changeset/ports/351458
QAT: https://qat.redports.org/buildarchive/r351458/
Log:
- Correct snprintf(3) usage in the patch
- Make use of new @sample keyword in pkg-plist
- Hand over to games@ team, cleanup a bit
Modified:
head/games/qstat/Makefile
head/games/qstat/files/patch-config.c
head/games/qstat/pkg-plist
Modified: head/games/qstat/Makefile
==============================================================================
--- head/games/qstat/Makefile Thu Apr 17 07:30:11 2014 (r351457)
+++ head/games/qstat/Makefile Thu Apr 17 08:06:06 2014 (r351458)
@@ -3,23 +3,24 @@
PORTNAME= qstat
PORTVERSION= 2.11
+PORTREVISION= 1
CATEGORIES= games net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
-MAINTAINER= danfe at FreeBSD.org
+MAINTAINER= games at FreeBSD.org
COMMENT= Command-line program to query game servers on the net
-GNU_CONFIGURE= yes
-
CONFLICTS_INSTALL= torque-[0-9]*
+GNU_CONFIGURE= yes
+
OPTIONS_DEFINE= DOCS
post-extract:
- @${MV} ${WRKSRC}/qstat.cfg ${WRKSRC}/qstat.cfg.default
+ @${MV} ${WRKSRC}/qstat.cfg ${WRKSRC}/qstat.cfg.sample
post-patch:
- @${REINPLACE_CMD} -e 's|qstat\.cfg|&.default|' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|qstat\.cfg|&.sample|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|OpenBSD|${OPSYS}|' ${WRKSRC}/qstat.c
post-install:
Modified: head/games/qstat/files/patch-config.c
==============================================================================
--- head/games/qstat/files/patch-config.c Thu Apr 17 07:30:11 2014 (r351457)
+++ head/games/qstat/files/patch-config.c Thu Apr 17 08:06:06 2014 (r351458)
@@ -5,7 +5,7 @@
if ( filename != NULL && filename[0] != '\0') {
char path[1024];
- sprintf( path, "%s/%s", filename, HOME_CONFIG_FILE);
-+ snprintf( path, (sizeof(path) -1),"%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
Modified: head/games/qstat/pkg-plist
==============================================================================
--- head/games/qstat/pkg-plist Thu Apr 17 07:30:11 2014 (r351457)
+++ head/games/qstat/pkg-plist Thu Apr 17 08:06:06 2014 (r351458)
@@ -1,7 +1,5 @@
bin/qstat
- at unexec if cmp -s %D/etc/qstat.cfg %D/etc/qstat.cfg.default; then rm -f %D/etc/qstat.cfg; fi
-etc/qstat.cfg.default
- at exec [ -f %B/qstat.cfg ] || cp %B/%f %B/qstat.cfg
+ at sample etc/qstat.cfg.sample
%%PORTDOCS%%%%DOCSDIR%%/qstatdoc.html
%%PORTDOCS%%%%DOCSDIR%%/info/UT2003.txt
%%PORTDOCS%%%%DOCSDIR%%/info/GhostRecon.txt
More information about the svn-ports-head
mailing list