summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-12-09 21:12:13 +0000
committerMike Frysinger <vapier@gentoo.org>2003-12-09 21:12:13 +0000
commit1ac1111a256276690e1c97b3b57867adc7913f90 (patch)
treef9b9429d4f37fc4827ed248210039fb62fc00ee6 /games-fps/ut2003
parentfixing Manifest (diff)
downloadgentoo-2-1ac1111a256276690e1c97b3b57867adc7913f90.tar.gz
gentoo-2-1ac1111a256276690e1c97b3b57867adc7913f90.tar.bz2
gentoo-2-1ac1111a256276690e1c97b3b57867adc7913f90.zip
move key stuff to pkg_config
Diffstat (limited to 'games-fps/ut2003')
-rw-r--r--games-fps/ut2003/ut2003-2225.ebuild59
1 files changed, 31 insertions, 28 deletions
diff --git a/games-fps/ut2003/ut2003-2225.ebuild b/games-fps/ut2003/ut2003-2225.ebuild
index b7e7af07c99a..f5244dca87dd 100644
--- a/games-fps/ut2003/ut2003-2225.ebuild
+++ b/games-fps/ut2003/ut2003-2225.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-fps/ut2003/ut2003-2225.ebuild,v 1.7 2003/11/20 02:26:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003/ut2003-2225.ebuild,v 1.8 2003/12/09 21:12:13 vapier Exp $
inherit games
@@ -147,45 +147,48 @@ src_install() {
}
pkg_postinst() {
+ games_pkg_postinst
+
# here is where we check for the existence of a cdkey...
# if we don't find one, we ask the user for it
if [ -f ${dir}/System/cdkey ]; then
einfo "A cdkey file is already present in ${dir}/System"
else
- ewarn "Your CD key is NOT checked for validity here."
- ewarn " Make sure you type it in correctly."
- eerror "If you CTRL+C out of this, the game will not run!"
- echo
- while true
- do
- einfo "Please enter your CD key: "
- read CDKEY1
- einfo "Please re-enter your CD key: "
- read CDKEY2
-
- if [ "$CDKEY1" == "" ]; then
- echo "You entered a blank CD key. Try again."
- else
- if [ "$CDKEY1" == "$CDKEY2" ]; then
- echo "$CDKEY1" | tr a-z A-Z > ${dir}/System/cdkey
- einfo "Thank you!"
- break
- else
- eerror "Your CD key entries don't match. Try again."
- fi
- fi
- done
+ ewarn "You MUST run this before playing the game:"
+ ewarn "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
+ ewarn "That way you can [re]enter your cdkey."
fi
-
- einfo "This game should be working, please assign any bugs to games@gentoo.org"
echo
einfo "To play the game run:"
einfo " ut2003"
-
- games_pkg_postinst
}
pkg_postrm() {
ewarn "This package leaves a cdkey file in ${dir}/System that you need"
ewarn "to remove to completely get rid of this game's files."
}
+
+pkg_config() {
+ ewarn "Your CD key is NOT checked for validity here."
+ ewarn " Make sure you type it in correctly."
+ eerror "If you CTRL+C out of this, the game will not run!"
+ echo
+ einfo "CD key format is: XXXX-XXXX-XXXX-XXXX"
+ while true ; do
+ einfo "Please enter your CD key:"
+ read CDKEY1
+ einfo "Please re-enter your CD key:"
+ read CDKEY2
+ if [ "$CDKEY1" == "" ] ; then
+ echo "You entered a blank CD key. Try again."
+ else
+ if [ "$CDKEY1" == "$CDKEY2" ] ; then
+ echo "$CDKEY1" | tr a-z A-Z > ${dir}/System/cdkey
+ einfo "Thank you!"
+ break
+ else
+ eerror "Your CD key entries do not match. Try again."
+ fi
+ fi
+ done
+}