1 # Contributor: fnord0 <AT> riseup <DOT> net
2 # Contributor: nblock <nblock [/at\] archlinux DOT us>
3 # Contributor: Robson Peixoto <robsonpeixoto@gmail.com>
8 pkgdesc="WebScarab NG (Next Generation) - a framework for analysing web applications that communicate using HTTP and HTTPS protocols"
10 url="http://www.owasp.org/index.php/OWASP_WebScarab_NG_Project"
12 depends=('java-runtime' 'hsqldb-java')
13 source=("http://webscarab-ng.googlecode.com/files/WebScarab-ng-${pkgver}.one-jar.zip")
14 md5sums=('deb33e77dcd4bc0fd51503523afadff7')
17 mkdir -p "${pkgdir}/usr/share/${pkgname}"
18 mkdir -p "${pkgdir}/usr/bin"
19 install -m755 ${srcdir}/WebScarab-ng-${pkgver}.one-jar.jar "${pkgdir}/usr/share/${pkgname}/${pkgname}.jar"
22 echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
23 echo "exec \$JAVA_HOME/bin/java -cp /usr/share/java/hsqldb.jar org.hsqldb.util.DatabaseManager &" >> ${pkgdir}/usr/bin/${pkgname}
24 echo "exec \$JAVA_HOME/bin/java -jar /usr/share/webscarab-ng/webscarab-ng.jar \$*" >> ${pkgdir}/usr/bin/${pkgname}
25 chmod +x ${pkgdir}/usr/bin/${pkgname}
27 #create /usr/share/webscarab-ng/howto.txt
28 echo "1) run '/usr/bin/webscarab-ng' to start WebScarab-NG (and the HSQLDB Manager GUI)" > ${pkgdir}/usr/share/${pkgname}/howto.txt
29 echo "2) copy the 'URL' exactly as listed in WebScarab-NG, and paste it into the 'URL' field within HSQLDB Manager GUI" >> ${pkgdir}/usr/share/${pkgname}/howto.txt
30 echo "3) choose 'HSQL DataBase Engine Standalone' in the 'TYPE' drop-down box within the HSQLDB Manager GUI" >> ${pkgdir}/usr/share/${pkgname}/howto.txt
31 echo "4) then hit 'OK' within HSQLDB Manager GUI, and hit 'OK' within WebScarab-NG" >> ${pkgdir}/usr/share/${pkgname}/howto.txt
35 echo -e "\e[1;31m[\e[0m\e[1;34m*\e[0m\e[1;31m]\e[0m \e[1;31mrun '\e[0m\e[1;34m/usr/bin/webscarab-ng\e[0m\e[1;31m' to start WebScarab-NG (and the HSQLDB Manager GUI)\e[0m"
36 echo -e "\e[1;31m[\e[0m\e[1;34m*\e[0m\e[1;31m]\e[0m \e[1;31mcopy the '\e[0m\e[1;34mURL\e[0m\e[1;31m' exactly as listed in WebScarab-NG, and paste it into the '\e[0m\e[1;34mURL\e[0m\e[1;31m' field within HSQLDB Manager GUI\e[0m"
37 echo -e "\e[1;31m[\e[0m\e[1;34m*\e[0m\e[1;31m]\e[0m \e[1;31mchoose '\e[0m\e[1;34mHSQL DataBase Engine Standalone\e[0m\e[1;31m' in the '\e[0m\e[1;34mTYPE\e[0m\e[1;31m' drop-down box within the HSQLDB Manager GUI\e[0m"
38 echo -e "\e[1;31m[\e[0m\e[1;34m*\e[0m\e[1;31m]\e[0m \e[1;31mthen hit '\e[0m\e[1;34mOK\e[0m\e[1;31m' within HSQLDB Manager GUI, and hit '\e[0m\e[1;34mOK\e[0m\e[1;31m' within WebScarab-NG\e[0m"
39 echo -e "\e[1;34m>>>\e[0m \e[1;31mWebScarab-NG homepage @ \e[0m\e[1;32mhttp://www.owasp.org/index.php/OWASP_WebScarab_NG_Project\e[0m"
43 # vim:set ts=2 sw=2 noet: