Browse Source

remove old upx handling

pull/19/head
gorgone 5 years ago
parent
commit
f1d21051f1
No known key found for this signature in database GPG Key ID: EBAAD350739A27E7
  1. 24
      support/os/debian_ubuntu.install
  2. 24
      support/os/manjaro.install
  3. 22
      support/os/redhat_centos_fedora.install
  4. 21
      support/os/suse.install

24
support/os/debian_ubuntu.install

@ -93,30 +93,6 @@ if [ ${#packages} -gt 0 ]; then
fi;
fi;
#if hash upx 2>/dev/null; then
# upxversion=($(upx -V | awk 'NR==1 { verok=$2>=3.91; printf "%.2f %i", $2, verok }'));
# if [ ${upxversion[1]} == 0 ]; then
# [ -f "$bindir/upx" ] && rm -f "$bindir/upx" &>/dev/null;
# if [ "$(uname -m)" == "x86_64" ]; then
# upxarch="upx-3.95-amd64_linux";
# else
# upxarch="upx-3.95-i386_linux";
# fi
# upxarchive=$upxarch".tar.bz2";
# [ -f "$dldir/$upxarchive" ] && rm -f "$dldir/$upxarchive" &>/dev/null;
# upxurl="http://upx.sourceforge.net/download/$upxarchive";
# echo -e "$w_l get newer$g_l upx$y_l\tfrom: $upxurl";
# echo "+++ $(date): wget $upxurl" >> "$install_log";
# if wget --directory-prefix="$dldir" --append-output="$install_log" $upxurl; then
# echo "+++ $(date): tar xjvf $upxarchive" >> "$install_log";
# tar xjvf "$dldir"/$upxarchive --directory="$bindir" $upxarch/upx --strip-components=1 >> "$install_log" 2>&1 || failed=1;
# [ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null;
# else
# failed=1;
# fi
# fi
#fi
[ $failed == 1 ] && echo -e "\n$r_l Installation with errors - see: $install_log";
return $failed;

24
support/os/manjaro.install

@ -96,30 +96,6 @@ if [ ${#packages} -gt 0 ]; then
fi
fi
#if hash upx 2>/dev/null; then
# upxversion=($(upx -V | awk 'NR==1 { verok=$2>=3.91; printf "%.2f %i", $2, verok }'));
# if [ ${upxversion[1]} == 0 ]; then
# [ -f "$bindir/upx" ] && rm -f "$bindir/upx" &>/dev/null;
# if [ "$(uname -m)" == "x86_64" ]; then
# upxarch="upx-3.95-amd64_linux";
# else
# upxarch="upx-3.95-i386_linux";
# fi
# upxarchive=$upxarch".tar.bz2";
# [ -f "$dldir/$upxarchive" ] && rm -f "$dldir/$upxarchive" &>/dev/null;
# upxurl="http://upx.sourceforge.net/download/$upxarchive";
# echo -e "$w_l get newer$g_l upx$y_l\tfrom: $upxurl";
# echo "+++ $(date): wget $upxurl" >> "$install_log";
# if wget --directory-prefix="$dldir" --append-output="$install_log" $upxurl; then
# echo "+++ $(date): tar xjvf $upxarchive" >> "$install_log";
# tar xjvf "$dldir"/$upxarchive --directory="$bindir" $upxarch/upx --strip-components=1 >> "$install_log" 2>&1 || failed=1;
# [ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null;
# else
# failed=1;
# fi
# fi
#fi
[ $failed == 1 ] && echo -e "\n$r_l Installation with errors - see: $install_log";
return $failed;

22
support/os/redhat_centos_fedora.install

@ -154,28 +154,6 @@ if ! hash sshpass 2>/dev/null; then
$prefix rpm -i $sshpass_src >> "$install_log" 2>&1 || failed=1;
fi
#if ! hash upx 2>/dev/null; then
# [ -f "$bindir"/upx ] && rm -f "$bindir"/upx &>/dev/null;
# if [ "$(uname -m)" == "x86_64" ]; then
# upxarch="upx-3.95-amd64_linux";
# else
# upxarch="upx-3.95-i386_linux";
# fi
# upxarchive=$upxarch".tar.bz2";
# [ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null;
# upxurl="http://upx.sourceforge.net/download/$upxarchive";
# echo -e "$w_l get$g_l upx$y_l\tfrom: $upxurl";
# echo "+++ $(date): wget $upxurl" >> "$install_log";
# if wget --directory-prefix="$dldir" --append-output="$install_log" $upxurl; then
# echo "+++ $(date): tar xjvf $upxarchive" >> "$install_log";
# tar xjvf "$dldir"/$upxarchive --directory="$bindir" $upxarch/upx --strip-components=1 >> "$install_log" 2>&1 || failed=1;
# [ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null;
# else
# failed=1;
# fi
#fi
[ $failed == 1 ] && echo -e "\n$r_l Installation with errors - see: $install_log";
return $failed;

21
support/os/suse.install

@ -126,27 +126,6 @@ if ! hash sshpass 2>/dev/null; then
fi
upxversion=(0 0);
#hash upx 2>/dev/null && upxversion=($(upx -V | awk 'NR==1 { verok=$2>=3.91; printf "%.2f %i", $2, verok }'));
#if [ ${upxversion[1]} == 0 ]; then
# [ -f "$bindir"/upx ] && rm -f "$bindir"/upx &>/dev/null;
# if [ "$(uname -m)" == "x86_64" ]; then
# upxarch="upx-3.95-amd64_linux";
# else
# upxarch="upx-3.95-i386_linux";
# fi
# upxarchive=$upxarch".tar.bz2";
# [ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null;
# upxurl="http://upx.sourceforge.net/download/$upxarchive";
# echo -e "$w_l get newer$g_l upx$y_l\tfrom: $upxurl";
# echo "+++ $(date): wget $upxurl" >> "$install_log";
# if wget --directory-prefix="$dldir" --append-output="$install_log" $upxurl; then
# echo "+++ $(date): tar xjvf $upxarchive" >> "$install_log";
# tar xjvf "$dldir"/$upxarchive --directory="$bindir" $upxarch/upx --strip-components=1 >> "$install_log" 2>&1 || failed=1;
# [ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null;
# else
# failed=1;
# fi
#fi
[ $failed == 1 ] && echo -e "\n$r_l Installation with errors - see: $install_log";

Loading…
Cancel
Save