summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-14 17:36:18 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-14 17:36:18 +0000
commit698661ab00af094de517cca3d9777592eba066cc (patch)
tree5ebce8867f3e3e47ccf52836768eef52b3eb4fd5 /eclass/eutils.eclass
parentAdd Texinfo-manual to FREE-DOCUMENTS license group. (diff)
downloadhistorical-698661ab00af094de517cca3d9777592eba066cc.tar.gz
historical-698661ab00af094de517cca3d9777592eba066cc.tar.bz2
historical-698661ab00af094de517cca3d9777592eba066cc.zip
drop check_license now that the PM supports ACCEPT_LICENSE natively
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass63
1 files changed, 3 insertions, 60 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 55b01913f32d..4f243478af76 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.371 2011/12/14 17:27:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.372 2011/12/14 17:36:18 vapier Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -1090,65 +1090,6 @@ unpack_makeself() {
assert "failure unpacking (${filetype}) makeself ${shrtsrc} ('${ver}' +${skip})"
}
-# @FUNCTION: check_license
-# @USAGE: [license]
-# @DESCRIPTION:
-# Display a license for user to accept. If no license is
-# specified, then ${LICENSE} is used.
-check_license() {
- local lic=$1
- if [ -z "${lic}" ] ; then
- lic="${PORTDIR}/licenses/${LICENSE}"
- else
- if [ -e "${PORTDIR}/licenses/${lic}" ] ; then
- lic="${PORTDIR}/licenses/${lic}"
- elif [ -e "${PWD}/${lic}" ] ; then
- lic="${PWD}/${lic}"
- elif [ -e "${lic}" ] ; then
- lic="${lic}"
- fi
- fi
- local l="`basename ${lic}`"
-
- # here is where we check for the licenses the user already
- # accepted ... if we don't find a match, we make the user accept
- local alic
- eshopts_push -o noglob # so that bash doesn't expand "*"
- for alic in ${ACCEPT_LICENSE} ; do
- if [[ ${alic} == ${l} ]]; then
- eshopts_pop
- return 0
- fi
- done
- eshopts_pop
- [ ! -f "${lic}" ] && die "Could not find requested license ${lic}"
-
- local licmsg=$(emktemp)
- cat <<-EOF > ${licmsg}
- **********************************************************
- The following license outlines the terms of use of this
- package. You MUST accept this license for installation to
- continue. When you are done viewing, hit 'q'. If you
- CTRL+C out of this, the install will not run!
- **********************************************************
-
- EOF
- cat ${lic} >> ${licmsg}
- ${PAGER:-less} ${licmsg} || die "Could not execute pager (${PAGER}) to accept ${lic}"
- einfon "Do you accept the terms of this license (${l})? [yes/no] "
- read alic
- case ${alic} in
- yes|Yes|y|Y)
- return 0
- ;;
- *)
- echo;echo;echo
- eerror "You MUST accept the license to continue! Exiting!"
- die "Failed to accept license"
- ;;
- esac
-}
-
# @FUNCTION: cdrom_get_cds
# @USAGE: <file on cd1> [file on cd2] [file on cd3] [...]
# @DESCRIPTION:
@@ -1689,4 +1630,6 @@ use_if_iuse() {
# otherwise echo [false output][false suffix] (defaults to "no").
usex() { use "$1" && echo "${2-yes}$4" || echo "${3-no}$5" ; } #382963
+check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; }
+
fi