Add CentOS files

This commit is contained in:
Ximi1970
2020-11-25 23:25:43 +01:00
parent 040b49891f
commit a7bd375433
16 changed files with 488 additions and 0 deletions

View File

@@ -291,6 +291,59 @@ sudo pacman -S systray-x-minimal
```
### CentOS
#### Repository
Installing the repository:
###### 8 Stream
```bash
yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/CentOS_8_Stream/home:Ximi1970:Mozilla:Add-ons.repo
sudo yum update
```
###### 8
```bash
yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/CentOS_8/home:Ximi1970:Mozilla:Add-ons.repo
sudo yum update
```
###### 7
```bash
yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/CentOS_7/home:Ximi1970:Mozilla:Add-ons.repo
sudo yum update
```
#### Package
Installing the SysTray-X addon and companion app package:
###### KDE
```bash
sudo yum install systray-x-minimal
```
or
```bash
sudo yum install epel-release
sudo yum install systray-x
```
###### GNOME
```bash
sudo yum install systray-x-gnome
sudo yum install gnome-tweaks
```
Please use `Tweaks` to activate the gnome shell extension `Kstatusnotifieritem/appindicator support` or reboot the system.
## Binaries (User)
User installable package.

View File

@@ -46,6 +46,15 @@ OBS_RPM_GNOME_EXT+="master "
OBS_RPM_ARCHS+="Fedora_33/x86_64 "
OBS_RPM_PKS+="fed33 "
OBS_RPM_GNOME_EXT+="master "
OBS_RPM_ARCHS+="CentOS_7/x86_64 "
OBS_RPM_PKS+="el7 "
OBS_RPM_GNOME_EXT+="v26 "
OBS_RPM_ARCHS+="CentOS_8/x86_64 "
OBS_RPM_PKS+="el8 "
OBS_RPM_GNOME_EXT+="master "
OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 "
OBS_RPM_PKS+="el8s "
OBS_RPM_GNOME_EXT+="master "
OBS_DEB_ARCHS=""

View File

@@ -33,6 +33,12 @@ OBS_RPM_ARCHS+="Fedora_32/x86_64 "
OBS_RPM_PKS+="fed32 "
OBS_RPM_ARCHS+="Fedora_33/x86_64 "
OBS_RPM_PKS+="fed33 "
OBS_RPM_ARCHS+="CentOS_7/x86_64 "
OBS_RPM_PKS+="el7 "
OBS_RPM_ARCHS+="CentOS_8/x86_64 "
OBS_RPM_PKS+="el8 "
OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 "
OBS_RPM_PKS+="el8s "
OBS_DEB_ARCHS=""

View File

@@ -33,6 +33,12 @@ OBS_RPM_ARCHS+="Fedora_32/x86_64 "
OBS_RPM_PKS+="fed32 "
OBS_RPM_ARCHS+="Fedora_33/x86_64 "
OBS_RPM_PKS+="fed33 "
OBS_RPM_ARCHS+="CentOS_7/x86_64 "
OBS_RPM_PKS+="el7 "
OBS_RPM_ARCHS+="CentOS_8/x86_64 "
OBS_RPM_PKS+="el8 "
OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 "
OBS_RPM_PKS+="el8s "
OBS_DEB_ARCHS=""

View File

@@ -46,6 +46,15 @@ OBS_RPM_GNOME_EXT+="master "
OBS_RPM_ARCHS+="Fedora_33/x86_64 "
OBS_RPM_PKS+="fed33 "
OBS_RPM_GNOME_EXT+="master "
OBS_RPM_ARCHS+="CentOS_7/x86_64 "
OBS_RPM_PKS+="el7 "
OBS_RPM_GNOME_EXT+="v26 "
OBS_RPM_ARCHS+="CentOS_8/x86_64 "
OBS_RPM_PKS+="el8 "
OBS_RPM_GNOME_EXT+="master "
OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 "
OBS_RPM_PKS+="el8s "
OBS_RPM_GNOME_EXT+="master "
OBS_DEB_ARCHS=""

View File

@@ -33,6 +33,12 @@ OBS_RPM_ARCHS+="Fedora_32/x86_64 "
OBS_RPM_PKS+="fed32 "
OBS_RPM_ARCHS+="Fedora_33/x86_64 "
OBS_RPM_PKS+="fed33 "
OBS_RPM_ARCHS+="CentOS_7/x86_64 "
OBS_RPM_PKS+="el7 "
OBS_RPM_ARCHS+="CentOS_8/x86_64 "
OBS_RPM_PKS+="el8 "
OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 "
OBS_RPM_PKS+="el8s "
OBS_DEB_ARCHS=""

View File

@@ -33,6 +33,12 @@ OBS_RPM_ARCHS+="Fedora_32/x86_64 "
OBS_RPM_PKS+="fed32 "
OBS_RPM_ARCHS+="Fedora_33/x86_64 "
OBS_RPM_PKS+="fed33 "
OBS_RPM_ARCHS+="CentOS_7/x86_64 "
OBS_RPM_PKS+="el7 "
OBS_RPM_ARCHS+="CentOS_8/x86_64 "
OBS_RPM_PKS+="el8 "
OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 "
OBS_RPM_PKS+="el8s "
OBS_DEB_ARCHS=""

59
dist/install.CentOS_7-Gnome.sh vendored Normal file
View File

@@ -0,0 +1,59 @@
enableGnomeExtension() {
EXTENSION="appindicatorsupport@rgcjonas.gmail.com"
PACKAGE="gnome-shell-extension-appindicator"
ENABLE_CMD="/usr/bin/gnome-extensions"
ENABLE_CMD_OPTIONS="enable ${EXTENSION}"
#
# Is the extension installed?
#
if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then
if [ -x $ENABLE_CMD ] ; then
$ENABLE_CMD $ENABLE_CMD_OPTIONS
fi
else
mkdir -p ~/.local/share/gnome-shell/extensions
tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz
if [ -x $ENABLE_CMD ] ; then
$ENABLE_CMD $ENABLE_CMD_OPTIONS
fi
fi
echo
echo "Please logout and login to activate the gnome shell extension"
echo
}
#
# Enable the gnome shell extension for the local user
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
enableGnomeExtension
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "sudo yum install qt5-qtbase-gui"
echo
fi
else
#
# Check for KDE
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
echo
echo "Please use the __KDE_INSTALLER__ installer."
echo "This setup will not work."
echo
else
echo
echo "Please use the __MINIMAL_INSTALLER__ installer."
echo "This setup will not work."
echo
fi
fi

41
dist/install.CentOS_7-Kde.sh vendored Normal file
View File

@@ -0,0 +1,41 @@
##
# Check for Kde
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "sudo yum install qt5-qtbase-gui"
echo
fi
yum list installed "kf5*" | grep -q kf5-knotifications
if [ "$?" == "1" ] ; then
echo
echo "Please install the package kf5-knotifications from the EPEL repo"
echo
echo "sudo yum install epel-release"
echo "sudo yum install kf5-knotifications"
echo
fi
else
#
# Check for Gnome
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
echo
echo "Please use the __GNOME_INSTALLER__ installer."
echo "This setup will not work."
echo
else
echo
echo "Please use the __MINIMAL_INSTALLER__ installer."
echo "This setup will not work."
echo
fi
fi

31
dist/install.CentOS_7.sh vendored Normal file
View File

@@ -0,0 +1,31 @@
#
# Check for Gnome
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
echo
echo "Please use the __GNOME_INSTALLER__ installer."
echo "This setup will not work."
echo
else
#
# Check for KDE
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
echo
echo "Please use the __KDE_INSTALLER__ installer."
echo "This setup will not work."
echo
else
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "yum install qt5-qtbase-gui"
echo
fi
fi
fi

59
dist/install.CentOS_8-Gnome.sh vendored Normal file
View File

@@ -0,0 +1,59 @@
enableGnomeExtension() {
EXTENSION="appindicatorsupport@rgcjonas.gmail.com"
PACKAGE="gnome-shell-extension-appindicator"
ENABLE_CMD="/usr/bin/gnome-extensions"
ENABLE_CMD_OPTIONS="enable ${EXTENSION}"
#
# Is the extension installed?
#
if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then
if [ -x $ENABLE_CMD ] ; then
$ENABLE_CMD $ENABLE_CMD_OPTIONS
fi
else
mkdir -p ~/.local/share/gnome-shell/extensions
tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz
if [ -x $ENABLE_CMD ] ; then
$ENABLE_CMD $ENABLE_CMD_OPTIONS
fi
fi
echo
echo "Please logout and login to activate the gnome shell extension"
echo
}
#
# Enable the gnome shell extension for the local user
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
enableGnomeExtension
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "sudo yum install qt5-qtbase-gui"
echo
fi
else
#
# Check for KDE
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
echo
echo "Please use the __KDE_INSTALLER__ installer."
echo "This setup will not work."
echo
else
echo
echo "Please use the __MINIMAL_INSTALLER__ installer."
echo "This setup will not work."
echo
fi
fi

41
dist/install.CentOS_8-Kde.sh vendored Normal file
View File

@@ -0,0 +1,41 @@
##
# Check for Kde
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "sudo yum install qt5-qtbase-gui"
echo
fi
yum list installed "kf5*" | grep -q kf5-knotifications
if [ "$?" == "1" ] ; then
echo
echo "Please install the package kf5-knotifications from the EPEL repo"
echo
echo "sudo yum install epel-release"
echo "sudo yum install kf5-knotifications"
echo
fi
else
#
# Check for Gnome
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
echo
echo "Please use the __GNOME_INSTALLER__ installer."
echo "This setup will not work."
echo
else
echo
echo "Please use the __MINIMAL_INSTALLER__ installer."
echo "This setup will not work."
echo
fi
fi

31
dist/install.CentOS_8.sh vendored Normal file
View File

@@ -0,0 +1,31 @@
#
# Check for Gnome
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
echo
echo "Please use the __GNOME_INSTALLER__ installer."
echo "This setup will not work."
echo
else
#
# Check for KDE
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
echo
echo "Please use the __KDE_INSTALLER__ installer."
echo "This setup will not work."
echo
else
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "sudo yum install qt5-qtbase-gui"
echo
fi
fi
fi

59
dist/install.CentOS_8_Stream-Gnome.sh vendored Normal file
View File

@@ -0,0 +1,59 @@
enableGnomeExtension() {
EXTENSION="appindicatorsupport@rgcjonas.gmail.com"
PACKAGE="gnome-shell-extension-appindicator"
ENABLE_CMD="/usr/bin/gnome-extensions"
ENABLE_CMD_OPTIONS="enable ${EXTENSION}"
#
# Is the extension installed?
#
if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then
if [ -x $ENABLE_CMD ] ; then
$ENABLE_CMD $ENABLE_CMD_OPTIONS
fi
else
mkdir -p ~/.local/share/gnome-shell/extensions
tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz
if [ -x $ENABLE_CMD ] ; then
$ENABLE_CMD $ENABLE_CMD_OPTIONS
fi
fi
echo
echo "Please logout and login to activate the gnome shell extension"
echo
}
#
# Enable the gnome shell extension for the local user
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
enableGnomeExtension
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "yum install qt5-qtbase-gui"
echo
fi
else
#
# Check for KDE
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
echo
echo "Please use the __KDE_INSTALLER__ installer."
echo "This setup will not work."
echo
else
echo
echo "Please use the __MINIMAL_INSTALLER__ installer."
echo "This setup will not work."
echo
fi
fi

41
dist/install.CentOS_8_Stream-Kde.sh vendored Normal file
View File

@@ -0,0 +1,41 @@
##
# Check for Kde
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "sudo dnf install qt5-qtbase-gui"
echo
fi
yum list installed "kf5*" | grep -q kf5-knotifications
if [ "$?" == "1" ] ; then
echo
echo "Please install the package kf5-knotifications from the EPEL repo"
echo
echo "sudo yum install epel-release"
echo "sudo yum install kf5-knotifications"
echo
fi
else
#
# Check for Gnome
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
echo
echo "Please use the __GNOME_INSTALLER__ installer."
echo "This setup will not work."
echo
else
echo
echo "Please use the __MINIMAL_INSTALLER__ installer."
echo "This setup will not work."
echo
fi
fi

31
dist/install.CentOS_8_Stream.sh vendored Normal file
View File

@@ -0,0 +1,31 @@
#
# Check for Gnome
#
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then
echo
echo "Please use the __GNOME_INSTALLER__ installer."
echo "This setup will not work."
echo
else
#
# Check for KDE
#
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then
echo
echo "Please use the __KDE_INSTALLER__ installer."
echo "This setup will not work."
echo
else
#
# Check for Qt
#
yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui
if [ "$?" == "1" ] ; then
echo
echo "Please install the package qt5-qtbase-gui"
echo
echo "sudo yum install qt5-qtbase-gui"
echo
fi
fi
fi