diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-07-21 03:38:17 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-07-21 03:38:17 +0000 |
commit | a3c74627f7fd472d0c669c4ed838e157be63a886 (patch) | |
tree | 62f0d8db8a52b8f0a335e16498631fed606b440d /sys-cluster | |
parent | initial import (diff) | |
download | historical-a3c74627f7fd472d0c669c4ed838e157be63a886.tar.gz historical-a3c74627f7fd472d0c669c4ed838e157be63a886.tar.bz2 historical-a3c74627f7fd472d0c669c4ed838e157be63a886.zip |
More directory fun with torque. Now using an env.d file to keep the directories their, otherwise the unmerge phase of the old package zaps them.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/openpbs-common/Manifest | 5 | ||||
-rw-r--r-- | sys-cluster/torque/ChangeLog | 7 | ||||
-rw-r--r-- | sys-cluster/torque/Manifest | 4 | ||||
-rw-r--r-- | sys-cluster/torque/torque-1.2.0_p1-r3.ebuild | 49 |
4 files changed, 45 insertions, 20 deletions
diff --git a/sys-cluster/openpbs-common/Manifest b/sys-cluster/openpbs-common/Manifest index efa4359b08c1..a448f9422e09 100644 --- a/sys-cluster/openpbs-common/Manifest +++ b/sys-cluster/openpbs-common/Manifest @@ -1,6 +1,9 @@ MD5 f1bfa8fb842f2c3b00e181fe7aa5c486 openpbs-common-1.0.0.ebuild 563 -MD5 5d93f2cabc4bea6a14a822d6dee62996 ChangeLog 574 +MD5 d0ef3cbe9df3fa2e02c0616dd518c6a6 ChangeLog 793 MD5 cde8b4e93c9339eb99fe3ad45941c99b metadata.xml 160 +MD5 1cf3d8447ca64a72d228c2cf978c1e43 openpbs-common-1.1.0.ebuild 599 MD5 cfb199330d75f94a15402a9d9f3bdff2 files/pbs-conf.d 448 MD5 47ee3396eff14ab1876fbcb8d817a035 files/pbs-init.d 2622 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-openpbs-common-1.0.0 0 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-openpbs-common-1.1.0 0 +MD5 6cc6d4bc9495323cff5288be557f6b7d files/pbs-env.d 250 diff --git a/sys-cluster/torque/ChangeLog b/sys-cluster/torque/ChangeLog index d61e2d5518cf..ebbc806290fe 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.16 2005/07/21 01:08:16 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/torque/ChangeLog,v 1.17 2005/07/21 03:38:17 robbat2 Exp $ + + 21 Jul 2005; Robin H. Johnson <robbat2@gentoo.org> + torque-1.2.0_p1-r3.ebuild: + More directory fun with torque. Now using an env.d file to keep the + directories their, otherwise the unmerge phase of the old package zaps them. *torque-1.2.0_p1-r3 (21 Jul 2005) diff --git a/sys-cluster/torque/Manifest b/sys-cluster/torque/Manifest index 544006696cec..5814bcd32f58 100644 --- a/sys-cluster/torque/Manifest +++ b/sys-cluster/torque/Manifest @@ -1,9 +1,9 @@ MD5 7dd1a27cf57520610867640d86e91ba3 torque-1.2.0_p1-r1.ebuild 1874 MD5 c6f3121536e6adce335641c7a3c961ae torque-1.2.0_p1.ebuild 2312 -MD5 3ed23e559c17df15d3b03ce60bac18c6 torque-1.2.0_p1-r3.ebuild 3472 +MD5 8fd69a95626ad922fc33df3172e3969b torque-1.2.0_p1-r3.ebuild 3761 MD5 38ff4b249a54a78f0a2d720fbf20b534 torque-1.0.1_p6.ebuild 1910 MD5 d18ea01c292ee1127343a7143f8af6f7 torque-1.2.0_p1-r2.ebuild 2405 -MD5 4ece6da680ca8e6ba7ebd3e28b2092b5 ChangeLog 3240 +MD5 fdff686303197f3d5542fd4c022c9f1d ChangeLog 3472 MD5 cde8b4e93c9339eb99fe3ad45941c99b metadata.xml 160 MD5 0358ef5f33cbdf1c0f764f1407677480 files/1.2.0_p1-respect-destdir.patch 21686 MD5 aa9daa3694ffc472849365fdda73b0f9 files/pbs.rc 2138 diff --git a/sys-cluster/torque/torque-1.2.0_p1-r3.ebuild b/sys-cluster/torque/torque-1.2.0_p1-r3.ebuild index 89f130793ef5..e583d91831f3 100644 --- a/sys-cluster/torque/torque-1.2.0_p1-r3.ebuild +++ b/sys-cluster/torque/torque-1.2.0_p1-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 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_p1-r3.ebuild,v 1.1 2005/07/21 01:08:16 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/torque/torque-1.2.0_p1-r3.ebuild,v 1.2 2005/07/21 03:38:17 robbat2 Exp $ inherit flag-o-matic eutils @@ -26,7 +26,7 @@ DEPEND="${DEPEND_COMMON} sys-apps/ed" RDEPEND="${DEPEND_COMMON} net-misc/openssh" -PDEPEND="sys-cluster/openpbs-common" +PDEPEND=">=sys-cluster/openpbs-common-1.1.0" S="${WORKDIR}/${MY_P}" @@ -72,21 +72,29 @@ src_compile() { # you and fail strangely. Likewise it also barfs on our .keep files! pbs_createspool() { root="$1" - s="${root}${SPOOL_LOCATION}" - h="${root}${PBS_SERVER_HOME}" - install -d -m0755 "${h}" - install -d -m1777 "${h}/spool" "${h}/undelivered" - install -d -m0700 "${h}/checkpoint" - install -d -m0755 "${h}/aux" "${h}/mom_logs" "${h}/sched_logs" "${h}/server_logs" - install -d -m0750 "${h}/sched_priv" "${h}/server_priv" - install -d -m0751 "${h}/mom_priv" "${h}/mom_priv/jobs" + s="${SPOOL_LOCATION}" + h="${PBS_SERVER_HOME}" sp="${h}/server_priv" - install -d -m0755 "${sp}/accounting" - install -d -m0750 "${sp}/acl_groups" "${sp}/acl_hosts" "${sp}/acl_svr" "${sp}/acl_users" "${sp}/jobs" "${sp}/queues" - # this file MUST exist for PBS/Torque to work - install -d -m0755 "${root}/etc" - touch ${root}/etc/pbs_environment - chmod 644 ${root}/etc/pbs_environment + + for a in \ + 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 "${d}" ]; then + install -d -m${m} ${root}${d} + else + chmod ${m} ${root}${d} + fi + done } src_install() { @@ -100,6 +108,15 @@ src_install() { #newinitd ${FILESDIR}/pbs-init.d pbs #newconfd ${FILESDIR}/pbs-conf.d pbs dosym /usr/$(get_libdir)/pbs/libpbs.a /usr/$(get_libdir)/libpbs.a + + # 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 } pkg_postinst() { |