# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="ALMA Common Software binary installation" HOMEPAGE="http://www.eso.org/~almamgr/AlmaAcs/" SRC_URI="http://www.eso.org/projects/alma/develop/acs/Releases/ACS_6_0/Distribution/Linux/ACS.tar.gz" inherit eutils LICENSE="LGPL" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="dev-lang/tcl dev-lang/tk virtual/jdk" RDEPEND="" src_unpack() { unpack ACS.tar.gz || die "unpacking ACS" } src_install() { declare ALMA_HOME=/opt mv ${WORKDIR} ${D}${ALMA_HOME} } pkg_postinst() { einfo "adding group alma" enewgroup alma || die "problem adding group alma" einfo "adding user almamgr" enewuser almamgr -1 -1 -1 alma || die "problem adding user almamgr" chown -R almamgr:alma /opt/alma ln -s /opt/alma /alma rm -fr /alma/ACS-6.0/acsdata/tmp ln -s /tmp /alma/ACS-6.0/acsdata/tmp einfo "In order to run ACS, you have to source /alma/ACS-6.0/ACSSW/config/.acs/.bash_profile.acs and have a correct /etc/hosts and network configuration. Your ACS users must belong to group alma." } pkg_prerm() { #Remove the symlink to /tmp rm -f /alma/ACS-6.0/acsdata/tmp rm -f /alma }