summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat
diff options
context:
space:
mode:
Diffstat (limited to 'www/jakarta-tomcat')
-rwxr-xr-xwww/jakarta-tomcat/files/getsite.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/jakarta-tomcat/files/getsite.sh b/www/jakarta-tomcat/files/getsite.sh
new file mode 100755
index 00000000000..56531f5d710
--- /dev/null
+++ b/www/jakarta-tomcat/files/getsite.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+TOMCAT_VERSION=${1##*-}
+TOMCAT_VERSION=${TOMCAT_VERSION%%.tar.gz}
+ftp -o - http://jakarta.apache.org/site/binindex.cgi | \
+ grep '<option' | \
+ tr -d '\n' | \
+ sed -e's/[[:space:]]*//g' -e's,[^<]*<optionvalue="\([^"]*\)">[^<]*</option>,\1 ,g' | \
+ sed -e"s,\(http:[^ ]*\),\1/jakarta/tomcat-5/v${TOMCAT_VERSION}/bin/,g"