diff options
author | Tim Biermann <tbier@posteo.de> | 2020-11-19 09:17:14 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-11-19 09:31:25 +0000 |
commit | 9047234a7e3175a14bfcbcf8211444cb47775144 (patch) | |
tree | e45c5eb2f906b137f7af4f462ee10cb17c1fccd0 /rustscan/Pkgfile | |
parent | 764af80003313871a3190f3cd0d39ab597976b52 (diff) | |
download | contrib-9047234a7e3175a14bfcbcf8211444cb47775144.tar.gz contrib-9047234a7e3175a14bfcbcf8211444cb47775144.tar.xz |
rustscan: initial commit, version 2.0.1
Diffstat (limited to 'rustscan/Pkgfile')
-rw-r--r-- | rustscan/Pkgfile | 22 |
1 files changed, 22 insertions, 0 deletions
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 +} |