From 6a363aea5e9cd1aa7026024aea44818481f754e2 Mon Sep 17 00:00:00 2001 From: sadddc <75202865+sadddc21@users.noreply.github.com> Date: Mon, 3 Oct 2022 04:22:41 +0000 Subject: [PATCH] Added Gentoo(Portage) support (#216) * added gentoo(portage) support * corrected syntax --- resources/depends.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/depends.sh b/resources/depends.sh index 3c5f4f7..80330a0 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -177,7 +177,12 @@ InstallDepends() { Echo "* Arch Linux repos do not ship python2, which is needed for ipwndfu" Echo "* If you need to use ipwndfu, python2 can be installed from the AUR" sudo pacman -Sy --noconfirm --needed base-devel bsdiff curl libimobiledevice openssh python udev unzip usbmuxd usbutils vim xmlstarlet zenity - + + elif [[ $ID == "gentoo" || $ID_LIKE == "gentoo" || $ID == "pentoo" ]]; then + echo "* Gentoo repos do not ship python2, which is needed for ipwndfu" + echo "* If you need to use ipwndfu, python2 can be installed from the official site" + sudo emerge -av bsdiff net-misc/curl libimobiledevice openssh python udev unzip usbmuxd usbutils vim xmlstarlet zenity python zenity + elif [[ -n $UBUNTU_CODENAME && $VERSION_ID == "2"* ]] || (( DebianVer >= 11 )) || [[ $DebianVer == "sid" ]]; then [[ -n $UBUNTU_CODENAME ]] && sudo add-apt-repository -y universe