From 9eb68f86fd02d53e64a333415a629b524f67a091 Mon Sep 17 00:00:00 2001 From: login Date: Wed, 30 Oct 2024 17:36:54 +0000 Subject: Added static compilation dependencies and modified ntcoin to use them Added static compilation dependencies for linux and modified ntcoin to use them. A future commit will do the same for OpenBSD and FreeBSD. --- ntcoin | 13 +++++++++++-- x86_64-linux-musl-container.tar.xz00 | Bin 0 -> 52428800 bytes x86_64-linux-musl-container.tar.xz01 | Bin 0 -> 52428800 bytes x86_64-linux-musl-container.tar.xz02 | Bin 0 -> 52428800 bytes x86_64-linux-musl-container.tar.xz03 | Bin 0 -> 52428800 bytes x86_64-linux-musl-container.tar.xz04 | Bin 0 -> 4396876 bytes 6 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 x86_64-linux-musl-container.tar.xz00 create mode 100644 x86_64-linux-musl-container.tar.xz01 create mode 100644 x86_64-linux-musl-container.tar.xz02 create mode 100644 x86_64-linux-musl-container.tar.xz03 create mode 100644 x86_64-linux-musl-container.tar.xz04 diff --git a/ntcoin b/ntcoin index 3a93243..c49c257 100755 --- a/ntcoin +++ b/ntcoin @@ -129,11 +129,11 @@ else /bin/echo "Sorry, '`/usr/bin/realpath -s $1`/tcoin/secrets/tcoin_codez' already exists." exit 1 else - /bin/echo "`cat /dev/urandom | base64 | head -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'` `cat /dev/urandom | base64 | head -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'` `cat /dev/urandom | base64 | head -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'`" > "`/usr/bin/realpath -s $1`/tcoin/secrets/tcoin_codez" + /bin/echo "`/bin/cat /dev/urandom | base64 | head -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'` `/bin/cat /dev/urandom | base64 | head -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'` `/bin/cat /dev/urandom | base64 | head -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'`" > "`/usr/bin/realpath -s $1`/tcoin/secrets/tcoin_codez" /bin/chmod 400 "`/usr/bin/realpath -s $1`/tcoin/secrets/tcoin_codez" fi fi - if [ -d "`/usr/bin/realpath -s $1`/tcoin/bin" ] + if [ -d "`/usr/bin/realpath -s $1`/tcoin/bin" ] then /bin/echo "Sorry, '`/usr/bin/realpath -s $1`/tcoin/bin' already exists." exit 1 @@ -141,6 +141,15 @@ else /bin/mkdir "`/usr/bin/realpath -s $1`/tcoin/bin" /bin/chmod 700 "`/usr/bin/realpath -s $1`/tcoin/bin" /bin/chmod u+s "`/usr/bin/realpath -s $1`/tcoin/bin" + + if [ -d "`/usr/bin/realpath -s $1`/tcoin/bin/x86_64-linux-musl-container" ] + then + /bin/echo "Sorry, '`/usr/bin/realpath -s $1`/tcoin/bin/x86_64-linux-musl-container' already exists." + exit 1 + else + /bin/cat ./x86_64-linux-musl-container.tar.xz* | /usr/bin/tar xJf - -C "`/usr/bin/realpath -s $1`/tcoin/bin/" + /bin/chmod -R go-rwx "`/usr/bin/realpath -s $1`/tcoin/bin/x86_64-linux-musl-container" + fi if [ -e "`/usr/bin/realpath -s $1`/tcoin/bin/scrypt" ] then /bin/echo "Sorry, '`/usr/bin/realpath -s $1`/tcoin/bin/scrypt' already exists." diff --git a/x86_64-linux-musl-container.tar.xz00 b/x86_64-linux-musl-container.tar.xz00 new file mode 100644 index 0000000..ae9a175 Binary files /dev/null and b/x86_64-linux-musl-container.tar.xz00 differ diff --git a/x86_64-linux-musl-container.tar.xz01 b/x86_64-linux-musl-container.tar.xz01 new file mode 100644 index 0000000..558ebbc Binary files /dev/null and b/x86_64-linux-musl-container.tar.xz01 differ diff --git a/x86_64-linux-musl-container.tar.xz02 b/x86_64-linux-musl-container.tar.xz02 new file mode 100644 index 0000000..85f3e01 Binary files /dev/null and b/x86_64-linux-musl-container.tar.xz02 differ diff --git a/x86_64-linux-musl-container.tar.xz03 b/x86_64-linux-musl-container.tar.xz03 new file mode 100644 index 0000000..a5be449 Binary files /dev/null and b/x86_64-linux-musl-container.tar.xz03 differ diff --git a/x86_64-linux-musl-container.tar.xz04 b/x86_64-linux-musl-container.tar.xz04 new file mode 100644 index 0000000..50788e3 Binary files /dev/null and b/x86_64-linux-musl-container.tar.xz04 differ -- cgit 1.4.1-2-gfad0