Advertisement
Guest User

Untitled

a guest
Jan 31st, 2022
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. # Maintainer: tuxayo < victor (replace by @) tuxayo DOT net >
  2. # Contributor: Lex Black <autumn-wind at web dot de>
  3. # Contributor: fnord0 < fnord0 AT riseup DOT net >
  4. # Contributor: Andrejs Mivreņiks <gim at fastmail dot fm>
  5. # Contributor: tuxayo < victor (replace by @) tuxayo DOT net >
  6. # Contributor: Jaap <jaap.aarts1@gmail.com>
  7.  
  8. pkgname=webgoat
  9. pkgver=8.1.0
  10. pkgrel=1
  11. pkgdesc='Deliberately insecure J2EE web application designed to teach web application security concepts'
  12. arch=('i686' 'x86_64')
  13. url='https://github.com/WebGoat/WebGoat'
  14. license=('GPL2')
  15. depends=('java-runtime=11')
  16. makedepends=('maven' 'git')
  17. optdepends=('webscarab: proxy for analyzing applications that communicate using the HTTP and HTTPS protocols, used to help solve most WebGoat lessons'
  18. 'paros: MitM HTTP/HTTPS proxy, spider, XSS and injection scanner + more, used to help solve WebGoat lessons')
  19. source=("https://github.com/WebGoat/WebGoat/archive/refs/tags/v$pkgver.zip"
  20. "webgoat.sh"
  21. "git+https://github.com/WebGoat/WebGoat-Lessons.git")
  22. sha256sums=('5655798f738617cf25fd6a4e8b65212d5b956fa269a1e9f9facee50ec3509e81'
  23. '3615a09c64eb07709bede9b22782bedeffe7c7097cde1c6bcc2a07adcd28712c'
  24. 'SKIP')
  25. install="$pkgname.install"
  26.  
  27. prepare() {
  28. cd "$srcdir/WebGoat-Lessons"
  29. git checkout master
  30.  
  31. # Needed to fix issues with maven
  32. echo "<settings><localRepository>$srcdir</localRepository></settings>" > "$srcdir/maven-settings.xml"
  33. }
  34.  
  35. build() {
  36. cd "$srcdir/WebGoat-$pkgver"
  37. mvn package
  38. }
  39.  
  40. package() {
  41. cd "$srcdir/WebGoat-$pkgver"
  42. install -Dm755 ../webgoat.sh "$pkgdir/usr/bin/webgoat"
  43. install -d "$pkgdir/opt/$pkgname"
  44. install -Dm644 "webgoat-server/target/webgoat-server-v$pkgver.jar" "$pkgdir/opt/$pkgname/webgoat.jar"
  45. }
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement