diff options
author | Joel Martin <kanaka@gentoo.org> | 2006-01-03 23:11:42 +0000 |
---|---|---|
committer | Joel Martin <kanaka@gentoo.org> | 2006-01-03 23:11:42 +0000 |
commit | 275ceead80634f89dc73f2285bab2b9924bfcfd4 (patch) | |
tree | 58576e73e0505fcf9012a0f7198a4915ea917044 /sys-cluster/torque | |
parent | arm love (diff) | |
download | historical-275ceead80634f89dc73f2285bab2b9924bfcfd4.tar.gz historical-275ceead80634f89dc73f2285bab2b9924bfcfd4.tar.bz2 historical-275ceead80634f89dc73f2285bab2b9924bfcfd4.zip |
Add doc USE to enable docs install
Package-Manager: portage-2.0.53
Diffstat (limited to 'sys-cluster/torque')
-rw-r--r-- | sys-cluster/torque/ChangeLog | 9 | ||||
-rw-r--r-- | sys-cluster/torque/Manifest | 14 | ||||
-rw-r--r-- | sys-cluster/torque/files/digest-torque-1.2.0_p5-r2 | 5 | ||||
-rw-r--r-- | sys-cluster/torque/torque-1.2.0_p5-r2.ebuild | 143 |
4 files changed, 158 insertions, 13 deletions
diff --git a/sys-cluster/torque/ChangeLog b/sys-cluster/torque/ChangeLog index 0714de4496b3..3aaf6d5dab45 100644 --- a/sys-cluster/torque/ChangeLog +++ b/sys-cluster/torque/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-cluster/torque -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/torque/ChangeLog,v 1.23 2005/09/05 13:25:47 tantive Exp $ +# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/torque/ChangeLog,v 1.24 2006/01/03 23:11:42 kanaka Exp $ + +*torque-1.2.0_p5-r2 (03 Jan 2006) + + 03 Jan 2006; Joel Martin <kanaka@gentoo.org> +torque-1.2.0_p5-r2.ebuild: + Add doc USE to enable docs install 05 Sep 2005; Michael Imhof <tantive@gentoo.org> ChangeLog: Stable on x86. diff --git a/sys-cluster/torque/Manifest b/sys-cluster/torque/Manifest index 8e8c617ed80b..a329db956343 100644 --- a/sys-cluster/torque/Manifest +++ b/sys-cluster/torque/Manifest @@ -1,21 +1,13 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 2c8bd80a773ddd09f1ce2861238e2b11 ChangeLog 4614 +MD5 d1e1c606818c5c4791c8cf0abc84530d ChangeLog 4761 MD5 49d4d243a6dd96ba20531b240a7a32b6 files/digest-torque-1.0.1_p6 67 MD5 fecc46e66800def43afc2718cfc6f428 files/digest-torque-1.2.0_p5 379 MD5 fecc46e66800def43afc2718cfc6f428 files/digest-torque-1.2.0_p5-r1 379 +MD5 adbab62f042d0b9846c930da5ca238a3 files/digest-torque-1.2.0_p5-r2 379 MD5 aa9daa3694ffc472849365fdda73b0f9 files/pbs.rc 2138 MD5 eceaf7e310f5464403b6180dbbf9a892 files/torque-1.2.0_p5-destdir-fixes.patch 447 MD5 271d60925bb60edca8249e8bc0657fa8 files/torque-1.2.0_p5-setuid-safety.patch 823 MD5 cde8b4e93c9339eb99fe3ad45941c99b metadata.xml 160 MD5 6f5db7991fecbb7e58833b6e4f8b30ee torque-1.0.1_p6.ebuild 1908 MD5 806db4773b288c43a27116785278e439 torque-1.2.0_p5-r1.ebuild 4833 +MD5 003eccfe8c63903136a8e1abbabeb723 torque-1.2.0_p5-r2.ebuild 4864 MD5 72956cfb24805eaeee0df78dde48b8a3 torque-1.2.0_p5.ebuild 4518 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) - -iD8DBQFDHF9wI1lqEGTUzyQRArWoAKCXGyL+hlR7+j/kGEtA/MYGl5UHLgCcC8pW -plZPRMD3s6STmHKlhOGTNww= -=vmXn ------END PGP SIGNATURE----- diff --git a/sys-cluster/torque/files/digest-torque-1.2.0_p5-r2 b/sys-cluster/torque/files/digest-torque-1.2.0_p5-r2 new file mode 100644 index 000000000000..935c7182575d --- /dev/null +++ b/sys-cluster/torque/files/digest-torque-1.2.0_p5-r2 @@ -0,0 +1,5 @@ +MD5 d92cc9e8b1d5af38457abc6137bf1b4d torque-1.2.0_p1-respect-destdir.patch.gz 3456 +MD5 a1b825dcf759b97ca78cd5a00d5ecbf0 torque-1.2.0_p1-respect-ldflags.patch.gz 717 +MD5 0f24a10ecabc81d458b0ff82c7e36c52 torque-1.2.0p5-jobdepterm2.patch 1421 +MD5 e55ec294bb0af1fb9b1f7ebe2571f02d torque-1.2.0p5-jobnanny.patch 8853 +MD5 d76042cb056a09fc3e544193b478c825 torque-1.2.0p5.tar.gz 2322590 diff --git a/sys-cluster/torque/torque-1.2.0_p5-r2.ebuild b/sys-cluster/torque/torque-1.2.0_p5-r2.ebuild new file mode 100644 index 000000000000..1529d882934d --- /dev/null +++ b/sys-cluster/torque/torque-1.2.0_p5-r2.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/torque/torque-1.2.0_p5-r2.ebuild,v 1.1 2006/01/03 23:11:42 kanaka Exp $ + +inherit flag-o-matic eutils + +MY_P="${P/_}" +DESCRIPTION="A freely downloadable cluster resource manager and queuing system based on OpenPBS" +HOMEPAGE="http://www.clusterresources.com/products/torque/" +SRC_URI="http://www.clusterresources.com/downloads/torque/${MY_P}.tar.gz + mirror://gentoo/${PN}-1.2.0_p1-respect-destdir.patch.gz + mirror://gentoo/${PN}-1.2.0_p1-respect-ldflags.patch.gz + http://www-rcf.usc.edu/~garrick/torque-1.2.0p5-jobnanny.patch + http://www-rcf.usc.edu/~garrick/torque-1.2.0p5-jobdepterm2.patch" +LICENSE="openpbs" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc tcltk X scp" +PROVIDE="virtual/pbs" + +# ed is used by makedepend-sh +DEPEND_COMMON="virtual/libc + X? ( virtual/x11 dev-lang/tk ) + tcltk? ( dev-lang/tcl ) + !virtual/pbs" +DEPEND="${DEPEND_COMMON} + sys-apps/ed" +RDEPEND="${DEPEND_COMMON} + net-misc/openssh" +PDEPEND=">=sys-cluster/openpbs-common-1.1.0" + +S="${WORKDIR}/${MY_P}" + +SPOOL_LOCATION="/usr/spool" # this needs to move to /var later on +PBS_SERVER_HOME="${SPOOL_LOCATION}/PBS/" + +src_unpack() { + unpack ${MY_P}.tar.gz + export EPATCH_OPTS="-p1 -d ${S}" + epatch ${DISTDIR}/${PN}-1.2.0_p1-respect-ldflags.patch.gz || die "Failed to fix ldflags" + epatch ${DISTDIR}/${PN}-1.2.0_p1-respect-destdir.patch.gz || die "Failed to fix Makefiles for DESTDIR" + epatch ${DISTDIR}/${PN}-1.2.0p5-jobnanny.patch || die "Failed to apply job-nanny patch" + epatch ${DISTDIR}/${PN}-1.2.0p5-jobdepterm2.patch || die "Failed to apply job-dep cleanup patch" + epatch ${FILESDIR}/${PN}-1.2.0_p5-destdir-fixes.patch || die "Failed to fix DESTDIR for gui" + epatch ${FILESDIR}/${PN}-1.2.0_p5-setuid-safety.patch || die "Failed to fix setXid linking for pbs_rcp" + + # Tries to use absolute /tmp/ for tempfiles which fails miserably. + sed -i -e "s|/tmp/|\${TMPDIR}/|g" ${S}/buildutils/makedepend-sh || die "Failed TMPDIR change" +} + +src_compile() { +# local myconf +# use X || myconf="--disable-gui" +# use tcltk && myconf="${myconf} --with-tcl" +# use doc && myconf="${myconf} --enable-docs" + append-flags -DJOB_DELETE_NANNY + + ./configure \ + $(use_enable X gui) \ + $(use_with tcltk tcl) \ + $(use_enable doc docs) \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --libdir="\${exec_prefix}/$(get_libdir)/pbs" \ + --enable-server \ + --enable-mom \ + --enable-clients \ + --enable-shared \ + --enable-depend-cache \ + $(use_with scp) \ + $(use_enable tcltk tcl-qstat) \ + --set-server-home=${PBS_SERVER_HOME} \ + --set-environ=/etc/pbs_environment || die "./configure failed" + + emake || die "emake failed" +} + +# WARNING +# OpenPBS is extremely stubborn about directory permissions. Sometimes it will +# just fall over with the error message, but in some spots it will just ignore +# you and fail strangely. Likewise it also barfs on our .keep files! +pbs_createspool() { + root="$1" + s="${SPOOL_LOCATION}" + h="${PBS_SERVER_HOME}" + sp="${h}/server_priv" + einfo "Building spool directory under ${D}${h}" + for a in \ + 0755:${s} 0755:${h} 0755:${h}/aux 0700:${h}/checkpoint \ + 0755:${h}/mom_logs 0751:${h}/mom_priv 0751:${h}/mom_priv/jobs \ + 0755:${h}/sched_logs 0750:${h}/sched_priv \ + 0755:${h}/server_logs \ + 0750:${h}/server_priv 0755:${h}/server_priv/accounting \ + 0750:${h}/server_priv/acl_groups 0750:${h}/server_priv/acl_hosts \ + 0750:${h}/server_priv/acl_svr 0750:${h}/server_priv/acl_users \ + 0750:${h}/server_priv/jobs 0750:${h}/server_priv/queues \ + 1777:${h}/spool 1777:${h}/undelivered ; + do + d="${a/*:}" + m="${a/:*}" + if [ ! -d "${root}${d}" ]; then + install -d -m${m} ${root}${d} + else + chmod ${m} ${root}${d} + fi + done +} + +src_install() { + # Make directories first + pbs_createspool "${D}" + + einfo "Running make install" + make DESTDIR=${D} install || die + + einfo "Doing docs & lib symlinks" + dodoc INSTALL PBS_License.txt README.torque Release_Notes + # Init scripts come from openpbs-common + #newinitd ${FILESDIR}/pbs-init.d pbs + #newconfd ${FILESDIR}/pbs-conf.d pbs + dosym /usr/$(get_libdir)/pbs/libpbs.a /usr/$(get_libdir)/libpbs.a + + einfo "Handling /etc/pbs_environment and /usr/spool/PBS/server_name" + # this file MUST exist for PBS/Torque to work + # but try to preserve any customatizations that the user has made + dodir /etc + if [ -f ${ROOT}/etc/pbs_environment ]; then + cp ${ROOT}/etc/pbs_environment ${D}/etc/pbs_environment + else + touch ${D}/etc/pbs_environment + fi + + if [ -f "${ROOT}/usr/spool/PBS/server_name" ]; then + cp "${ROOT}/usr/spool/PBS/server_name" "${D}/usr/spool/PBS/server_name" + fi +} + +pkg_postinst() { + # make sure the damn directories exist + pbs_createspool "${ROOT}" + [ ! -f "${ROOT}/etc/pbs_environment" ] && touch "${ROOT}/etc/pbs_environment" +} |