From 6d09e40e3369f9c830c745ccdff7ce75623bfafa Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 4 Oct 2023 09:57:51 +0200 Subject: [PATCH 1/3] added gentoo installation into config --- configure.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.sh b/configure.sh index 3e22033..a9853f0 100644 --- a/configure.sh +++ b/configure.sh @@ -31,6 +31,14 @@ if [[ $DISTRO == "Arch" ]]; then COMMAND="pacman -S --needed --noconfirm $COMMON json-c curl libgit2 libyaml" elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then COMMAND="apt install -y $COMMON libjson-c-dev libcurl4-nss-dev libgit2-dev libyaml-dev" +elif [[ $DISTRO == "Gentoo" ]]; then + COMMAND="emerge -vn gcc json-c curl make libgit2 tmux" + + # Add + echo "LDPATH=/usr/lib/libwhy2.so" > /etc/env.d/99why2-core + echo "LDPATH=/usr/lib/libwhy2-logger.so" > /etc/env.d/99why2-logger + echo "LDPATH=/usr/lib/libwhy2-chat.so" > /etc/env.d/99why2-chat + env-update && source /etc/profile else # 'Unsupported' distro echo "It seems you are using unsupported distribution... Don't worry, just install 'gcc', 'json-c', 'curl', 'libgit2', 'tmux', 'libyaml' and 'make' and you'll be fine." From 34f416bace0dbb56d589cfade4edef169d126fdc Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 4 Oct 2023 10:56:15 +0200 Subject: [PATCH 2/3] marked config as executable --- configure.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 configure.sh diff --git a/configure.sh b/configure.sh old mode 100644 new mode 100755 From 586a8ed8008feeab52304799b4d7328cafec279a Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 4 Oct 2023 11:00:16 +0200 Subject: [PATCH 3/3] created ARCH_GENTOO_COMMON variable --- configure.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.sh b/configure.sh index a9853f0..1b24599 100755 --- a/configure.sh +++ b/configure.sh @@ -25,14 +25,15 @@ if [[ $(id -u) != "0" ]] && [[ $1 != "force" ]]; then fi COMMON="gcc make tmux" +ARCH_GENTOO_COMMON="$COMMON json-c curl libgit2" # Get COMMAND if [[ $DISTRO == "Arch" ]]; then - COMMAND="pacman -S --needed --noconfirm $COMMON json-c curl libgit2 libyaml" + COMMAND="pacman -S --needed --noconfirm $ARCH_GENTOO_COMMON libyaml" elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then COMMAND="apt install -y $COMMON libjson-c-dev libcurl4-nss-dev libgit2-dev libyaml-dev" elif [[ $DISTRO == "Gentoo" ]]; then - COMMAND="emerge -vn gcc json-c curl make libgit2 tmux" + COMMAND="emerge -vn $ARCH_GENTOO_COMMON dev-libs/libyaml" # Add echo "LDPATH=/usr/lib/libwhy2.so" > /etc/env.d/99why2-core