summaryrefslogtreecommitdiff
path: root/games/halflifeserver
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2001-12-06 03:29:19 +0000
committerPatrick Li <pat@FreeBSD.org>2001-12-06 03:29:19 +0000
commitfec6e3070b8f901574fae9e0b04247f4eceb514c (patch)
tree243786831b0de7bd6adae4a781be44a8cffacaee /games/halflifeserver
parentPreemptive note to keep people from asking me questions about AA support. (diff)
Add option for users to install Ping Booster as an addon.
[from website] HLDS Ping Booster is a small tweak to the Half-Life Dedicated Server that drastically reduces player pings and generally makes the game much more responsive. Submitted by: lioux
Notes
Notes: svn path=/head/; revision=51105
Diffstat (limited to 'games/halflifeserver')
-rw-r--r--games/halflifeserver/Makefile37
-rw-r--r--games/halflifeserver/distinfo1
-rw-r--r--games/halflifeserver/pkg-plist2
3 files changed, 40 insertions, 0 deletions
diff --git a/games/halflifeserver/Makefile b/games/halflifeserver/Makefile
index 196188f04cca..43316835b57e 100644
--- a/games/halflifeserver/Makefile
+++ b/games/halflifeserver/Makefile
@@ -38,11 +38,48 @@ SORT?= /usr/bin/sort
# files which should be installed with executables perms
EXECUTABLES= ${HL_PROGRAM} hltv
+.ifdef(WITH_PING_BOOSTER)
+MASTER_SITES+= http://www.udpsoft.com/booster/
+DISTFILES+= HLDSPingBooster-0.99.tar.gz
+
+BOOSTER_FILES= booster.so hlds_boost
+EXECUTABLES+= hlds_boost
+
+PLIST_SUB+= BOOSTER=""
+.else
+PLIST_SUB+= BOOSTER="@comment "
+.endif
+
+pre-everything::
+.ifndef(WITH_PING_BOOSTER)
+ @${ECHO_MSG} '===>'
+ @${ECHO_MSG} '===> Define WITH_PING_BOOSTER to enable HLDS Ping Booster.'
+ @${ECHO_MSG} '===>'
+ @${ECHO_MSG} '===> HLDS Ping Booster is a small tweak to the Half-Life Dedicated'
+ @${ECHO_MSG} '===> Server that drastically reduces player pings and generally'
+ @${ECHO_MSG} '===> makes the game much more responsive.'
+ @${ECHO_MSG} '===> Besides defining this, instead of using hlds_run to start the'
+ @${ECHO_MSG} '===> server, use hlds_boost. Clients do not have to install anything.'
+ @${ECHO_MSG} '===> Check http://www.udpsoft.com/booster/ for additional information.'
+ @${ECHO_MSG} '===>'
+.endif
+
+post-extract:
+.ifdef(WITH_PING_BOOSTER)
+.for file in ${BOOSTER_FILES}
+ @${CP} ${WRKDIR}/${file} ${WRKSRC}
+.endfor
+.endif
+
pre-patch:
# remove trailing ^M
@find -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|rc)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
+.ifdef(WITH_PING_BOOSTER)
+ @${PERL} -pi -e 's|booster.so|${PREFIX}${HLDSDIR}booster.so|' \
+ ${WRKSRC}/hlds_boost
+.endif
do-install: install-parse-plist install-run-scripts scan-libs
diff --git a/games/halflifeserver/distinfo b/games/halflifeserver/distinfo
index c0b8c5f22781..c3d89f65b7ca 100644
--- a/games/halflifeserver/distinfo
+++ b/games/halflifeserver/distinfo
@@ -1,2 +1,3 @@
MD5 (hlds_l_3108_full.tar.gz) = e034c77e5835bca3bb26c6d058efa30c
MD5 (hlds_l_3108a_up.tar.gz) = c39a385ff62c917afec31d5b242bc29e
+MD5 (HLDSPingBooster-0.99.tar.gz) = 1144a59703d89143bb0efdc18cfea5a5
diff --git a/games/halflifeserver/pkg-plist b/games/halflifeserver/pkg-plist
index 1dfb38952fa9..b2abce4bd69b 100644
--- a/games/halflifeserver/pkg-plist
+++ b/games/halflifeserver/pkg-plist
@@ -382,7 +382,9 @@
%%HLDSDIR%%dmc/sprites/yelflare2.spr
%%HLDSDIR%%dmc/sprites/zerogxplode.spr
%%HLDSDIR%%dmc/titles.txt
+%%BOOSTER%%%%HLDSDIR%%booster.so
%%HLDSDIR%%engine_i386.so
+%%BOOSTER%%%%HLDSDIR%%hlds_boost
%%HLDSDIR%%hlds_run
%%HLDSDIR%%hlds_run.dat
%%HLDSDIR%%hltv