Tighten up Mandriva support
This commit is contained in:
@@ -25,7 +25,7 @@ $ installJRMC --help
|
|||||||
--install, -i repo|local
|
--install, -i repo|local
|
||||||
repo: Install MC from repository, future updates will be handled by the system package manager
|
repo: Install MC from repository, future updates will be handled by the system package manager
|
||||||
local: Build and install MC package from official source package
|
local: Build and install MC package from official source package
|
||||||
--build[=suse|fedora|centos]
|
--build[=suse|fedora|centos|mandriva]
|
||||||
Build RPM from source DEB but do not install
|
Build RPM from source DEB but do not install
|
||||||
Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
|
Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
|
||||||
--compat
|
--compat
|
||||||
@@ -48,7 +48,7 @@ $ installJRMC --help
|
|||||||
Starts services at boot (system) or user login (user) (default: per-service, see SERVICES)
|
Starts services at boot (system) or user login (user) (default: per-service, see SERVICES)
|
||||||
--container, -c CONTAINER (TODO: Under construction)
|
--container, -c CONTAINER (TODO: Under construction)
|
||||||
See CONTAINERS section below for a list of containers to deploy
|
See CONTAINERS section below for a list of containers to deploy
|
||||||
--createrepo[=suse|fedora|centos]
|
--createrepo[=suse|fedora|centos|mandriva]
|
||||||
Build rpm, copy to webroot, and run createrepo.
|
Build rpm, copy to webroot, and run createrepo.
|
||||||
Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
|
Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
|
||||||
--createrepo-webroot PATH
|
--createrepo-webroot PATH
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ $ installJRMC --help
|
|||||||
--install, -i repo|local
|
--install, -i repo|local
|
||||||
repo: Install MC from repository, future updates will be handled by the system package manager
|
repo: Install MC from repository, future updates will be handled by the system package manager
|
||||||
local: Build and install MC package locally from official source package
|
local: Build and install MC package locally from official source package
|
||||||
--build[=suse|fedora|centos]
|
--build[=suse|fedora|centos|mandriva]
|
||||||
Build RPM from source DEB but do not install
|
Build RPM from source DEB but do not install
|
||||||
Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
|
Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
|
||||||
--compat
|
--compat
|
||||||
@@ -45,7 +45,7 @@ $ installJRMC --help
|
|||||||
Starts services at boot (system) or user login (user) (default: per-service, see SERVICES)
|
Starts services at boot (system) or user login (user) (default: per-service, see SERVICES)
|
||||||
--container, -c CONTAINER (TODO: Under construction)
|
--container, -c CONTAINER (TODO: Under construction)
|
||||||
See CONTAINERS section below for a list of containers to deploy
|
See CONTAINERS section below for a list of containers to deploy
|
||||||
--createrepo[=suse|fedora|centos]
|
--createrepo[=suse|fedora|centos|mandriva]
|
||||||
Build rpm, copy to webroot, and run createrepo.
|
Build rpm, copy to webroot, and run createrepo.
|
||||||
Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
|
Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
|
||||||
--createrepo-webroot PATH
|
--createrepo-webroot PATH
|
||||||
|
|||||||
19
installJRMC
19
installJRMC
@@ -48,7 +48,7 @@ print_help() {
|
|||||||
--install, -i repo|local
|
--install, -i repo|local
|
||||||
repo: Install MC from repository, updates are handled by the system package manager
|
repo: Install MC from repository, updates are handled by the system package manager
|
||||||
local: Build and install MC locally from official source package
|
local: Build and install MC locally from official source package
|
||||||
--build[=suse|fedora|centos]
|
--build[=suse|fedora|centos|mandriva]
|
||||||
Build RPM from source DEB but do not install
|
Build RPM from source DEB but do not install
|
||||||
Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
|
Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=')
|
||||||
--compat
|
--compat
|
||||||
@@ -71,7 +71,7 @@ print_help() {
|
|||||||
Starts services at boot (system) or at user login (user) (default: per service, see SERVICES)
|
Starts services at boot (system) or at user login (user) (default: per service, see SERVICES)
|
||||||
--container, -c CONTAINER (TODO: Under construction)
|
--container, -c CONTAINER (TODO: Under construction)
|
||||||
See CONTAINERS section below for a list of possible services to install
|
See CONTAINERS section below for a list of possible services to install
|
||||||
--createrepo[=suse|fedora|centos]
|
--createrepo[=suse|fedora|centos|mandriva]
|
||||||
Build rpm, copy to webroot, and run createrepo.
|
Build rpm, copy to webroot, and run createrepo.
|
||||||
Use in conjunction with --build=TARGET for crossbuilding repos
|
Use in conjunction with --build=TARGET for crossbuilding repos
|
||||||
Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
|
Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=')
|
||||||
@@ -462,18 +462,19 @@ install_package() {
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
# Define package aliases based on the distribution
|
# Define distribution-specific package aliases
|
||||||
case $ID in
|
case $ID in
|
||||||
debian|ubuntu)
|
debian|ubuntu) pkg_aliases=(
|
||||||
pkg_aliases=(
|
|
||||||
[rpm-build]="rpm"
|
[rpm-build]="rpm"
|
||||||
[createrepo_c]="createrepo"
|
[createrepo_c]="createrepo"
|
||||||
[tigervnc-server]="tigervnc-standalone-server"
|
[tigervnc-server]="tigervnc-standalone-server"
|
||||||
) ;;
|
) ;;
|
||||||
suse)
|
suse) pkg_aliases=(
|
||||||
pkg_aliases=(
|
|
||||||
[buildah]="buildah fuse-overlayfs"
|
[buildah]="buildah fuse-overlayfs"
|
||||||
) ;;
|
) ;;
|
||||||
|
mandriva) pkg_aliases=(
|
||||||
|
[dpkg]="dpkg gnutar"
|
||||||
|
) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Filter out already installed packages to create pkg_array
|
# Filter out already installed packages to create pkg_array
|
||||||
@@ -567,6 +568,10 @@ install_external_repos() {
|
|||||||
# execute sudo zypper --non-interactive --quiet refresh
|
# execute sudo zypper --non-interactive --quiet refresh
|
||||||
# fi
|
# fi
|
||||||
;;
|
;;
|
||||||
|
mandriva)
|
||||||
|
branch=$(grep ^PRETTY_NAME= /etc/os-release | tr -d '"' | rev | cut -d' ' -f1 | rev | tr '[:upper:]' '[:lower:]')
|
||||||
|
execute sudo dnf config-manager --set-enabled "${branch}-${ARCH}-extra"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user