ports/134096: [patch] Update port: games/linux-steam MASTER_SITE change to official site and version update

Christopher J. Umina chris at easymac.org
Wed Apr 29 16:20:02 UTC 2009


>Number:         134096
>Category:       ports
>Synopsis:       [patch] Update port: games/linux-steam MASTER_SITE change to official site and version update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 29 16:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Christopher J. Umina
>Release:        FreeBSD 7.1-RELEASE-p4 amd64
>Organization:
>Environment:
FreeBSD 7.1-RELEASE-p4 amd64
>Description:
The current port fetches the distfile from a site where an older version 
has been repackaged.  Repackaging is odd enough, but recently the 
company has changed their master content servers, rendering the current, 
repackaged version unusable.

 >How-To-Repeat:
Attempt to install the port.
>How-To-Repeat:
>Fix:
Changed the MASTER_SITES listing to fetch the binary from its real 
master site.

Updated the description files to more correctly explain what the 
software does and how to use it.

Listed myself as the maintainer.
--- linux-steam.diff begins here ---
diff -ruN /usr/ports/games/linux-steam/Makefile new-linux-steam/Makefile
--- /usr/ports/games/linux-steam/Makefile	2009-03-19 13:28:39.000000000 -0400
+++ new-linux-steam/Makefile	2009-04-29 11:08:32.000000000 -0400
@@ -6,37 +6,40 @@
 #
 
 PORTNAME=	steam
-PORTVERSION=	1.0
-PORTREVISOIN=	2
+PORTVERSION=	1.1
 CATEGORIES=	games linux
-MASTER_SITES=	http://www.coreblack.com/files/
+MASTER_SITES=	http://storefront.steampowered.com/download/
 PKGNAMEPREFIX=	linux-
+DISTFILES=	hldsupdatetool.bin
 
-MAINTAINER=	ports at FreeBSD.org
-COMMENT=	Half Life dedicated server running on steam
+MAINTAINER=	chris at easymac.org
+COMMENT=	Half Life and Source dedicated server using steam
 
 BUILD_DEPENDS=	${LINUX_BASE_PORT}
 
 IS_INTERACTIVE=	yes
 USE_LINUX=	yes
 USE_LINUX_APPS=	xorglibs
-PKGMESSAGE=	${WRKDIR}/pkg-message
 
 INSTALLDIR?=	steam
 
+EXTRACT_ONLY=
+SUB_FILES=	pkg-message
+SUB_LIST=	INSTALLDIR=${PREFIX}/${INSTALLDIR}
 PLIST_SUB+=	INSTALLDIR=${INSTALLDIR}
 
 pre-everything::
-	@ ${ECHO_MSG} "You can use the INSTALLDIR option to change the install dir"
+	@${ECHO_MSG} "You can use the INSTALLDIR option to change the install directory."
 
 do-build:
-	@ ${BRANDELF} -t Linux ${WRKDIR}/hldsupdatetool.bin
-	@ ${CHMOD} +x ${WRKDIR}/hldsupdatetool.bin && cd ${WRKDIR} && ./hldsupdatetool.bin
-	@ ${CAT} pkg-message | ${SED} 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE}
+	@${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}
+	@${BRANDELF} -t Linux ${WRKDIR}/${DISTFILES}
+	@${CHMOD} +x ${WRKDIR}/${DISTFILES} && cd ${WRKDIR} && ./${DISTFILES}
+	@${CAT} pkg-message | ${SED} 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE}
 
 do-install:
-	@ ${MKDIR} ${PREFIX}/${INSTALLDIR}
-	@ ${CP} ${WRKDIR}/${PORTNAME} ${PREFIX}/${INSTALLDIR}/
-	@ ${CAT} ${PKGMESSAGE}
+	@${MKDIR} ${PREFIX}/${INSTALLDIR}
+	@${CP} ${WRKDIR}/${PORTNAME} ${PREFIX}/${INSTALLDIR}/
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/games/linux-steam/distinfo new-linux-steam/distinfo
--- /usr/ports/games/linux-steam/distinfo	2005-11-24 14:27:37.000000000 -0500
+++ new-linux-steam/distinfo	2009-04-28 17:34:43.000000000 -0400
@@ -1,3 +1,3 @@
-MD5 (steam-1.0.tar.gz) = 3d32775d1cf34ff8c9c938312e5128b8
-SHA256 (steam-1.0.tar.gz) = ffe005259eb85fa78f0699afe8b45335b969d67c3f95a93140ce0f6f5ac04df3
-SIZE (steam-1.0.tar.gz) = 2586017
+MD5 (hldsupdatetool.bin) = 3d92b54b74387e3881b35b92d09d8e16
+SHA256 (hldsupdatetool.bin) = dda8786ac0ce755acc3f307989641482a19de4b28801289b910a3bbcd097a6db
+SIZE (hldsupdatetool.bin) = 3513408
diff -ruN /usr/ports/games/linux-steam/files/pkg-message.in new-linux-steam/files/pkg-message.in
--- /usr/ports/games/linux-steam/files/pkg-message.in	1969-12-31 19:00:00.000000000 -0500
+++ new-linux-steam/files/pkg-message.in	2009-04-28 18:35:10.000000000 -0400
@@ -0,0 +1,21 @@
+------------------------------------------------------------------------
+Linux HLDS Update Tool has been successfully installed!
+
+To get started:
+	cd %%INSTALLDIR%%
+	./steam -command update -game [name] -dir .
+
+Steam will then begin downloading the game content to your system.  Once
+complete you may start your server by:
+
+	./hlds_run -game [name] +map [mapname] -maxplayers [#] \
+		-autoupdate
+
+	OR
+
+	./srcds_run -game [name] +map [mapname] -maxplayers [#] \
+		-autoupdate
+
+
+NOTE: Steam no longer requires login information.
+------------------------------------------------------------------------
diff -ruN /usr/ports/games/linux-steam/pkg-descr new-linux-steam/pkg-descr
--- /usr/ports/games/linux-steam/pkg-descr	2004-08-25 09:36:43.000000000 -0400
+++ new-linux-steam/pkg-descr	2009-04-28 18:23:42.000000000 -0400
@@ -1,19 +1,11 @@
-Steam is Valve's new way of getting games into your hands ASAP. Games like
-Half-Life, Counter-Strike, and Counter-Strike Condition Zero
-are all being made available through Steam.
+HLDS Update Tool (more truthfully named Steam):
 
-Steam games are automatically kept up-to-date with the latest content
-and revisions. Steam also includes an instant-message client which
-even works while you're in-game.
+Steam allows you to download the game content necessary to run a 
+Half-Life Dedicated Server or Source Dedicated Server.  The downloaded
+content can also be updated to the newest revisions and patches
+automatically with the use of Steam.
 
-At its core, Steam is a distributed file system and shared set of technology
-components that can be implemented into any software application.
-
-With Steam, developers are given integrated tools for direct-content
-publishing, flexible billing, ensured-version
-control, anti-cheating, anti-piracy, and more.
+This port installs the Linux version of Steam, as no FreeBSD version
+exists.
 
 WWW: http://www.steampowered.com/
-
-- Hideki
-hido at coreblack.com
diff -ruN /usr/ports/games/linux-steam/pkg-message new-linux-steam/pkg-message
--- /usr/ports/games/linux-steam/pkg-message	2004-04-10 07:31:15.000000000 -0400
+++ new-linux-steam/pkg-message	1969-12-31 19:00:00.000000000 -0500
@@ -1,29 +0,0 @@
-##################################################################
-# To get started goto %%PREFIX%%/%%INSTALLDIR%%                             #
-# and type the following to create a steam-user.                 #
-# ./steam -command create -username <username> \                 #
-# -email <emailaddress> -password <password> \                   #
-# -question <question> -answer <answer>                          #
-#                                                                #
-# Example                                                        #
-# ./steam -command create -username johndoe \                    #
-# -email johndoe at 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 -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 +map de_dust -maxplayers 16           #
-#                                                                #
-# For instructions on configuring your server goto               #
-# http://server.counter-strike.net                               #
-#                                                                #
-##################################################################
--- linux-steam.diff ends here ---

--- linux-steam.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/root/new-linux-steam/
#	/root/new-linux-steam/Makefile
#	/root/new-linux-steam/distinfo
#	/root/new-linux-steam/pkg-descr
#	/root/new-linux-steam/pkg-plist
#	/root/new-linux-steam/files
#	/root/new-linux-steam/files/pkg-message.in
#
echo c - /root/new-linux-steam/
mkdir -p /root/new-linux-steam/ > /dev/null 2>&1
echo x - /root/new-linux-steam/Makefile
sed 's/^X//' >/root/new-linux-steam/Makefile << 'a69b42a0802a14dd37e3d153fadc13e4'
X# New ports collection makefile for:   hlstats
X# Date created:        29 December 2003
X# Whom:                hideki
X#
X# $FreeBSD: ports/games/linux-steam/Makefile,v 1.10 2009/03/19 17:28:39 bsam Exp $
X#
X
XPORTNAME=	steam
XPORTVERSION=	1.1
XCATEGORIES=	games linux
XMASTER_SITES=	http://storefront.steampowered.com/download/
XPKGNAMEPREFIX=	linux-
XDISTFILES=	hldsupdatetool.bin
X
XMAINTAINER=	chris at easymac.org
XCOMMENT=	Half Life and Source dedicated server using steam
X
XBUILD_DEPENDS=	${LINUX_BASE_PORT}
X
XIS_INTERACTIVE=	yes
XUSE_LINUX=	yes
XUSE_LINUX_APPS=	xorglibs
X
XINSTALLDIR?=	steam
X
XEXTRACT_ONLY=
XSUB_FILES=	pkg-message
XSUB_LIST=	INSTALLDIR=${PREFIX}/${INSTALLDIR}
XPLIST_SUB+=	INSTALLDIR=${INSTALLDIR}
X
Xpre-everything::
X	@${ECHO_MSG} "You can use the INSTALLDIR option to change the install directory."
X
Xdo-build:
X	@${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}
X	@${BRANDELF} -t Linux ${WRKDIR}/${DISTFILES}
X	@${CHMOD} +x ${WRKDIR}/${DISTFILES} && cd ${WRKDIR} && ./${DISTFILES}
X	@${CAT} pkg-message | ${SED} 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE}
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/${INSTALLDIR}
X	@${CP} ${WRKDIR}/${PORTNAME} ${PREFIX}/${INSTALLDIR}/
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
a69b42a0802a14dd37e3d153fadc13e4
echo x - /root/new-linux-steam/distinfo
sed 's/^X//' >/root/new-linux-steam/distinfo << 'ffe1076914e19ebd53ec0f89908b3e43'
XMD5 (hldsupdatetool.bin) = 3d92b54b74387e3881b35b92d09d8e16
XSHA256 (hldsupdatetool.bin) = dda8786ac0ce755acc3f307989641482a19de4b28801289b910a3bbcd097a6db
XSIZE (hldsupdatetool.bin) = 3513408
ffe1076914e19ebd53ec0f89908b3e43
echo x - /root/new-linux-steam/pkg-descr
sed 's/^X//' >/root/new-linux-steam/pkg-descr << 'be75960569af0ee1663f66230065b1a3'
XHLDS Update Tool (more truthfully named Steam):
X
XSteam allows you to download the game content necessary to run a 
XHalf-Life Dedicated Server or Source Dedicated Server.  The downloaded
Xcontent can also be updated to the newest revisions and patches
Xautomatically with the use of Steam.
X
XThis port installs the Linux version of Steam, as no FreeBSD version
Xexists.
X
XWWW: http://www.steampowered.com/
be75960569af0ee1663f66230065b1a3
echo x - /root/new-linux-steam/pkg-plist
sed 's/^X//' >/root/new-linux-steam/pkg-plist << 'a351e3e123e0ef3a30bd51405fe137db'
X%%INSTALLDIR%%/steam
X at dirrm %%INSTALLDIR%%
a351e3e123e0ef3a30bd51405fe137db
echo c - /root/new-linux-steam/files
mkdir -p /root/new-linux-steam/files > /dev/null 2>&1
echo x - /root/new-linux-steam/files/pkg-message.in
sed 's/^X//' >/root/new-linux-steam/files/pkg-message.in << 'efcaa6b8063fbbd4ebe477aa72f1f068'
X------------------------------------------------------------------------
XLinux HLDS Update Tool has been successfully installed!
X
XTo get started:
X	cd %%INSTALLDIR%%
X	./steam -command update -game [name] -dir .
X
XSteam will then begin downloading the game content to your system.  Once
Xcomplete you may start your server by:
X
X	./hlds_run -game [name] +map [mapname] -maxplayers [#] \
X		-autoupdate
X
X	OR
X
X	./srcds_run -game [name] +map [mapname] -maxplayers [#] \
X		-autoupdate
X
X
XNOTE: Steam no longer requires login information.
X------------------------------------------------------------------------
efcaa6b8063fbbd4ebe477aa72f1f068
exit
--- linux-steam.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list