From 7698ce527e54ab7c4a74265f0c0263c2947d21ae Mon Sep 17 00:00:00 2001 From: Patrick Li Date: Tue, 14 May 2002 23:12:14 +0000 Subject: - Update to beta C patch from valve for counter strike - Bump PORTREVISION - Do not install with default read permissions for group and others to prevent other users on the system from reading the config for rcon password to server. --- games/hlserver-cs/Makefile | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'games/hlserver-cs/Makefile') diff --git a/games/hlserver-cs/Makefile b/games/hlserver-cs/Makefile index 4c7b7e6d2586..f2db9bf81f4d 100644 --- a/games/hlserver-cs/Makefile +++ b/games/hlserver-cs/Makefile @@ -8,8 +8,7 @@ PORTNAME?= cs PORTVERSION?= 1.4 CATEGORIES?= games linux -MASTER_SITES?= http://gwforum.net/cs/valve/ \ - http://stats.redphive.org/ \ +MASTER_SITES?= http://www.redphive.org/files/ \ http://www.carnage.q-net.net.au/downloads/server/halflife/linux/ \ http://files.ausgamers.com:81/half-life/counter-strike/linux/ PKGNAMEPREFIX= hlserver- @@ -28,6 +27,8 @@ USE_LINUX_PREFIX= yes NO_CDROM= "Size; the data set is much too big" NO_BUILD= yes .if (${PORTNAME}==cs) +PORTREVISION= 1 +BUILD_DEPENDS+= ${NONEXISTENT}:${HALFLIFESERVER_PORT}:patch WRKSRC?= ${WRKDIR}/cstrike .else .ifndef(NO_WRKSUBDIR) @@ -45,6 +46,20 @@ HL_PROGRAM!= cd ${HALFLIFESERVER_PORT} && ${MAKE} -V HL_PROGRAM PLIST_SUB_MASTER!= cd ${HALFLIFESERVER_PORT} && ${MAKE} -V PLIST_SUB_FOR_THIS_PORT PKGMESSAGE!= cd ${HALFLIFESERVER_PORT} && ${MAKE} -V PKGMESSAGE +# 3.1.0.9 Beta C patch +HALFLIFESERVER_PORT_WRKSRC!= cd ${HALFLIFESERVER_PORT} && ${MAKE} -V WRKSRC +.if (${PORTNAME}==cs) && !target(post-patch) +post-patch: +.if exists(${HALFLIFESERVER_PORT_WRKSRC}/cstrike) + @${ECHO_MSG} "===> Applying 3.1.0.9 Beta C patch" + @${CP} -Rp ${HALFLIFESERVER_PORT_WRKSRC}/cstrike ${WRKDIR} +.else + @${ECHO_MSG} "Please update your ports tree, it is not syncronized to the latest tree" + @${ECHO_MSG} "This port will not work. Check the FreeBSD Handbook on how to update" + @${FALSE} +.endif +.endif + .if !target(slaveport-post-extract) slaveport-post-extract: .endif @@ -79,7 +94,7 @@ install-parse-plist: generate-plist -e 'print FDIR "${INSTALL_DIR}", \ " ", "\"${PREFIX}/$$dir\"", \ "\n" if $$dir =~ s!(^\@dirrm\s+)!!;' \ - -e 'print FFILES "${INSTALL_DATA}", \ + -e 'print FFILES "${INSTALL_DATA:S/${SHAREMODE}/400/}", \ " ", "\"${WRKDIR}/$$file_partial\"", \ " ", "\"${PREFIX}/$$file\"", \ "\n" if ($$file !~ m!^\@!);' \ -- cgit v1.2.3