commit: dff8bb20debc83e8b354e5363e1feb976a0fcc08
Author: William L. Thomson Jr <wlt <AT> o-sinc <DOT> com>
AuthorDate: Tue Nov 10 23:22:41 2015 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Nov 10 23:22:41 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dff8bb20
www-servers/tomcat: Added missing docBase to webapps context.xml files
Added sed to add missing docBase to host-manager and manager webapps
context.xml files
.../tomcat/{tomcat-8.0.28-r1.ebuild => tomcat-8.0.28-r2.ebuild} | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/www-servers/tomcat/tomcat-8.0.28-r1.ebuild
b/www-servers/tomcat/tomcat-8.0.28-r2.ebuild
similarity index 94%
rename from www-servers/tomcat/tomcat-8.0.28-r1.ebuild
rename to www-servers/tomcat/tomcat-8.0.28-r2.ebuild
index 0d40f89..3595c57 100644
--- a/www-servers/tomcat/tomcat-8.0.28-r1.ebuild
+++ b/www-servers/tomcat/tomcat-8.0.28-r2.ebuild
@@ -99,6 +99,13 @@ src_install() {
### Webapps ###
+ # add missing docBase
+ local apps="host-manager manager"
+ for app in ${apps}; do
+ sed -i -e "s|=\"true\" >|=\"true\"
docBase=\"\$\{catalina.home\}/webapps/${app}\" >|" \
+ output/build/webapps/${app}/META-INF/context.xml || die
+ done
+
insinto "${dest}"/webapps
doins -r output/build/webapps/{host-manager,manager,ROOT}
use extra-webapps && doins -r output/build/webapps/{docs,examples}