Merge pull request #5010 from kulinacs/zaproxy
New package: zaproxy-2.5.0
This commit is contained in:
commit
7b8e565622
2 changed files with 45 additions and 0 deletions
11
srcpkgs/zaproxy/patches/build.patch
Normal file
11
srcpkgs/zaproxy/patches/build.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- build/build.xml
|
||||
+++ build/build.xml
|
||||
@@ -129,7 +129,7 @@
|
||||
|
||||
</target>
|
||||
|
||||
- <target name="dist" depends="compile" description="Generates the distribution">
|
||||
+ <target name="dist" depends="setup, compile" description="Generates the distribution">
|
||||
<echo message="Creating the distribution set..." />
|
||||
|
||||
<!-- Create the distribution directory -->
|
34
srcpkgs/zaproxy/template
Normal file
34
srcpkgs/zaproxy/template
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Template file for 'zaproxy'
|
||||
pkgname=zaproxy
|
||||
version=2.5.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=3fc4e6700e8fc462f01cf8af27c6d531ad682bb4e016ffc9897ce72cb9e28866
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue