Added static compilation dependencies and modified ntcoin to use them
HEAD masterAdded static compilation dependencies for linux and modified ntcoin to use them. A future commit will do the same for OpenBSD and FreeBSD.
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 |