diff options
author | pat <pat@FreeBSD.org> | 2002-05-14 23:12:14 +0000 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-05-14 23:12:14 +0000 |
commit | edce694b48eaa862ce265a5cdc4652bf9043ca28 (patch) | |
tree | 75fbe05e8fcd83bff69def8f8a2e9042ff71dfc9 /games/hlserver-cs | |
parent | 182c2f096ae4c04f5e9ce3ec8590c923e92529f0 (diff) | |
download | FreeBSD-ports-edce694b48eaa862ce265a5cdc4652bf9043ca28.zip FreeBSD-ports-edce694b48eaa862ce265a5cdc4652bf9043ca28.tar.gz |
- 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.
Diffstat (limited to 'games/hlserver-cs')
-rw-r--r-- | games/hlserver-cs/Makefile | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/games/hlserver-cs/Makefile b/games/hlserver-cs/Makefile index 4c7b7e6..f2db9bf 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!^\@!);' \ |