diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-10-15 10:06:28 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-10-15 10:06:29 +0000 |
commit | 2d72a103e0989b1ba8e687f308b7e5565f125c2d (patch) | |
tree | 2dad09edffc26d62fcbac8ef04db386a6bd49ae1 | |
parent | 83a3ec5958d0638476ac0771122ee5fb0410f71a (diff) | |
download | ports-2d72a103e0989b1ba8e687f308b7e5565f125c2d.tar.gz ports-2d72a103e0989b1ba8e687f308b7e5565f125c2d.zip |
games/qstat: update the port to version 2.17 (now needs GNU make)
Reported by: portscout
-rw-r--r-- | games/qstat/Makefile | 11 | ||||
-rw-r--r-- | games/qstat/distinfo | 6 | ||||
-rw-r--r-- | games/qstat/files/patch-config.c | 18 |
3 files changed, 8 insertions, 27 deletions
diff --git a/games/qstat/Makefile b/games/qstat/Makefile index f52ec0a40e47..9da78434107c 100644 --- a/games/qstat/Makefile +++ b/games/qstat/Makefile @@ -1,7 +1,7 @@ # Created by: Daniel O'Connor <darius@dons.net.au> PORTNAME= qstat -PORTVERSION= 2.14 +PORTVERSION= 2.17 DISTVERSIONPREFIX= v CATEGORIES= games net @@ -12,12 +12,11 @@ LICENSE= ART20 CONFLICTS_INSTALL= torque-[0-9]* +USES= autoreconf gmake +GNU_CONFIGURE= yes USE_GITHUB= yes GH_ACCOUNT= multiplay -USES= autoreconf -GNU_CONFIGURE= yes - PLIST_FILES= bin/qstat \ @sample\ etc/qstat.cfg.sample PORTDOCS= * @@ -30,8 +29,8 @@ post-extract: post-patch: @${REINPLACE_CMD} -e 's|qstat\.cfg|&.sample|' ${WRKSRC}/Makefile.am @${REINPLACE_CMD} -e 's|__hpux|${OPSYS}|' ${WRKSRC}/qstat.c - @${ECHO_CMD} 'int do_dump = 0;' >> ${WRKSRC}/qstat.c - @${REINPLACE_CMD} -e 's|^int do_dump|extern &|' ${WRKSRC}/debug.h + @${PRINTF} '#!/bin/sh\n\necho -n ${PORTVERSION}' > \ + ${WRKSRC}/scripts/version.sh do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/info ${STAGEDIR}${DOCSDIR}/template diff --git a/games/qstat/distinfo b/games/qstat/distinfo index fadcf6cefc02..a78352ec354b 100644 --- a/games/qstat/distinfo +++ b/games/qstat/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1393638577 -SHA256 (multiplay-qstat-v2.14_GH0.tar.gz) = ae906b74d4cce8057b5a265b76859101da8104c2a07c05f11a51f7c9f033ef8b -SIZE (multiplay-qstat-v2.14_GH0.tar.gz) = 210440 +TIMESTAMP = 1632827871 +SHA256 (multiplay-qstat-v2.17_GH0.tar.gz) = ff0a050e867ad1d6fdf6b5d707e2fc7aea2826b8a382321220b390c621fb1562 +SIZE (multiplay-qstat-v2.17_GH0.tar.gz) = 233981 diff --git a/games/qstat/files/patch-config.c b/games/qstat/files/patch-config.c deleted file mode 100644 index f01e6e7de41e..000000000000 --- a/games/qstat/files/patch-config.c +++ /dev/null @@ -1,18 +0,0 @@ ---- 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); - rc= try_load_config_file( path, 0); - if ( rc == 0 || rc == -1) - return rc; |