diff --git a/games/qwfwd/Makefile b/games/qwfwd/Makefile index d5ea311191c3..8ee95a5d44cd 100644 --- a/games/qwfwd/Makefile +++ b/games/qwfwd/Makefile @@ -1,41 +1,41 @@ PORTNAME= qwfwd -DISTVERSION= 1.2.20240216 +DISTVERSION= 1.2.20250221 CATEGORIES= games MAINTAINER= vvd@FreeBSD.org COMMENT= QuakeWorld proxy WWW= https://github.com/QW-Group/qwfwd/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.md USES= cmake USE_GITHUB= yes GH_ACCOUNT= QW-Group -GH_TAGNAME= f657ff7 +GH_TAGNAME= 648d7d3743c0 USE_RC_SUBR= ${PORTNAME} EXTRACT_AFTER_ARGS= --exclude .git* \ --exclude */.git* \ --exclude build_cmake.sh \ --exclude tools* SUB_LIST= QWUSER=${USERS} USERS= qwfwd GROUPS= qwfwd PORTDOCS= README.md OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/resources/example-configs/${PORTNAME}.cfg \ ${STAGEDIR}${ETCDIR}/${PORTNAME}.cfg.sample do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include diff --git a/games/qwfwd/distinfo b/games/qwfwd/distinfo index 4e0024a01541..d72d26e24004 100644 --- a/games/qwfwd/distinfo +++ b/games/qwfwd/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1739926256 -SHA256 (QW-Group-qwfwd-1.2.20240216-f657ff7_GH0.tar.gz) = 8052eb5b756574c580a49d30502cb31397324dd4bdce7979534ec34478055385 -SIZE (QW-Group-qwfwd-1.2.20240216-f657ff7_GH0.tar.gz) = 55473 +TIMESTAMP = 1740230567 +SHA256 (QW-Group-qwfwd-1.2.20250221-648d7d3743c0_GH0.tar.gz) = 725e66025ab3faa701548852ac2896159d0cc12956ba775995999f6b40602d75 +SIZE (QW-Group-qwfwd-1.2.20250221-648d7d3743c0_GH0.tar.gz) = 55528 diff --git a/games/qwfwd/files/patch-src_main.c b/games/qwfwd/files/patch-src_main.c new file mode 100644 index 000000000000..ecac827ba391 --- /dev/null +++ b/games/qwfwd/files/patch-src_main.c @@ -0,0 +1,15 @@ +--- src/main.c.orig 2025-02-21 06:10:33 UTC ++++ src/main.c +@@ -174,6 +174,12 @@ int main(int _argc, char *_argv[]) + + srand((unsigned) time (NULL)); + ++ // Disable buffering for stdout and stderr to avoid issues when output ++ // is redirected to a file or pipe instead of being displayed in a ++ // terminal. ++ setbuf(stdout, NULL); ++ setbuf(stderr, NULL); ++ + // show help ffs + if (argc > 1 && ( !stricmp("-h", argv[1]) + || !stricmp("-?", argv[1]) diff --git a/games/qwfwd/files/patch-src_query.c b/games/qwfwd/files/patch-src_query.c new file mode 100644 index 000000000000..4bb43d7c17c3 --- /dev/null +++ b/games/qwfwd/files/patch-src_query.c @@ -0,0 +1,11 @@ +--- src/query.c.orig 2025-02-21 06:10:33 UTC ++++ src/query.c +@@ -21,7 +21,7 @@ + + #define MAX_MASTERS 8 // size for masters fixed size array, I am lazy + +-#define MAX_SERVERS 512 // we will not add more than that servers to our list, just for some sanity ++#define MAX_SERVERS 4096 // we will not add more than that servers to our list, just for some sanity + + #define MAX_SV_FILTERS 16 // how much servers we can filter with masters_filter_servers, can be increased widely. + #define QW_DEFAULT_SV_FILTER "127.0.0.1" // some masters provide unusable servers, filter them.