1 # Contributor: fnord0 <fnord0 AT riseup DOT net>
6 pkgdesc="Java-based HTTP/HTTPS proxy for assessing web app vulnerabilities. Supports editing/viewing HTTP messages on-the-fly, spiders, client certificates, proxy-chaining, intelligent scanning for XSS and SQLi, etc."
8 url="http://www.parosproxy.org"
10 depends=('java-runtime')
11 source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}-unix.zip"
12 "http://www.parosproxy.org/${pkgname}_user_guide.pdf")
13 md5sums=('41233a331b9f951ee40fc140074d30c0'
14 '803113d7764f2e603793133e7e4e7735')
15 sha1sums=('7343e25ef125be4000832e117df9d7209a86142a'
16 'b6e7ab5fe7fdbdf33fd6d18265e9d15d8abcf2fe')
18 install -d ${pkgdir}/usr/share/${pkgname} || return 1
19 install -d ${pkgdir}/usr/share/${pkgname}/doc || return 1
20 install -d ${pkgdir}/usr/share/licenses/${pkgname} || return 1
21 install -d ${pkgdir}/usr/bin || return 1
22 install -Dm644 ${pkgname}_user_guide.pdf ${pkgdir}/usr/share/${pkgname}/doc/${pkgname}_user_guide.pdf || return 1
23 cd ${srcdir}/${pkgname}
24 install -Dm644 release.txt ${pkgdir}/usr/share/${pkgname}/doc/release.txt || return 1
25 cp -pR * ${pkgdir}/usr/share/${pkgname}/ || return 1
26 cp -p ${pkgdir}/usr/share/${pkgname}/license/* ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
29 echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
30 echo "cd /usr/share/paros" >> ${pkgdir}/usr/bin/${pkgname}
31 echo "\$JAVA_HOME/bin/java" -jar '/usr/share/paros/paros.jar' >> ${pkgdir}/usr/bin/${pkgname}
32 echo "cd -" >> ${pkgdir}/usr/bin/${pkgname}
33 chmod +x ${pkgdir}/usr/bin/${pkgname}
36 # vim:set ts=2 sw=2 noet: