diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2014-04-17 08:06:06 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2014-04-17 08:06:06 +0000 |
commit | 1ab22b753f782a9f95969aa7a21b89331bd400f0 (patch) | |
tree | f0c84d3daf551d42ec29663dfc5469c447c56d21 /games/qstat | |
parent | 8e2258fb583c830ebca6b97976823fdc4812164e (diff) | |
download | ports-1ab22b753f782a9f95969aa7a21b89331bd400f0.tar.gz ports-1ab22b753f782a9f95969aa7a21b89331bd400f0.zip |
Notes
Diffstat (limited to 'games/qstat')
-rw-r--r-- | games/qstat/Makefile | 11 | ||||
-rw-r--r-- | games/qstat/files/patch-config.c | 2 | ||||
-rw-r--r-- | games/qstat/pkg-plist | 4 |
3 files changed, 8 insertions, 9 deletions
diff --git a/games/qstat/Makefile b/games/qstat/Makefile index 4e008e0e152b..f3512ea9621d 100644 --- a/games/qstat/Makefile +++ b/games/qstat/Makefile @@ -3,23 +3,24 @@ PORTNAME= qstat PORTVERSION= 2.11 +PORTREVISION= 1 CATEGORIES= games net MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} -MAINTAINER= danfe@FreeBSD.org +MAINTAINER= games@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: diff --git a/games/qstat/files/patch-config.c b/games/qstat/files/patch-config.c index 7179e2e1c06d..f980beedf23e 100644 --- a/games/qstat/files/patch-config.c +++ b/games/qstat/files/patch-config.c @@ -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 diff --git a/games/qstat/pkg-plist b/games/qstat/pkg-plist index 268a08802cee..628fa17e739f 100644 --- a/games/qstat/pkg-plist +++ b/games/qstat/pkg-plist @@ -1,7 +1,5 @@ bin/qstat -@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 -@exec [ -f %B/qstat.cfg ] || cp %B/%f %B/qstat.cfg +@sample etc/qstat.cfg.sample %%PORTDOCS%%%%DOCSDIR%%/qstatdoc.html %%PORTDOCS%%%%DOCSDIR%%/info/UT2003.txt %%PORTDOCS%%%%DOCSDIR%%/info/GhostRecon.txt |