/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.56 Revision 1.58
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.56 2003/09/22 21:08:27 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.58 2003/09/22 22:09:51 iggy Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
935 fi 935 fi
936 [ ! -e "${src}" ] && die "Could not find requested license ${src}" 936 [ ! -e "${src}" ] && die "Could not find requested license ${src}"
937 937
938 # here is where we check for the license... 938 # here is where we check for the license...
939 # if we don't find one, we ask the user for it 939 # if we don't find one, we ask the user for it
940 if [ ! -d /usr/share/licenses ]; then
941 mkdir -p /usr/share/licenses
942 fi
940 if [ -f /usr/share/licenses/${LICENSE} ]; then 943 if [ -f /usr/share/licenses/${LICENSE} ]; then
941 einfo "The license for this application has already been accepted." 944 einfo "The license for this application has already been accepted."
942 else 945 else
943 ewarn "You MUST accept this license for installation to continue." 946 ewarn "You MUST accept this license for installation to continue."
944 eerror "If you CTRL+C out of this, the install will not run!" 947 eerror "If you CTRL+C out of this, the install will not run!"
945 echo 948 echo
946 949
947 ${PAGER} ${src} || die "Could not execute ${PAGER} ${src} 950 ${PAGER} ${src} || die "Could not execute ${PAGER} ${src}"
948 einfo "Do you accept the terms of this license? [yes/no]" 951 einfo "Do you accept the terms of this license? [yes/no]"
949 read ACCEPT_TERMS 952 read ACCEPT_TERMS
950 case ${ACCEPT_TERMS} in 953 case ${ACCEPT_TERMS} in
951 yes|Yes|y|Y) 954 yes|Yes|y|Y)
952 cp ${src} /usr/share/licenses 955 cp ${src} /usr/share/licenses

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.58

  ViewVC Help
Powered by ViewVC 1.1.20