about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorlogin <login@tilde.team>2024-10-30 17:36:54 +0000
committerlogin <login@tilde.team>2024-10-30 18:08:52 +0000
commit9eb68f86fd02d53e64a333415a629b524f67a091 (patch)
tree7aa6ae29a9d2948dcb871c33792745cead7c9120
parent7a61538fea92622e1182cd55d5fa8316c86265eb (diff)
downloadtcoin-9eb68f86fd02d53e64a333415a629b524f67a091.tar.gz
Added static compilation dependencies and modified ntcoin to use them HEAD master
Added static compilation dependencies for linux and modified ntcoin to use them. A future commit will do the same for OpenBSD and FreeBSD.
-rwxr-xr-xntcoin13
-rw-r--r--x86_64-linux-musl-container.tar.xz00bin0 -> 52428800 bytes
-rw-r--r--x86_64-linux-musl-container.tar.xz01bin0 -> 52428800 bytes
-rw-r--r--x86_64-linux-musl-container.tar.xz02bin0 -> 52428800 bytes
-rw-r--r--x86_64-linux-musl-container.tar.xz03bin0 -> 52428800 bytes
-rw-r--r--x86_64-linux-musl-container.tar.xz04bin0 -> 4396876 bytes
6 files changed, 11 insertions, 2 deletions
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
--- /dev/null
+++ b/x86_64-linux-musl-container.tar.xz00
Binary files differdiff --git a/x86_64-linux-musl-container.tar.xz01 b/x86_64-linux-musl-container.tar.xz01
new file mode 100644
index 0000000..558ebbc
--- /dev/null
+++ b/x86_64-linux-musl-container.tar.xz01
Binary files differdiff --git a/x86_64-linux-musl-container.tar.xz02 b/x86_64-linux-musl-container.tar.xz02
new file mode 100644
index 0000000..85f3e01
--- /dev/null
+++ b/x86_64-linux-musl-container.tar.xz02
Binary files differdiff --git a/x86_64-linux-musl-container.tar.xz03 b/x86_64-linux-musl-container.tar.xz03
new file mode 100644
index 0000000..a5be449
--- /dev/null
+++ b/x86_64-linux-musl-container.tar.xz03
Binary files differdiff --git a/x86_64-linux-musl-container.tar.xz04 b/x86_64-linux-musl-container.tar.xz04
new file mode 100644
index 0000000..50788e3
--- /dev/null
+++ b/x86_64-linux-musl-container.tar.xz04
Binary files differ