summaryrefslogtreecommitdiff
path: root/games/hlserver-cs/Makefile
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-05-14 23:12:14 +0000
committerPatrick Li <pat@FreeBSD.org>2002-05-14 23:12:14 +0000
commit7698ce527e54ab7c4a74265f0c0263c2947d21ae (patch)
treecb577e855ae9decdb22ab3a71159513efe3a927c /games/hlserver-cs/Makefile
parentUpdate to 3.1.0.9.c (diff)
- 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.
Notes
Notes: svn path=/head/; revision=59124
Diffstat (limited to '')
-rw-r--r--games/hlserver-cs/Makefile21
1 files changed, 18 insertions, 3 deletions
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!^\@!);' \