summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerh <erh>2004-04-29 18:25:33 +0000
committererh <erh>2004-04-29 18:25:33 +0000
commit87d9ca169cd5c5126ad5aee2788509a1236ad142 (patch)
tree1e0627a633a8bfdfcdd0e5dafe10d61177391e12
parent5f2ed2f3de48283c4db512a2d819099fec0666dc (diff)
downloadpkgsrc-87d9ca169cd5c5126ad5aee2788509a1236ad142.tar.gz
Add the script to get the list of master sites for Tomcat 5.
-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"