makedeb


burpsuite 2022.1.1-1


An integrated platform for performing security testing of web applications (free edition)

Click here to go back to the commit logs for burpsuite.

Commit:


Hash: 6f1312b14d71907a450c72a0516457dc4b132236

Message: Add configuration file for Java options

Diff


diff --git a/.SRCINFO b/.SRCINFO
index f87b692..e546d9b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -13,9 +13,13 @@ pkgbase = burpsuite
 	source = LICENSE
 	source = burpsuite.desktop
 	source = icon64.png
+	source = burpsuite
+	source = java-opts.sh.example
 	sha256sums = cdcd69af4d49af1d3584d4a0b7fc52f14185d28fe5ab465f6432943678b801bc
 	sha256sums = a1146672de7084a1cddc5b7dab4d18b3530c194bd6e45a2b0ac04b579751ca30
 	sha256sums = 1686e36d4dac6de1c97695fb07b6c58f62d1ff128cbc98e642cc8b6f5db3e2bc
 	sha256sums = d31232a7dbdab9d5723f12aa25c52d13fd46ef2e8837a85fb9a08c3a7f151541
+	sha256sums = 13fcd2512391abef602ee1c5c232b8c8083f23bdd5af82640b98a46ef6cef050
+	sha256sums = 7cbc620d908f1ffaece855db0a899dfcb3e47f4957a36dbb49bbde0bbac052bb
 
 pkgname = burpsuite
diff --git a/PKGBUILD b/PKGBUILD
index 1acc98f..1dbc26e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,11 +12,15 @@ noextract=("${pkgname}-${pkgver}.jar")
 source=("${pkgname}-${pkgver}.jar::https://portswigger.net/burp/releases/download?product=community&version=${pkgver}&type=Jar"
         LICENSE
         burpsuite.desktop
-        icon64.png)
+        icon64.png
+        burpsuite
+        java-opts.sh.example)
 sha256sums=('cdcd69af4d49af1d3584d4a0b7fc52f14185d28fe5ab465f6432943678b801bc'
             'a1146672de7084a1cddc5b7dab4d18b3530c194bd6e45a2b0ac04b579751ca30'
             '1686e36d4dac6de1c97695fb07b6c58f62d1ff128cbc98e642cc8b6f5db3e2bc'
-            'd31232a7dbdab9d5723f12aa25c52d13fd46ef2e8837a85fb9a08c3a7f151541')
+            'd31232a7dbdab9d5723f12aa25c52d13fd46ef2e8837a85fb9a08c3a7f151541'
+            '13fcd2512391abef602ee1c5c232b8c8083f23bdd5af82640b98a46ef6cef050'
+            '7cbc620d908f1ffaece855db0a899dfcb3e47f4957a36dbb49bbde0bbac052bb')
 
 package() {
   mkdir -p ${pkgdir}/usr/bin
@@ -25,13 +29,10 @@ package() {
   cd ${srcdir}
   install -m644 ${pkgname}-${pkgver}.jar ${pkgdir}/usr/share/${pkgname}/${pkgname}.jar
   install -m644 LICENSE ${pkgdir}/usr/share/doc/${pkgname}/copyright
+  install -m644 java-opts.sh.example ${pkgdir}/usr/share/doc/${pkgname}/
   install -m644 burpsuite.desktop ${pkgdir}/usr/share/applications/
   install -m644 icon64.png ${pkgdir}/usr/share/pixmaps/burpsuite.png
-
-  # Create startup file for burpsuite.
-  echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
-  echo "exec \$JAVA_HOME/bin/java --illegal-access=permit -jar /usr/share/burpsuite/burpsuite.jar \$@" >> ${pkgdir}/usr/bin/${pkgname}
-  chmod 755 ${pkgdir}/usr/bin/${pkgname}
+  install -m755 burpsuite ${pkgdir}/usr/bin/
 }
 
 # vim:set ts=2 sw=2 et:
diff --git a/burpsuite b/burpsuite
new file mode 100755
index 0000000..5e656a3
--- /dev/null
+++ b/burpsuite
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ -f ~/.config/burpsuite/java-opts.sh ] && . ~/.config/burpsuite/java-opts.sh
+
+exec $JAVA_HOME/bin/java --illegal-access=permit $JAVA_OPTS -jar /usr/share/burpsuite/burpsuite.jar $@
diff --git a/java-opts.sh.example b/java-opts.sh.example
new file mode 100644
index 0000000..f1017be
--- /dev/null
+++ b/java-opts.sh.example
@@ -0,0 +1,9 @@
+#
+# If you want to set your own java settings when running BurpSuite
+# then install this file in your home directory under
+# ~/.config/burpsuite/java-opts.sh and the JAVA_OPTS variable will
+# be sourced when BurpSuite starts
+#
+
+JAVA_OPTS="-Xms4g -Xmx4g -Dsun.java2d.uiScale=2.0"
+