diff options
Diffstat (limited to 'net-misc/italc/italc-2.0.0.ebuild')
-rw-r--r-- | net-misc/italc/italc-2.0.0.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/net-misc/italc/italc-2.0.0.ebuild b/net-misc/italc/italc-2.0.0.ebuild new file mode 100644 index 000000000000..57f24f152557 --- /dev/null +++ b/net-misc/italc/italc-2.0.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit qt4-r2 eutils cmake-utils user + +DESCRIPTION="Intelligent Teaching And Learning with Computers (iTALC) supports working with computers in school" +HOMEPAGE="http://italc.sourceforge.net/" +SRC_URI="mirror://sourceforge/italc/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + dev-libs/lzo + dev-libs/openssl + sys-apps/tcp-wrappers + sys-libs/zlib + virtual/jpeg + dev-qt/qtcore:4 + dev-qt/qtxmlpatterns:4 + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXtst + x11-apps/xinput + dev-qt/qtgui:4" +DEPEND="${RDEPEND} + x11-proto/inputproto" + +PROPERTIES="interactive" + +PATCHES=( "${FILESDIR}"/${P}-gcc-4.7.patch ) + +DOCS=( TODO README AUTHORS INSTALL ChangeLog ) + +pkg_setup() { + enewgroup italc +} + +pkg_postinst() { + elog "On the master, please run " + elog "# emerge --config =${CATEGORY}/${PF}" + + elog "Please add the logins of master users (teachers) to the italc group by running" + elog "# usermod -a -G italc <loginname>" + + echo "" +} + +pkg_config() { + if [ ! -d /etc/italc/keys ] ; then + einfo "Creating public and private keys for italc in /etc/italc/keys." + /usr/bin/ica -role teacher -createkeypair > /dev/null + eend $? + einfo "Setting chmod 640 on private keys." + chgrp -R italc /etc/italc + chmod -R o-rwx /etc/italc/keys/private + else + einfo "Not creating new keypair, as /etc/italc/keys already exists" + fi +} |