summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat
diff options
context:
space:
mode:
authorerh <erh@pkgsrc.org>2004-04-29 18:25:33 +0000
committererh <erh@pkgsrc.org>2004-04-29 18:25:33 +0000
commit638c3d6478a0c1d96b0994fa2a0d1d22426fb9f4 (patch)
tree1e0627a633a8bfdfcdd0e5dafe10d61177391e12 /www/jakarta-tomcat
parent66262e653999a45ecdd14f9e8e60b546c084492e (diff)
downloadpkgsrc-638c3d6478a0c1d96b0994fa2a0d1d22426fb9f4.tar.gz
Add the script to get the list of master sites for Tomcat 5.
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"