Parcourir la source

update userland

wareck il y a 1 an
Parent
commit
bc24d03f6a
1 fichiers modifiés avec 29 ajouts et 8 suppressions
  1. 29 8
      make_deps.sh

+ 29 - 8
make_deps.sh

@@ -1,5 +1,5 @@
 #!/bin/bash
-Version=3.0
+Version=3.5
 OpenSSL_v=1.0.2u
 Boost_v=1_67_0
 DB_v=4.8.30
@@ -10,6 +10,8 @@ unzip_i=""
 ftp_i=""
 pixz_i=""
 pigz_i=""
+cmake_i=""
+chkinstall_i=""
 z=""
 
 set -e
@@ -27,19 +29,24 @@ echo -e "Okcash_source        : $okcash_v"
 
 function system_check {
 echo -e "\n\e[95mSystem check :\e[0m"
-echo -e -n "Check ZIP  installed : "
+echo -e -n "Check ZIP            : "
 if ! [ -x "$(command -v zip)" ];then zip_i="zip" && echo -e "[\e[91mNO\e[0m]";else echo -e "[\e[92mOK\e[0m]";fi
 if ! [ -x "$(command -v unzip)" ];then unzip_i="unzip" ;fi
-echo -e -n "Check LFTP installed : "
+echo -e -n "Check LFTP           : "
 if ! [ -x "$(command -v lftp)" ];then ftp_i="lftp" && echo -e "[\e[91mNO\e[0m]";else echo -e "[\e[92mOK\e[0m]";fi
-echo -e -n "Check PIXZ installed : "
+echo -e -n "Check PIXZ           : "
 if ! [ -x "$(command -v pixz)" ];then pixz_i="pixz" && echo -e "[\e[91mNO\e[0m]";else echo -e "[\e[92mOK\e[0m]";fi
-echo -e -n "Check PIGZ installed : "
+echo -e -n "Check PIGZ           : "
 if ! [ -x "$(command -v pigz)" ];then pigz_i="pigz" && echo -e "[\e[91mNO\e[0m]";else echo -e "[\e[92mOK\e[0m]"; fi
-if [[ ! $ftp_i = "" || ! $zip_i = "" || ! $unzip_i = "" || ! $pixz_i = "" || ! $pigz_i = "" ]]
+echo -e -n "Check CMAKE          : "
+if ! [ -x "$(command -v cmake)" ];then cmake_i="cmake" && echo -e "[\e[91mNO\e[0m]";else echo -e "[\e[92mOK\e[0m]"; fi
+echo -e -n "Check CHKININSTALL   : "
+if ! [ -x "$(command -v checkinstall)" ];then chkinstall_i="checkinstall" && echo -e "[\e[91mNO\e[0m]";else echo -e "[\e[92mOK\e[0m]"; fi
+
+if [[ ! $ftp_i = "" || ! $zip_i = "" || ! $unzip_i = "" || ! $pixz_i = "" || ! $pigz_i = "" || ! $cmake_i = "" || ! $chkinstall_i = "" ]]
 then
 echo -e ""
-sudo apt install $ftp_i $zip_i $unzip_i $pv_i $pixz_i $pigz_i -y
+sudo apt install $ftp_i $zip_i $unzip_i $pv_i $pixz_i $pigz_i $cmake_i $chkinstall_i -y
 fi
 }
 
@@ -113,6 +120,7 @@ wget -c -q --show-progress http://download.oracle.com/berkeley-db/db-$DB_v.tar.g
 wget -c -q --show-progress http://download.oracle.com/berkeley-db/db-$DB_v.NC.tar.gz
 wget -c -q --show-progress https://www.openssl.org/source/openssl-$OpenSSL_v.tar.gz
 if ! [ -d megadown ];then git clone http://gogserver.dnsalias.com:3000/wareck/megadown.git;fi
+if ! [ -d userland ];then git clone https://github.com/raspberrypi/userland.git ;fi
 echo "Done."
 }
 
@@ -144,6 +152,14 @@ function compress_ {
 echo ""
 echo -e "\n\e[95mCompress libraries :\e[0m"
 sleep 1
+echo -e -n "userland"
+cd userland
+if [ ! -d build ];then mkdir build;fi
+cd build
+cmake ..
+sudo checkinstall --pkgname=userland --pkgversion="1.51" --default
+cd ..
+cd ..
 echo -e -n "megadown:"
 cd megadown
 tar cfj megadown.tar.bz2 megadown
@@ -194,10 +210,15 @@ put boost_$Boost_v.tar.xz -o /crypto/okcash/boost_$Boost_v.tar.xz
 EOF
 echo -e "boost_$Boost_v.tar.xz: Ok."
 
+lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
+put userland/build/userland_1.51-1_armhf.deb -o /crypto/okcash/userland_1.51-1_armhf.deb
+EOF
+echo -e "Userland :Ok."
+
 lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
 put megadown.tar.bz2 -o /crypto/okcash/megadown.tar.bz2
 EOF
-echo -e "megadown: Ok."
+echo -e "Megadown: Ok."
 
 lftp -u wareck,zorn692611 ftpperso.free.fr <<EOF
 put db-$DB_v.tar.xz -o /crypto/okcash/db-$DB_v.tar.xz