void-packages/srcpkgs/zaproxy/template
Michael Aldridge 902807f15e <various>: reassign package ownership from kulinacs to maldridge
@kulinacs has requested to orphan all currently owned packages
in #9542.  This commit reassigns all packages affected to
@the-maldridge.

[skip ci]

Closes: #9544 [via git-merge-pr]
2017-11-25 23:53:58 -08:00

34 lines
898 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="Michael Aldridge <maldridge@VoidLinux.eu>"
license="Apache-2.0"
homepage="https://www.owasp.org/index.php/ZAP"
distfiles="https://github.com/zaproxy/zaproxy/archive/${version}.tar.gz"
checksum=c67652108cf1e14610e7b917a587c90b959f1548b59beef45af11166d56bc8d4
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
}