aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--feroxbuster/README3
-rw-r--r--feroxbuster/feroxbuster.SlackBuild11
2 files changed, 8 insertions, 6 deletions
diff --git a/feroxbuster/README b/feroxbuster/README
index 99ff2ed..abfd92a 100644
--- a/feroxbuster/README
+++ b/feroxbuster/README
@@ -8,7 +8,8 @@ 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.
+for a uniform build but its /opt/rust/bin directory 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.
diff --git a/feroxbuster/feroxbuster.SlackBuild b/feroxbuster/feroxbuster.SlackBuild
index fa3e812..b6e0134 100644
--- a/feroxbuster/feroxbuster.SlackBuild
+++ b/feroxbuster/feroxbuster.SlackBuild
@@ -100,11 +100,12 @@ 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
+# Cargo.lock, so we build against rust-opt, which installs its toolchain
+# under /opt/rust/bin (it ships no profile.d script). Put it first on
+# PATH when present. On -current the system rust is new enough and this
+# directory simply won't exist.
+if [ -x /opt/rust/bin/cargo ]; then
+ export PATH="/opt/rust/bin:$PATH"
fi
# Build release binary fully offline against the vendored crates.