# Tanım: Web uygulama testleri için entegre bir platform (ücretsiz sürüm).
# URL: http://portswigger.net/burp/
# Paketçi: yakar
# Gerekler: giflib
# Grup: güvenlik

isim=burpsuite
surum=1.7.36
devir=1
kaynak=(https://portswigger.net/burp/releases/download?product=community\&surum=${surum}\&type=jar::burpsuite_community_v$surum.jar
		LICENSE)

derle() {

	cd "$SRC"
  	mkdir -p "$PKG/usr/bin" "$PKG/usr/share/$isim/"
  	cp $SRC/burpsuite_community_v$surum.jar $PKG/usr/share/$isim/$isim.jar
  	install -Dm644 "$SRC/LICENSE" "$PKG/usr/share/licenses/$isim/LICENSE"
  	cat > "$PKG/usr/bin/$isim" << EOF
#!/bin/sh
exec java -jar /usr/share/$isim/$isim.jar "\${@}"
EOF
  	chmod +x "$PKG/usr/bin/$isim"
  	
  	
  	# desktop
  	mkdir -p "$PKG/usr/share/applications/"
	cat > $PKG/usr/share/applications/$isim.desktop << BASLA
[Desktop Entry]
Name=Burp Suite (CE)
Exec=burpsuite
Terminal=false
Icon=burpsuite
Type=Application
Categories=Network;X-Komutan;
Version=1.0
BASLA
}
