34 lines
899 B
Bash
34 lines
899 B
Bash
# Template file for 'zaproxy'
|
|
pkgname=zaproxy
|
|
version=2.6.0
|
|
revision=1
|
|
hostmakedepends="openjdk apache-ant"
|
|
depends="virtual?java-runtime"
|
|
short_desc="Web application vulnerability scanner"
|
|
maintainer="Nicklaus McClendon <nicklaus@kulinacs.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://www.owasp.org/index.php/ZAP"
|
|
distfiles="https://github.com/zaproxy/zaproxy/archive/${version}.tar.gz"
|
|
checksum=ed9addbb3a074b208ae1bc3f509aee2c34d118ee28744a8f8f5f4e821afef687
|
|
|
|
do_configure() {
|
|
# Set version for ant
|
|
sed -i "s/Dev Build/${version}/" build/version.txt
|
|
}
|
|
|
|
do_build() {
|
|
ant -f build/build.xml dist
|
|
}
|
|
|
|
post_build() {
|
|
rm build/zap/zap.bat
|
|
chmod +x build/zap/zap.sh
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/share/${pkgname}
|
|
vcopy "build/zap/*" usr/share/${pkgname}
|
|
vinstall build/zap/zap.sh 755 usr/share/${pkgname}
|
|
vmkdir usr/bin
|
|
ln -rs ${DESTDIR}/usr/share/${pkgname}/zap.sh ${DESTDIR}/usr/bin/zaproxy
|
|
}
|