add hook for checking licenses
authorMike Frysinger <vapier@gentoo.org>
Sat, 22 Oct 2005 02:22:42 +0000 (02:22 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 22 Oct 2005 02:22:42 +0000 (02:22 +0000)
eclass/games.eclass

index 557ac73b8a38081172f99f83c4c3152760eef9f6..6b74207676abaca4338d68221918ace45a44a310 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.106 2005/10/21 18:24:23 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.107 2005/10/22 02:22:42 vapier Exp $
 #
 # devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
 #
@@ -136,6 +136,8 @@ EOF
 }
 
 games_pkg_setup() {
+       [[ ${GAMES_CHECK_LICENSE} == "yes" ]] && check_license ${LICENSE}
+
        enewgroup "${GAMES_GROUP}" 35
        [[ ${GAMES_USER} != "root" ]] \
                && enewuser "${GAMES_USER}" 35 -1 /usr/games "${GAMES_GROUP}"