From 9047234a7e3175a14bfcbcf8211444cb47775144 Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Thu, 19 Nov 2020 09:17:14 +0000 Subject: [PATCH] rustscan: initial commit, version 2.0.1 --- rustscan/.footprint | 3 +++ rustscan/.signature | 5 +++++ rustscan/Pkgfile | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 rustscan/.footprint create mode 100644 rustscan/.signature create mode 100644 rustscan/Pkgfile diff --git a/rustscan/.footprint b/rustscan/.footprint new file mode 100644 index 000000000..997c3a6d4 --- /dev/null +++ b/rustscan/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/rustscan diff --git a/rustscan/.signature b/rustscan/.signature new file mode 100644 index 000000000..bc5930133 --- /dev/null +++ b/rustscan/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF39AuHrMuvF8hQ6FgYYaC1h4me3uHFMqaxXK1F/EYMX9ywesOjVFn73BhiJ4cBt9UngWu2XEDCBWdmjH50V8gnQ0= +SHA256 (Pkgfile) = 637e1e80eb8149e5f520ff7ff9492255bbdc0bde89dcc4dc52d79e5ee05ad09d +SHA256 (.footprint) = 09e74ff4ec946a1c0dc666a6a2ef69f056d462ddfa8c4ab9702eb7886b8f8486 +SHA256 (rustscan-2.0.1.tar.gz) = 1d458cb081cbed2db38472ff33f9546a6640632148b4396bd12f0229ca9de7eb diff --git a/rustscan/Pkgfile b/rustscan/Pkgfile new file mode 100644 index 000000000..6f21d8a92 --- /dev/null +++ b/rustscan/Pkgfile @@ -0,0 +1,22 @@ +# Description: Faster Nmap Scanning with Rust +# URL: https://github.com/brandonskerritt/RustScan +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: nmap rust + +name=rustscan +version=2.0.1 +release=1 +source=(https://github.com/brandonskerritt/RustScan/archive/$version/$name-$version.tar.gz) + +build() { + cd RustScan-$version + + prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache + mkdir "$PKGMK_SOURCE_DIR/rust" || true + export CARGO_HOME="$PKGMK_SOURCE_DIR/rust" + + cargo update + cargo fetch + cargo build --release --locked + install -Dt $PKG/usr/bin target/release/rustscan +}