Add nwipe with report generation with custom logos etc
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
version=0.42
|
||||
archive_sha256=0E38474495CC6C86043A1DE0460CF0DC009AD68E079EE23D71569E80E55CD2E6
|
||||
build_packages="autoconf automake autopoint build-essential gettext libconfig++-dev libconfig-dev libncurses-dev libparted-dev libtool libuuid-dev pkg-config wget"
|
||||
work_dir=$(mktemp -d)
|
||||
|
||||
cleanup() {
|
||||
rm -rf "$work_dir"
|
||||
apt-get purge --yes $build_packages
|
||||
apt-get autoremove --yes
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
apt-get update
|
||||
apt-get install --yes ca-certificates
|
||||
apt-get install --yes --no-install-recommends $build_packages
|
||||
wget --quiet --output-document="$work_dir/nwipe.tar.gz" "https://github.com/martijnvanbrummelen/nwipe/archive/refs/tags/v$version.tar.gz"
|
||||
printf '%s %s\n' "$archive_sha256" "$work_dir/nwipe.tar.gz" | sha256sum --check --status
|
||||
tar --extract --gzip --file="$work_dir/nwipe.tar.gz" --directory="$work_dir"
|
||||
cd "$work_dir/nwipe-$version"
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr/local
|
||||
make --jobs="$(nproc)"
|
||||
make install
|
||||
Reference in New Issue
Block a user