summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Redaelli <drizzt@gentoo.org>2007-02-26 13:43:17 +0000
committerTimothy Redaelli <drizzt@gentoo.org>2007-02-26 13:43:17 +0000
commit1961330a8e902481e3b2af63cda26e7f031f38d7 (patch)
tree978f3153c117e970939669e981bf256793f76d30 /games-strategy
parentAdd missing digest (diff)
downloaddrizzt-1961330a8e902481e3b2af63cda26e7f031f38d7.tar.gz
drizzt-1961330a8e902481e3b2af63cda26e7f031f38d7.tar.bz2
drizzt-1961330a8e902481e3b2af63cda26e7f031f38d7.zip
New ebuild (#119132)
svn path=/; revision=104
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/uplink/ChangeLog7
-rw-r--r--games-strategy/uplink/Manifest22
-rw-r--r--games-strategy/uplink/files/digest-uplink-1.533
-rw-r--r--games-strategy/uplink/uplink-1.53.ebuild136
4 files changed, 168 insertions, 0 deletions
diff --git a/games-strategy/uplink/ChangeLog b/games-strategy/uplink/ChangeLog
new file mode 100644
index 0000000..819f6f1
--- /dev/null
+++ b/games-strategy/uplink/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for games-strategy/uplink
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 26 Feb 2007; Timothy Redaelli <drizzt@gentoo.org> ChangeLog:
+ New ebuild (#119132)
+
diff --git a/games-strategy/uplink/Manifest b/games-strategy/uplink/Manifest
new file mode 100644
index 0000000..c8d527c
--- /dev/null
+++ b/games-strategy/uplink/Manifest
@@ -0,0 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST uplink-patch-1.53.tar.gz 4977445 RMD160 a6bacde98f1ebf628e7308689c00f0b2da1fa097 SHA1 750327ebac28ab1d82ae6866c1462697e9dc34e2 SHA256 21a521f53f38bb364b3f52652bdee49549bab57ac9a76e12dd2d35e15a068b95
+EBUILD uplink-1.53.ebuild 3291 RMD160 012df2843e10a66c2bc025dc7acb1f61f0364c7c SHA1 7d49a9f14bb856e330ab18d700acdf988fd2d37a SHA256 aa92ebb8f8fc529ffb42efb7352afbdda9b22ebd1f25a192b3ec7d90121bd1ad
+MD5 884c75c503da84f69b43323024866555 uplink-1.53.ebuild 3291
+RMD160 012df2843e10a66c2bc025dc7acb1f61f0364c7c uplink-1.53.ebuild 3291
+SHA256 aa92ebb8f8fc529ffb42efb7352afbdda9b22ebd1f25a192b3ec7d90121bd1ad uplink-1.53.ebuild 3291
+MISC ChangeLog 209 RMD160 0fffa17054d7146f40c5334d54cc1bea561bff16 SHA1 9abdb242e1ccd254ff87e77c369ff0b41ce8b561 SHA256 c96a31d4d22dbddea8791fa4521225898515b1b5f3bd9e7aea8473a358ea3b2c
+MD5 974644d27cb8e6bc3b58a9e51ca4c2fc ChangeLog 209
+RMD160 0fffa17054d7146f40c5334d54cc1bea561bff16 ChangeLog 209
+SHA256 c96a31d4d22dbddea8791fa4521225898515b1b5f3bd9e7aea8473a358ea3b2c ChangeLog 209
+MD5 a7138732308a670053384ceb7254794b files/digest-uplink-1.53 256
+RMD160 8bbff74bb897de75c6dde3077cd22d37bf7bb878 files/digest-uplink-1.53 256
+SHA256 de51b168a9a3d037ae1ceda7fec1f4099c763663fcfd887b8d34b79c56fb2ff7 files/digest-uplink-1.53 256
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.2 (GNU/Linux)
+
+iD8DBQFF4uPxGDyatLGpTbYRAsUWAKCgapsJCKWzluuH9WLDlODfhMzaRQCfdmV2
+kcJKYlKwrZD9YW+auIY/Kdo=
+=MYEE
+-----END PGP SIGNATURE-----
diff --git a/games-strategy/uplink/files/digest-uplink-1.53 b/games-strategy/uplink/files/digest-uplink-1.53
new file mode 100644
index 0000000..f6a642b
--- /dev/null
+++ b/games-strategy/uplink/files/digest-uplink-1.53
@@ -0,0 +1,3 @@
+MD5 4a5b864f725ca0b467f6f5e02442af1b uplink-patch-1.53.tar.gz 4977445
+RMD160 a6bacde98f1ebf628e7308689c00f0b2da1fa097 uplink-patch-1.53.tar.gz 4977445
+SHA256 21a521f53f38bb364b3f52652bdee49549bab57ac9a76e12dd2d35e15a068b95 uplink-patch-1.53.tar.gz 4977445
diff --git a/games-strategy/uplink/uplink-1.53.ebuild b/games-strategy/uplink/uplink-1.53.ebuild
new file mode 100644
index 0000000..0c12ee4
--- /dev/null
+++ b/games-strategy/uplink/uplink-1.53.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils games
+
+MY_P="${PN}-patch-${PV}.tar.gz"
+DESCRIPTION="Uplink is a commercial hacking strategy game."
+HOMEPAGE="http://www.uplink.co.uk/"
+SRC_URI="http://www.uplink.co.uk/test/${MY_P}"
+
+LICENSE="uplink"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="strip mirror"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+upl_versions=(
+ "1.0"
+ "1.31"
+)
+upl_files=(
+ "uplink.zip"
+ "uplink-complete-1.31.sh"
+)
+
+uplink_find_file() {
+ local searchdir=${1}
+ local i=0
+
+ for f in ${upl_files[*]}
+ do
+ if [ -e "${searchdir}/${f}" ] ; then
+ export upl_file=${f}
+ export upl_version=${upl_versions[${i}]}
+ else
+ i=$((${i}+1))
+ fi
+ done
+}
+
+pkg_setup() {
+ export upl_version="0"
+ export upl_file=""
+
+ games_pkg_setup
+
+ # If the file still exists from an earlier install, assume its the same
+ # Otherwise copy it from the CD
+ uplink_find_file "${PORTAGE_ACTUAL_DISTDIR}"
+
+ # No local copy - try the CD drive
+ if [[ "${upl_version}" == "0" ]] ; then
+ cdrom_get_cds linux
+ local searchdir="${CDROM_ROOT}/linux"
+ uplink_find_file "${searchdir}"
+
+ if [[ "${upl_version}" != "0" ]] ; then
+ einfo "Found the original Uplink CD (${upl_version})"
+ einfo "Copying ${upl_file} to ${PORTAGE_ACTUAL_DISTDIR}"
+ cp "${searchdir}/${upl_file}" "${PORTAGE_ACTUAL_DISTDIR}/${upl_file}"
+ fi
+
+ fi
+
+ if [[ "${upl_version}" == "0" ]] ; then
+ eerror "Unable to find a known Uplink CD ROM"
+ eerror "If you believe you have a valid Uplink CD ROM, please report this bug attaching"
+ eerror " details of the name and location of the linux installer on the CD ROM"
+ die
+ fi
+}
+
+src_install() {
+ dodir "${dir}"
+ cd "${Ddir}"
+
+ if [[ "${upl_file}" == "uplink.zip" ]] ; then
+ # Unzip basic uplink
+ unzip -qq "${PORTAGE_ACTUAL_DISTDIR}/${upl_file}"
+ else
+ # Assume it's a .sh
+
+ # Create a temporary directory to extract the .sh to
+ cd "${T}"
+ # Extract the .sh using its own routines
+ "${PORTAGE_ACTUAL_DISTDIR}/${upl_file}" --noexec --keep --target .
+ # Delete unnecessary files and move the executable script to where it expects to be
+ rm -rf setup.data setup.sh
+ mv bin/Linux/x86/uplink .
+ rm -rf bin
+ # Copy everything to Ddir
+ cp -pPR * "${Ddir}"
+ # cd out of T to avoid errors when we delete it.
+ cd "${Ddir}"
+ # Delete the temporary files
+ rm -rf "${T}"
+ fi
+
+ if [[ "${upl_version}" != "1.53" ]] ; then
+ # Copy over patch files
+ cp -pPR "${WORKDIR}"/uplink/* ./
+ rm sounds.dat
+ mv *.dat lib/
+ fi
+
+
+ # Correct permissions
+ chown -R root:games "${Ddir}"
+ chmod -R 640 "${Ddir}/*"
+ chmod 750 "${Ddir}/uplink"
+ if [[ -e "${Ddir}/lib" ]] ; then
+ chmod 750 "${Ddir}"/lib
+ if [[ -e "${Ddir}"/lib/uplink.bin.x86 ]] ; then
+ chmod 750 "${Ddir}"/lib/uplink.bin.x86
+ fi
+ fi
+
+ games_make_wrapper uplink ./uplink "${dir}" "${dir}"
+ make_desktop_entry uplink "Uplink" "" "Game"
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if [[ "${upl_version}" != "1.53" ]] ; then
+ einfo "The first time you start uplink, it will patch itself and then exit. Restart the game to play."
+ einfo "The location of the data files has changed. If you have any custom modifications you will need to move them into the lib/ directory."
+ fi
+} \ No newline at end of file