3rdparty/local/build.sh | ●●●●● patch | view | raw | blame | history | |
3rdparty/local/libevent/build.sh | ●●●●● patch | view | raw | blame | history | |
3rdparty/local/libgpiod/build.sh | ●●●●● patch | view | raw | blame | history | |
3rdparty/local/mosquitto/build.sh | ●●●●● patch | view | raw | blame | history | |
3rdparty/local/openssl/build.sh | ●●●●● patch | view | raw | blame | history | |
3rdparty/local/openssl/patch/openssl-0.9.8zf-tls-extensions.patch | ●●●●● patch | view | raw | blame | history | |
3rdparty/local/paho.mqtt/build.sh | ●●●●● patch | view | raw | blame | history | |
3rdparty/local/ppp/build.sh | ●●●●● patch | view | raw | blame | history |
3rdparty/local/build.sh
@@ -31,6 +31,8 @@ rm -rf ${dir}/${dir}* fi done rm -rf install } if [[ $# == 1 ]] && [[ $1 == "clean" ]] ; then 3rdparty/local/libevent/build.sh
@@ -1,10 +1,10 @@ #!/bin/bash #+-------------------------------------------------------------------------------------------- #|Description: This shell script used download and compile libevent for ARM #|Description: This shell script used download and compile libevent for RaspberryPi #| Author: GuoWenxue <guowenxue@gmail.com> #| ChangeLog: #| 1, Initialize 1.0.0 on 2011.04.12 #| 1, Initialize 1.0.0 on 2021.04.12 #+-------------------------------------------------------------------------------------------- PREFIX_PATH=/usr @@ -51,6 +51,8 @@ fi tar -xzf ${SRC_NAME}.${PACK_SUFIX} check_result "ERROR: decompress ${SRC_NAME} failure" cd ${SRC_NAME} ./configure --prefix=${PREFIX_PATH} --enable-thread-support --enable-openssl --enable-function-sections 3rdparty/local/libgpiod/build.sh
@@ -1,10 +1,10 @@ #!/bin/bash #+-------------------------------------------------------------------------------------------- #|Description: This shell script used download and compile MQTT C library mosquitto for ARM #|Description: This shell script used download and compile libgpiod for RaspberryPi #| Author: GuoWenxue <guowenxue@gmail.com> #| ChangeLog: #| 1, Initialize 1.0.0 on 2011.04.12 #| 1, Initialize 1.0.0 on 2021.04.12 #+-------------------------------------------------------------------------------------------- PREFIX_PATH=/usr 3rdparty/local/mosquitto/build.sh
@@ -1,7 +1,7 @@ #!/bin/bash #+-------------------------------------------------------------------------------------------- #|Description: This shell script used download and compile MQTT C library mosquitto for ARM #|Description: This shell script used download and compile mosquitto for RaspberryPi #| Author: GuoWenxue <guowenxue@gmail.com> #| ChangeLog: #| 1, Initialize 1.0.0 on 2011.04.12 @@ -51,7 +51,11 @@ fi tar -xzf ${SRC_NAME}.${PACK_SUFIX} check_result "ERROR: decompress ${SRC_NAME} failure" cd ${SRC_NAME} sudo apt install -y libssl1.0-dev export DESTDIR=${PREFIX_PATH} make WITH_SRV=no WITH_UUID=no @@ -60,7 +64,6 @@ sudo make prefix=${PREFIX_PATH} install } sudo apt install -y libssl1.0-dev compile_mosquitto 3rdparty/local/openssl/build.sh
File was deleted 3rdparty/local/openssl/patch/openssl-0.9.8zf-tls-extensions.patch
File was deleted 3rdparty/local/paho.mqtt/build.sh
@@ -1,7 +1,7 @@ #!/bin/bash #+-------------------------------------------------------------------------------------------- #|Description: This shell script used download and compile paho.mqtt for ARM #|Description: This shell script used download and compile paho.mqtt for RaspberryPi #| Author: GuoWenxue <guowenxue@gmail.com> #| ChangeLog: #| 1, Initialize 1.0.0 on 2011.04.12 3rdparty/local/ppp/build.sh
New file @@ -0,0 +1,70 @@ #!/bin/bash #+-------------------------------------------------------------------------------------------- #|Description: This shell script used download and compile pppd for RaspberryPi #| Author: GuoWenxue <guowenxue@gmail.com> #| ChangeLog: #| 1, Initialize 1.0.0 on 2011.04.12 #+-------------------------------------------------------------------------------------------- PREFIX_PATH=`pwd`/../install LYFTP_SRC=ftp://master.iot-yun.club/src/ function msg_banner() { echo "" echo "+-----------------------------------------------------------------------" echo "| $1 " echo "+-----------------------------------------------------------------------" echo "" } function check_result() { if [ $? != 0 ] ; then echo "" echo "+-----------------------------------------------------------------------" echo "| $1 " echo "+-----------------------------------------------------------------------" echo "" exit ; fi } function compile_pppd() { SRC_NAME=ppp-2.4.9 PACK_SUFIX=tar.gz if [ -f ${PREFIX_PATH}//usr/local/sbin/pppd ] ; then msg_banner "$SRC_NAME already compile and installed" return 0; fi msg_banner "Start cross compile $SRC_NAME " if [ ! -f ${SRC_NAME}.${PACK_SUFIX} ] ; then #wget https://download.samba.org/pub/ppp/${SRC_NAME}.${PACK_SUFIX} wget ${LYFTP_SRC}/${SRC_NAME}.${PACK_SUFIX} check_result "ERROR: download ${SRC_NAME} failure" fi rm -rf ${SRC_NAME} tar -xzf ${SRC_NAME}.${PACK_SUFIX} check_result "ERROR: decompress ${SRC_NAME} failure" cd ${SRC_NAME} ./configure sed -i -e 's|^FILTER=y.*|#FILTER=y|' pppd/Makefile make && make install INSTROOT=${PREFIX_PATH} check_result "ERROR: compile ${SRC_NAME} failure" cd - } compile_pppd