From d7e9bb66509d2c7f01ea2084f34f7be06c42b7aa Mon Sep 17 00:00:00 2001 From: ramon Date: Thu, 17 Jan 2013 12:02:01 +0000 Subject: [PATCH] #541: Compilar Maloader para ejecutar algunos comandos MacOSA en el cliente OpenGnSys. git-svn-id: https://opengnsys.es/svn/branches/version1.0@3485 a21b9725-9963-47de-94b9-378ad31fedc9 --- .../boot-tools/boottoolsSoftwareCompile.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/includes/usr/bin/boot-tools/boottoolsSoftwareCompile.sh b/includes/usr/bin/boot-tools/boottoolsSoftwareCompile.sh index 5e5195b..0f9cda8 100755 --- a/includes/usr/bin/boot-tools/boottoolsSoftwareCompile.sh +++ b/includes/usr/bin/boot-tools/boottoolsSoftwareCompile.sh @@ -56,6 +56,25 @@ cp -va sgdisk gdisk fixparts cgdisk /sbin cd .. rm -fr gptfdisk-0.8.5* +# Mach-O loader for Linux +echo "maloader" +wget https://github.com/shinh/maloader/archive/master.zip +unzip master.zip +cd maloader-master +perl -pi -le 'print "#include " if $. == 45' ld-mac.cc +if [ "$(arch)" == "x86_64" ]; then + ln -fs /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so 2>/dev/null + make release +else + ln -fs /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so 2>/dev/null + make clean + make all BITS=32 +fi +cp -va ld-mac /usr/bin +cp -va libmac.so /usr/lib +cd .. +rm -fr master.zip maloader-master + popd export LANGUAGE=$OLDLANGUAGE export LC_ALL=$OLDLC_ALL