diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-11-30 11:44:26 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-11-30 11:44:26 +0000 |
commit | 858532562786bc4c36e9cc819a046c544bdc60fd (patch) | |
tree | 80f27218912fc7db88a94a42b7c79255d2a5a55a /games-server | |
parent | support tared + compressed pdv files (diff) | |
download | gentoo-2-858532562786bc4c36e9cc819a046c544bdc60fd.tar.gz gentoo-2-858532562786bc4c36e9cc819a046c544bdc60fd.tar.bz2 gentoo-2-858532562786bc4c36e9cc819a046c544bdc60fd.zip |
use unpack_pdv to be cleaner
Diffstat (limited to 'games-server')
3 files changed, 16 insertions, 19 deletions
diff --git a/games-server/halflife-server/halflife-server-3.1.1.0.ebuild b/games-server/halflife-server/halflife-server-3.1.1.0.ebuild index 2049a87286d7..26316db70b90 100644 --- a/games-server/halflife-server/halflife-server-3.1.1.0.ebuild +++ b/games-server/halflife-server/halflife-server-3.1.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/halflife-server-3.1.1.0.ebuild,v 1.3 2003/11/30 11:25:58 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/halflife-server-3.1.1.0.ebuild,v 1.4 2003/11/30 11:41:35 vapier Exp $ inherit games eutils @@ -13,10 +13,10 @@ SRC_URI="${MY_PN}.bin" LICENSE="ValveServer" SLOT="0" KEYWORDS="x86" -RESTRICT="nostrip fetch +RESTRICT="nostrip fetch" DEPEND="sys-apps/util-linux" -RDEPEND="dedicated? ( app-misc/screen )" +RDEPEND="app-misc/screen" S=${WORKDIR}/hlds_l diff --git a/games-server/halflife-server/halflife-server-3.1.1.1.ebuild b/games-server/halflife-server/halflife-server-3.1.1.1.ebuild index 7b1fcd7496d0..64cf2a1f41cf 100644 --- a/games-server/halflife-server/halflife-server-3.1.1.1.ebuild +++ b/games-server/halflife-server/halflife-server-3.1.1.1.ebuild @@ -1,10 +1,11 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/halflife-server-3.1.1.1.ebuild,v 1.2 2003/10/20 19:12:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/halflife-server-3.1.1.1.ebuild,v 1.3 2003/11/30 11:41:35 vapier Exp $ -inherit games +inherit games eutils -MY_PN=hlds_l_3111_full +MY_PV=${PV//.} +MY_PN=hlds_l_${MY_PV}_full DESCRIPTION="Halflife Linux Server" SRC_URI="${MY_PN}.bin" HOMEPAGE="http://www.valve.com/ http://www.fileplanet.com/files/50000/58368.shtml" @@ -25,13 +26,10 @@ pkg_nofetch() { } src_unpack() { - local metastart=`tail -c 8 ${DISTDIR}/${MY_PN}.bin | head -c 4 | hexdump -e \"%i\"` - local newsize=$(expr $(ls -al ${DISTDIR}/${MY_PN}.bin | awk '{print $5}') - $metastart) - tail -c ${newsize} ${DISTDIR}/${MY_PN}.bin > ${MY_PN}.bin - tar -xf ${MY_PN}.bin + unpack_pdv ${MY_PN}.bin 4 echo ">>> Unpacking ${MY_PN}.tar.gz to ${S}" tar -zxf ${MY_PN}.tar.gz - unpack hlds_l_3111d_update.tar.gz + rm ${MY_PN}.tar.gz } src_install() { diff --git a/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild b/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild index 1154989ada4f..59b8a09e9aa4 100644 --- a/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild +++ b/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild @@ -1,13 +1,14 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild,v 1.2 2003/10/20 19:12:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-server/halflife-server-3.1.1.1d.ebuild,v 1.3 2003/11/30 11:44:26 vapier Exp $ -inherit games +inherit games eutils +MY_PV=${PV//.} MY_PN=hlds_l_3111_full DESCRIPTION="Halflife Linux Server" SRC_URI="${MY_PN}.bin - hlds_l_3111d_update.tar.gz" + hlds_l_${MY_PV}_update.tar.gz" HOMEPAGE="http://www.valve.com/ http://www.fileplanet.com/files/50000/58368.shtml" LICENSE="ValveServer" @@ -32,13 +33,11 @@ pkg_nofetch() { } src_unpack() { - local metastart=`tail -c 8 ${DISTDIR}/${MY_PN}.bin | head -c 4 | hexdump -e \"%i\"` - local newsize=$(expr $(ls -al ${DISTDIR}/${MY_PN}.bin | awk '{print $5}') - $metastart) - tail -c ${newsize} ${DISTDIR}/${MY_PN}.bin > ${MY_PN}.bin - tar -xf ${MY_PN}.bin + unpack_pdv ${MY_PN}.bin 4 echo ">>> Unpacking ${MY_PN}.tar.gz to ${S}" tar -zxf ${MY_PN}.tar.gz - unpack hlds_l_3111d_update.tar.gz + unpack hlds_l_${MY_PV}_update.tar.gz + rm ${MY_PN}.tar.gz } src_install() { |