# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/torque/torque-2.2.1.ebuild,v 1.3 2008/01/02 16:07:25 jsbronder Exp $ inherit autotools flag-o-matic eutils DESCRIPTION="Resource manager and queuing system based on OpenPBS" HOMEPAGE="http://www.clusterresources.com/products/torque/" SRC_URI="http://www.clusterresources.com/downloads/${PN}/${P}.tar.gz" LICENSE="openpbs" SLOT="0" KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="tk crypt server syslog doc" PROVIDE="virtual/pbs" # ed is used by makedepend-sh DEPEND_COMMON="virtual/libc sys-libs/ncurses sys-libs/readline tk? ( dev-lang/tk ) syslog? ( virtual/logger ) !virtual/pbs !sys-cluster/openpbs-common ! "${file}.new" mv "${file}.new" "${file}" done if use server; then newinitd "${FILESDIR}"/pbs_server-init.d-2.2.1 pbs_server newinitd "${FILESDIR}"/pbs_sched-init.d-2.2.1 pbs_sched fi newinitd "${FILESDIR}"/pbs_mom-init.d-2.2.1 pbs_mom newconfd "${FILESDIR}"/torque-conf.d-2.2.1 torque newenvd "${FILESDIR}"/torque-env.d-2.2.1 25torque } pkg_preinst() { if [[ -f "${ROOT}etc/pbs_environment" ]]; then cp "${ROOT}etc/pbs_environment" "${D}"/etc/pbs_environment fi if [[ -f "${ROOT}${PBS_SERVER_HOME}server_name" ]]; then cp "${ROOT}${PBS_SERVER_HOME}server_name" "${D}${PBS_SERVER_HOME}server_name" fi } pkg_postinst() { pbs_createspool "${ROOT}" elog "If this is the first time torque has been installed, then you are not ready to start the server. Please refer to the documentation located at: http://www.clusterresources.com/wiki/doku.php?id=torque:torque_wiki" elog "There are a couple of changes in this ebuild. 1.) The pbs-server-home has been moved from /var/spool/PBS to /var/spool/torque. 2.) pbs_server, pbs_mom and pbs_sched now have separate init scripts" }