aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-04-10 19:31:15 +0800
committerpav <pav@FreeBSD.org>2004-04-10 19:31:15 +0800
commit9a3cd5657a118b253fad91e3a14505ff4c6080ba (patch)
tree0f4443ed46b703422d67b13c06b3bd159fcc188b /games
parentb7727d404687a4b07872a02ac05a372377e846ce (diff)
downloadfreebsd-ports-gnome-9a3cd5657a118b253fad91e3a14505ff4c6080ba.tar.gz
freebsd-ports-gnome-9a3cd5657a118b253fad91e3a14505ff4c6080ba.tar.zst
freebsd-ports-gnome-9a3cd5657a118b253fad91e3a14505ff4c6080ba.zip
- Allow user to redefine installation directory
- Update pkg-message PR: ports/64643 Submitted by: Hideki Machida <hido@neojapangz.com> (maintainer)
Diffstat (limited to 'games')
-rw-r--r--games/linux-steam/Makefile11
-rw-r--r--games/linux-steam/pkg-message22
-rw-r--r--games/linux-steam/pkg-plist4
3 files changed, 26 insertions, 11 deletions
diff --git a/games/linux-steam/Makefile b/games/linux-steam/Makefile
index b58dde3e7969..2dda2bba69d1 100644
--- a/games/linux-steam/Makefile
+++ b/games/linux-steam/Makefile
@@ -18,13 +18,20 @@ IS_INTERACTIVE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_LINUX= yes
+INSTALLDIR?= steam
+
+PLIST_SUB+= INSTALLDIR=${INSTALLDIR}
+
+pre-everything::
+ @ ${ECHO_MSG} "You can use the INSTALLDIR option to change the install dir"
+
do-build:
@ ${CHMOD} +x ${WRKDIR}/hldsupdatetool.bin && cd ${WRKDIR} && ./hldsupdatetool.bin
@ ${CAT} pkg-message | ${SED} 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE}
do-install:
- @ ${MKDIR} ${PREFIX}/${PORTNAME}
- @ ${CP} ${WRKDIR}/${PORTNAME} ${PREFIX}/${PORTNAME}/
+ @ ${MKDIR} ${PREFIX}/${INSTALLDIR}
+ @ ${CP} ${WRKDIR}/${PORTNAME} ${PREFIX}/${INSTALLDIR}/
@ ${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/games/linux-steam/pkg-message b/games/linux-steam/pkg-message
index 51c58bc40490..b970223cc988 100644
--- a/games/linux-steam/pkg-message
+++ b/games/linux-steam/pkg-message
@@ -1,19 +1,27 @@
##################################################################
-# To get started goto %%PREFIX%%/steam #
+# To get started goto %%PREFIX%%/%%INSTALLDIR%% #
# and type the following to create a steam-user. #
-# ./steam -create <username> <password> <question> <answer> #
+# ./steam -command create -username <username> \ #
+# -email <emailaddress> -password <password> \ #
+# -question <question> -answer <answer> #
+# #
# Example #
-# ./steam -create johndoe l337cr3w nameofmygun M4A1 #
+# ./steam -command create -username johndoe \ #
+# -email johndoe@mydomain.com -password 12345678 \ #
+# -question nameofmygun -answer M4A1 #
# #
# Once you have a steam-user account or if you have a registered #
# account already type the following to start updating your HLDS #
-# ./steam -update <game> <installdir> <username> [<password> [Y]]#
-# example #
-# ./steam -update cstrike . johndoe l337cr3w Y #
+# ./steam -command update -game <game> -dir <steamdir> \ #
+# -username <username> -password <password> -remember_password #
+# #
+# Example #
+# ./steam -command update -game cstrike -dir %%PREFIX%%/steam \ #
+# -username johndoe -password 12345678 -remember_password #
# #
# Once your server has been updated type the following #
# to test your server. #
-# ./hlds_run -game cstrike +maxplayers 10 +map de_dust #
+# ./hlds_run -game cstrike +map de_dust -maxplayers 16 #
# #
# For instructions on configuring your server goto #
# http://server.counter-strike.net #
diff --git a/games/linux-steam/pkg-plist b/games/linux-steam/pkg-plist
index f9cf2635a5a8..711caef9c1a9 100644
--- a/games/linux-steam/pkg-plist
+++ b/games/linux-steam/pkg-plist
@@ -1,2 +1,2 @@
-steam/steam
-@dirrm steam
+%%INSTALLDIR%%/steam
+@dirrm %%INSTALLDIR%%