Browse Source

Add patchelf functionality

pull/54/head
WXbet 5 years ago
parent
commit
22fca1de88
  1. 7
      support/functions/_cmd_build
  2. 10
      support/functions/_gui_build
  3. 2
      support/functions/_sys_check

7
support/functions/_cmd_build

@ -234,6 +234,13 @@ fi
#show build time #show build time
printf "$g_n""\n TIME -------> $bt$re_\n\n" printf "$g_n""\n TIME -------> $bt$re_\n\n"
#patchelf
if [ -n "$_patchelf" ]
then
printf "$w_l"" ENABLE -----> PATCHELF:$y_l $_patchelf...\n"
eval "patchelf "$_patchelf" "$bdir/$oscam_name""
fi;
#compress cam #compress cam
if [ "${s3cfg_vars[COMPRESS]}" == "1" ] if [ "${s3cfg_vars[COMPRESS]}" == "1" ]
then then

10
support/functions/_gui_build

@ -126,9 +126,17 @@ _gui_build(){
then then
rm "$bdir/$oscam_name.debug" rm "$bdir/$oscam_name.debug"
printf "\n $txt_delete $oscam_name.debug\n"|tee -a "$ldir/$log_name" printf "\n $txt_delete $oscam_name.debug\n"|tee -a "$ldir/$log_name"
fi;) | "$gui" "$st_" --colors --title " -[ Build ]- " "$pb_" "$_lines" "$_cols" fi;
sleep 2 sleep 2
#patchelf
if [ -n "$_patchelf" ]
then
printf "\n patchelf $_patchelf\n"|tee -a "$ldir/$log_name"
eval "patchelf "$_patchelf" "$bdir/$oscam_name""
fi;) | "$gui" "$st_" --colors --title " -[ Build ]- " "$pb_" "$_lines" "$_cols"
sleep 1
#COMPRESS #COMPRESS
if [ ! "$stapi_allowed" == "1" ] if [ ! "$stapi_allowed" == "1" ]
then then

2
support/functions/_sys_check

@ -131,7 +131,7 @@ then
fi fi
unset binvars; unset headervars; unset libvars; unset binvars; unset headervars; unset libvars;
[ -z ${3+x} ] && binvars=( dialog grep gawk wget tar bzip2 svn xz upx patch gcc make scp sshpass openssl dos2unix ) || binvars=( $(echo "$3" | tr ' ' '\n') ) [ -z ${3+x} ] && binvars=( dialog grep gawk wget tar bzip2 svn xz upx patch gcc make scp sshpass openssl dos2unix patchelf) || binvars=( $(echo "$3" | tr ' ' '\n') )
[ -z ${4+x} ] && headervars=( crypto.h libusb.h pcsclite.h pthread.h ) || headervars=( $(echo "$4" | tr ' ' '\n') ) [ -z ${4+x} ] && headervars=( crypto.h libusb.h pcsclite.h pthread.h ) || headervars=( $(echo "$4" | tr ' ' '\n') )
[ -z ${5+x} ] && libvars=( libccidtwin.so ) || libvars=( $(echo "$5" | tr ' ' '\n') ) [ -z ${5+x} ] && libvars=( libccidtwin.so ) || libvars=( $(echo "$5" | tr ' ' '\n') )
sanity=1 sanity=1

Loading…
Cancel
Save