1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

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
This commit is contained in:
Patrick Li 2001-12-06 03:29:19 +00:00
parent 152d8bd12a
commit fec6e3070b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51105
3 changed files with 40 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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