From 1df85daf8f1b4426fe09d489d815997cdf989a87 Mon Sep 17 00:00:00 2001 From: donjuanplatinum <113148619+donjuanplatinum@users.noreply.github.com> Date: Sun, 12 May 2024 22:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=94=AF=E6=8C=81gentoo?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=9A=84=E4=B8=80=E9=94=AE=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=20(#809)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/bootstrap.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/bootstrap.sh b/tools/bootstrap.sh index 02555cae..4d99dfd5 100644 --- a/tools/bootstrap.sh +++ b/tools/bootstrap.sh @@ -94,6 +94,20 @@ install_ubuntu_debian_pkg() } + +#################################### +# 当检测到gentoo时,执行此函数 # +#################################### +gentoo() +{ + pkgman="emerge" + echo "检测到Gentoo发行版" + echo "正在更新包管理器的列表..." + sudo "${pkgman}" --sync + echo "正在安装所需的包..." + sudo "${pkgman}" net-misc/curl net-misc/wget net-misc/bridge-utils net-dns/dnsmasq sys-apps/diffutils dev-util/pkgconf sys-apps/which app-arch/unzip sys-apps/util-linux sys-fs/dosfstools sys-devel/gcc dev-build/make sys-devel/flex sys-apps/texinfo dev-libs/gmp dev-libs/mpfr app-emulation/qemu dev-libs/mpc dev-libs/openssl +} + install_archlinux_pkg() { pkgman="pacman"