1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit qt4-r2 eutils cmake-utils user
9 DESCRIPTION="Intelligent Teaching And Learning with Computers (iTALC) supports working with computers in school"
10 HOMEPAGE="http://italc.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/italc/${P}.tar.bz2"
25 dev-qt/qtxmlpatterns:4
39 PROPERTIES="interactive"
41 PATCHES=( "${FILESDIR}"/${P}-gcc-4.7.patch )
43 DOCS=( TODO README AUTHORS INSTALL ChangeLog )
50 elog "On the master, please run "
51 elog "# emerge --config =${CATEGORY}/${PF}"
53 elog "Please add the logins of master users (teachers) to the italc group by running"
54 elog "# usermod -a -G italc <loginname>"
60 if [ ! -d /etc/italc/keys ] ; then
61 einfo "Creating public and private keys for italc in /etc/italc/keys."
62 /usr/bin/ica -role teacher -createkeypair > /dev/null
64 einfo "Setting chmod 640 on private keys."
65 chgrp -R italc /etc/italc
66 chmod -R o-rwx /etc/italc/keys/private
68 einfo "Not creating new keypair, as /etc/italc/keys already exists"