aboutsummaryrefslogtreecommitdiffstats
path: root/feroxbuster
diff options
context:
space:
mode:
Diffstat (limited to 'feroxbuster')
-rw-r--r--feroxbuster/README5
-rw-r--r--feroxbuster/feroxbuster.SlackBuild8
-rw-r--r--feroxbuster/feroxbuster.info2
3 files changed, 14 insertions, 1 deletions
diff --git a/feroxbuster/README b/feroxbuster/README
index 7c1956c..99ff2ed 100644
--- a/feroxbuster/README
+++ b/feroxbuster/README
@@ -5,6 +5,11 @@ resources) that a web application does not reference but still serves.
This package is x86_64 only.
+It builds against rust-opt so it works on Slackware -stable, whose
+system cargo is too old to read the version 4 Cargo.lock. On -current
+the system rust is new enough; rust-opt is still listed as a dependency
+for a uniform build but its profile script is simply absent there.
+
Because SlackBuilds.org build hosts have no network access at build
time, this script does not let cargo fetch crates from the network.
Instead, a prebuilt vendored-crates tarball
diff --git a/feroxbuster/feroxbuster.SlackBuild b/feroxbuster/feroxbuster.SlackBuild
index 036dc21..fa3e812 100644
--- a/feroxbuster/feroxbuster.SlackBuild
+++ b/feroxbuster/feroxbuster.SlackBuild
@@ -99,6 +99,14 @@ directory = "vendor"
offline = true
EOF
+# On Slackware -stable the system cargo is too old to read the v4
+# Cargo.lock, so we build against rust-opt (installs under /opt). Source
+# its profile script to put the newer cargo first on PATH. On -current
+# the system rust is new enough and this file simply won't exist.
+if [ -r /etc/profile.d/rust-opt.sh ]; then
+ . /etc/profile.d/rust-opt.sh
+fi
+
# Build release binary fully offline against the vendored crates.
# --locked guarantees Cargo.lock is honored and never rewritten.
export CARGO_HOME="$TMP/$PRGNAM-$VERSION/.cargo"
diff --git a/feroxbuster/feroxbuster.info b/feroxbuster/feroxbuster.info
index c7be9a5..c13fdb1 100644
--- a/feroxbuster/feroxbuster.info
+++ b/feroxbuster/feroxbuster.info
@@ -7,6 +7,6 @@ DOWNLOAD_x86_64="https://github.com/epi052/feroxbuster/archive/v2.13.1/feroxbust
https://packages.danix.xyz/sbo/feroxbuster/feroxbuster-2.13.1-vendor.tar.xz"
MD5SUM_x86_64="dc0bfa007f22815875b8094d954c4f60 \
3cc65fe23ae6abe30e3299e48f99dccc"
-REQUIRES=""
+REQUIRES="rust-opt"
MAINTAINER="danix"
EMAIL="danix@danix.xyz"