summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2005-12-04 22:36:23 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2005-12-04 22:36:23 +0000
commiteda6eff209cfdde59b87b9f9c9e8e46324c1c4fa (patch)
tree210f57213e6a125605d434880b8c8ed14699e6c1 /sci-chemistry
parentBump for 7.0RC3. (diff)
downloadhistorical-eda6eff209cfdde59b87b9f9c9e8e46324c1c4fa.tar.gz
historical-eda6eff209cfdde59b87b9f9c9e8e46324c1c4fa.tar.bz2
historical-eda6eff209cfdde59b87b9f9c9e8e46324c1c4fa.zip
Add hook script, to be run when installing to live host.
Package-Manager: portage-2.0.53
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/webmo/ChangeLog5
-rw-r--r--sci-chemistry/webmo/Manifest3
-rw-r--r--sci-chemistry/webmo/files/reconfig34
3 files changed, 40 insertions, 2 deletions
diff --git a/sci-chemistry/webmo/ChangeLog b/sci-chemistry/webmo/ChangeLog
index 4a1035856692..ea396c15a65f 100644
--- a/sci-chemistry/webmo/ChangeLog
+++ b/sci-chemistry/webmo/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sci-chemistry/webmo
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/webmo/ChangeLog,v 1.2 2005/12/04 08:42:14 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/webmo/ChangeLog,v 1.3 2005/12/04 22:36:23 spyderous Exp $
+
+ 04 Dec 2005; Donnie Berkholz <spyderous@gentoo.org>; +files/reconfig:
+ Add hook script, to be run when installing to live host.
04 Dec 2005; Donnie Berkholz <spyderous@gentoo.org>;
-files/dont-be-interactive-if-root.patch,
diff --git a/sci-chemistry/webmo/Manifest b/sci-chemistry/webmo/Manifest
index e7689a99dd04..9979df14c7d9 100644
--- a/sci-chemistry/webmo/Manifest
+++ b/sci-chemistry/webmo/Manifest
@@ -1,7 +1,8 @@
-MD5 ee74d8b0d6fcb4b7a6b5aa16b6298396 ChangeLog 1092
+MD5 c17c1c6bed9dd885aefcb12e731f5f4b ChangeLog 1224
MD5 8e94349e3989b4b0219b8b5d8616ff4a files/add-gamess-data-directory.patch 2112
MD5 ea0135b660aec5e5627dd9929a937a41 files/digest-webmo-6.0.003 66
MD5 6a9f136cdce79131896e4815b19cdeab files/dont-be-interactive-or-diagnose.patch 806
MD5 c3f7daf2719dca6df3f68a7193213e63 files/gentoo-locations.patch 1939
+MD5 9f5cccb768670a68442edf882ea00524 files/reconfig 872
MD5 af1bfbb0777267a03e889b08173f2757 metadata.xml 248
MD5 383c3a88f27c0f499427fe84dce283c5 webmo-6.0.003.ebuild 3233
diff --git a/sci-chemistry/webmo/files/reconfig b/sci-chemistry/webmo/files/reconfig
new file mode 100644
index 000000000000..29287760cdb2
--- /dev/null
+++ b/sci-chemistry/webmo/files/reconfig
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+if [ $1 = "install" ]; then
+ FILE="${MY_CGIBINDIR}/webmo/interfaces/globals.int"
+
+ sed -i \
+ -e "s:htmlBase.*:htmlBase=\"${MY_HTDOCSDIR}\":g" \
+ -e "s:cgiBase.*:cgiBase=\"${MY_CGIBINDIR}/webmo\" :g" \
+ -e "s:userBase.*:userBase=\"${MY_HOSTROOTDIR}/webmo\":g" \
+ ${FILE}
+
+ # If a program is enabled, install .int.disabled changes to .int
+ pushd ${MY_CGIBINDIR}/webmo/interfaces
+ for file in ._cfg*; do
+ realfile=${file#._cfg*_}
+ enabled_file=${realfile%.disabled}
+ if [[ -e ${enabled_file} ]]; then
+ enabled_cfgfile=${enabled_file%.disabled}
+ mv ${file} ${enabled_cfgfile}
+ fi
+ done
+ popd
+else
+ echo "done."
+fi
+
+if [ $1 = "clean" ]; then
+ echo "Please examine the contents of the following directories"
+ echo "and delete anything that is no longer necessary"
+ echo
+ echo ${MY_HTDOCSDIR}
+ echo ${MY_CGIBINDIR}/webmo
+ echo ${MY_HOSTROOTDIR}/webmo
+fi