diff options
author | Renat Lumpau <rl03@gentoo.org> | 2005-07-29 18:21:25 +0000 |
---|---|---|
committer | Renat Lumpau <rl03@gentoo.org> | 2005-07-29 18:21:25 +0000 |
commit | 8c71908024d4e7fd1a4f455f00568fe5ca2e0df4 (patch) | |
tree | c5de8b0d77168678ad620c33eb49783dc8c4d22e /www-apps/rt/files | |
parent | thanks dsd_ (diff) | |
download | gentoo-2-8c71908024d4e7fd1a4f455f00568fe5ca2e0df4.tar.gz gentoo-2-8c71908024d4e7fd1a4f455f00568fe5ca2e0df4.tar.bz2 gentoo-2-8c71908024d4e7fd1a4f455f00568fe5ca2e0df4.zip |
Fixed variables in reconfig hook. Closes #99853.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'www-apps/rt/files')
-rw-r--r-- | www-apps/rt/files/3.4.2/postinstall-en.txt | 4 | ||||
-rw-r--r-- | www-apps/rt/files/3.4.2/reconfig | 28 | ||||
-rw-r--r-- | www-apps/rt/files/digest-rt-3.4.2 | 1 |
3 files changed, 14 insertions, 19 deletions
diff --git a/www-apps/rt/files/3.4.2/postinstall-en.txt b/www-apps/rt/files/3.4.2/postinstall-en.txt index 821fbb28b410..9a1c3a3301fd 100644 --- a/www-apps/rt/files/3.4.2/postinstall-en.txt +++ b/www-apps/rt/files/3.4.2/postinstall-en.txt @@ -5,8 +5,8 @@ Please follow the Gentoo install guide found at http://wiki.bestpractical.com/index.cgi?GentooInstallGuide Your local config files are located here: -${VHOST_ROOT}/${P}/etc/RT_Config.pm -${VHOST_ROOT}/${P}/etc/RT_SiteConfig.pm +${VHOST_ROOT}/${PV}-${PVR}/etc/RT_Config.pm +${VHOST_ROOT}/${PV}-${PVR}/etc/RT_SiteConfig.pm If you need more help, consider searching the mailing list (Google site:lists.fsck.com ) diff --git a/www-apps/rt/files/3.4.2/reconfig b/www-apps/rt/files/3.4.2/reconfig index f2fdfe0451dc..2bdba4c548b3 100644 --- a/www-apps/rt/files/3.4.2/reconfig +++ b/www-apps/rt/files/3.4.2/reconfig @@ -1,33 +1,29 @@ #!/bin/bash +PF=${PN}-${PVR} if [ $1 = "install" ]; then # fix location - cd ${VHOST_ROOT}/${P} - sed -e "s|${MY_HOSTROOTDIR}/${P}|${VHOST_ROOT}/${P}|g - s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|g" -i bin/* lib/RT.pm sbin/* etc/RT_Config.pm + cd ${VHOST_ROOT}/${PF} + sed -e "s|${MY_HOSTROOTDIR}/${PF}|${VHOST_ROOT}/${PF}|g + s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|g" -i bin/* lib/RT.pm sbin/* etc/RT_Config.pm || die # fix Apache configs - sed -e "s|RT_DIR|${VHOST_ROOT}/${P}|g - s|HTDOCS|${MY_INSTALLDIR}|g" -i ${MY_SERVERCONFIGDIR}/apache* + sed -e "s|RT_DIR|${VHOST_ROOT}/${PF}|g + s|HTDOCS|${MY_INSTALLDIR}|g" -i ${MY_SERVERCONFIGDIR}/apache* || die # check for upgrades - cd ${VHOST_ROOT}/${P}/upgrade + cd ${VHOST_ROOT}/${PF}/upgrade echo "You may need to update your database." echo "For each item in the output below" echo "whose name is greater than your previously installed RT version," - echo "rt-setup-database --action schema --datadir ${VHOST_ROOT}/${P}/upgrade/<version>" - echo "rt-setup-database --action acl --datadir ${VHOST_ROOT}/${P}/upgrade/<version>" - echo "rt-setup-database --action insert --datadir ${VHOST_ROOT}/${P}/upgrade/<version>" + echo "rt-setup-database --action schema --datadir ${VHOST_ROOT}/${PF}/upgrade/<version>" + echo "rt-setup-database --action acl --datadir ${VHOST_ROOT}/${PF}/upgrade/<version>" + echo "rt-setup-database --action insert --datadir ${VHOST_ROOT}/${PF}/upgrade/<version>" echo "Don't forget to read the online installation guide for more details" ls elif [ $1 = "clean" ]; then - # braindead - set ${P} - MY_PV=$(basename $(dirname ${MY_HOSTROOTDIR})) - MY_PN=$(basename $(dirname $(dirname ${MY_HOSTROOTDIR}))) - MY_P="${MY_PN}-${MY_PV}" - - if [[ "${VHOST_ROOT}${MY_P}" ]]; then - rm -rf ${VHOST_ROOT}/${MY_P}/bin ${VHOST_ROOT}/${MY_P}/lib/RT.pm ${VHOST_ROOT}/${MY_P}/sbin ${VHOST_ROOT}/${MY_P}/etc/RT_Config.pm + if [[ "${VHOST_ROOT}${PF}" ]]; then + rm -rf ${VHOST_ROOT}/${PF}/bin ${VHOST_ROOT}/${PF}/lib/RT.pm ${VHOST_ROOT}/${PF}/sbin else echo "Variables not set!" fi diff --git a/www-apps/rt/files/digest-rt-3.4.2 b/www-apps/rt/files/digest-rt-3.4.2 deleted file mode 100644 index 550fde369b98..000000000000 --- a/www-apps/rt/files/digest-rt-3.4.2 +++ /dev/null @@ -1 +0,0 @@ -MD5 a50158055fff423a557d43335ae1dc81 rt-3.4.2.tar.gz 1359775 |