Skip to content

Commit

Permalink
add mageia
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Aug 31, 2023
1 parent 3514ac8 commit 5819513
Show file tree
Hide file tree
Showing 16 changed files with 179 additions and 92 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/dorothy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ jobs:
- 'fedora:latest' # https://hub.docker.com/_/fedora
- 'debian:latest' # https://hub.docker.com/_/debian
- 'alpine:latest' # https://hub.docker.com/_/alpine <-- script -qec workaround for TTY does not work on alpine
- 'manjarolinux/base' # https://hub.docker.com/r/manjarolinux/base#
- 'manjarolinux/base' # https://hub.docker.com/r/manjarolinux/base
- 'opensuse/leap' # https://hub.docker.com/r/opensuse/leap <-- has outdated bash, so is good to test
- 'opensuse/tumbleweed' # https://hub.docker.com/r/opensuse/tumbleweed
- 'kalilinux/kali-rolling' # https://hub.docker.com/r/kalilinux/kali-rolling <-- apt based
- 'voidlinux/voidlinux' # https://hub.docker.com/r/voidlinux/voidlinux <-- locale failure
- 'mageia:latest' # https://hub.docker.com/_/mageia
# - 'nixos/nix' # https://hub.docker.com/r/nixos/nix <-- doesn't make bash available to env, also locale failure
# - 'gentoo/stage3' # https://hub.docker.com/r/gentoo/stage3 <-- couldn't get to work due to home misconfigure error
container:
Expand Down Expand Up @@ -129,6 +130,9 @@ jobs:
elif command -v emerge; then
# for gentoo
emerge app-shells/bash net-misc/curl sys-apps/util-linux moreutils
elif command -v urpmi; then
# for mageia
urpmi bash curl util-linux moreutils
fi
- name: 'Dorothy Remote Tests'
# shell: 'script -q -e -c "bash {0}"'
Expand Down
2 changes: 1 addition & 1 deletion commands/setup-util-aria2
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function setup_util_aria2() (
APT='aria2' # UBUNTU
AUR='aria2' # ARCH
BREW='aria2'
DNF='aria2' # FEDORA
RPM='aria2' # FEDORA
URPMI='aria2' # MAGEIA
NIX='aria2'
XBPS='aria2' # VOID
Expand Down
4 changes: 2 additions & 2 deletions commands/setup-util-bash
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function setup_util_bash() (
APT='bash-completion' # UBUNTU
AUR='bash-completion' # ARCH
BREW='bash-completion'
RPM='bash-completion' # FEDORA
ZYPPER='bash-completion'
RPM='bash-completion' # FEDORA
ZYPPER='bash-completion' # SUSE
)
setup_util "${options[@]}"

Expand Down
5 changes: 3 additions & 2 deletions commands/setup-util-curl
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ function setup_util_curl() (
BREW='curl'
EMERGE='net-misc/curl' # GENTOO
NIX='nixpkgs.curl'
RPM='curl' # FEDORA
XBPS='curl' # VOID
RPM='curl' # FEDORA
URPMI='curl' # MAGEIA
WINGET='cURL'
XBPS='curl' # VOID
ZYPPER='curl' # SUSE
)
setup-util "${options[@]}"
Expand Down
4 changes: 2 additions & 2 deletions commands/setup-util-delta
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function setup_util_delta() (
PORT='git-delta'
RPM='git-delta' # FEDORA
SCOOP='delta'
XBPS='delta' # VOID
ZYPPER='git-delta'
XBPS='delta' # VOID
ZYPPER='git-delta' # SUSE
)
function get_github_asset_url {
github-download \
Expand Down
184 changes: 128 additions & 56 deletions commands/setup-util-devel
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,34 @@
function setup_util_devel() (
source "$DOROTHY/sources/bash.bash"

local options

if is-apt; then
setup-util --optional --name='APT Essentials' "$@" \
options=(
--optional
--name='APT Essentials'
"$@"
APT='apt-transport-https' APT='ca-certificates' # UBUNTU
)
setup-util "${options[@]}"
fi
if is-apk; then
setup-util --optional --name='APK Essentials' "$@" \
options=(
--optional
--name='APK Essentials'
"$@"
APK='ca-certificates' # ALPINE
)
setup-util "${options[@]}"
fi
if is-dnf; then
setup-util --optional --name='DNF Essentials' "$@" \
options=(
--optional
--name='DNF Essentials'
"$@"
DNF='dnf-plugins-core' # FEDORA
)
setup-util "${options[@]}"
fi

# essentials
Expand All @@ -25,52 +42,85 @@ function setup_util_devel() (
# https://stackoverflow.com/a/58680740/130638
# xcode is macos's equivalent
# https://packages.debian.org/sid/amd64/build-essential/filelist (no bins...)
setup-util --optional --name='Build Essentials' "$@" \
APK='build-base' \
APT='build-essential' \
AUR='base-devel' \
DNF_GROUP='Development Tools' \
DNF_GROUP='Development Libraries' \
RPM='make' RPM='automake' RPM='gcc' RPM='gcc-c++' RPM='kernel-devel' \
VOID='base-devel' \
ZYPPER='devel_basis' ZYPPER_TYPE='pattern'
# https://repology.org/project/build-base/versions
# https://repology.org/project/base-devel/versions
# https://madb.mageia.org/package/show/application/0/name/task-c-devel
options=(
--optional
--name='Build Essentials'
"$@"
APK='build-base' # ALPINE
APT='build-essential' # UBUNTU
AUR='base-devel' # ARCH
DNF_GROUP='Development Libraries'
DNF_GROUP='Development Tools'
DNF='make' DNF='automake' DNF='gcc' DNF='gcc-c++' DNF='kernel-devel' # FEDORA
URPMI='task-c-devel' # MAGEIA
XBPS='base-devel' # VOID
ZYPPER='devel_basis' ZYPPER_TYPE='pattern' # SUSE
)
setup-util "${options[@]}"

# https://apple.stackexchange.com/a/362837
# https://packages.debian.org/sid/amd64/clang/filelist
# /usr/bin/asan_symbolize
# /usr/bin/clang
# /usr/bin/clang++
setup-util --optional --cli='clang' "$@" \
APK='clang' \
APT='clang' \
AUR='clang' \
BREW='llvm' \
RPM='clang' \
VOID='clang' \
# https://repology.org/project/llvm/versions
options=(
--optional
--cli='clang'
"$@"
APK='clang' # ALPINE
APT='clang' # UBUNTU
AUR='clang' # ARCH
BREW='llvm'
RPM='clang' # FEDORA
URPMI='clang' # MAGEIA
XBPS='clang' # VOID
ZYPPER='clang' # SUSE
)
setup-util "${options[@]}"

# https://packages.debian.org/sid/amd64/make/filelist
# /usr/bin/gmake
# /usr/bin/make
# /usr/bin/make-first-existing-target
setup-util --optional --cli='make' "$@" \
APK='make' \
APT='make' \
VOID='make' \
ZYPPER='make' # SUSE
# https://repology.org/project/make/versions
options=(
--optional
--cli='make'
"$@"
APK='make' # ALPINE
APT='make' # UBUNTU
AUR='make' # ARCH
EMERGE='sys-devel/make' # GENTOO
URPMI='make' # MAGEIA
XBPS='make' # VOID
ZYPPER='make' # SUSE
)
setup-util "${options[@]}"

# https://packages.debian.org/sid/amd64/cmake/filelist
# /usr/bin/cmake
# /usr/bin/cpack
# /usr/bin/ctest
setup-util --optional --cli='cmake' "$@" \
APK='cmake' \
APT='cmake' \
AUR='cmake' \
BREW='cmake' \
RPM='cmake' \
VOID='cmake' \
ZYPPER='cmake' # SUSE
# https://repology.org/project/cmake/versions
options=(
--optional
--cli='cmake'
"$@"
APK='cmake' # ALPINE
APT='cmake' # UBUNTU
AUR='cmake' # ARCH
BREW='cmake'
EMERGE='dev-util/cmake' # GENTOO
RPM='cmake' # FEDORA
URPMI='cmake' # MAGEIA
XBPS='cmake' # VOID
ZYPPER='cmake' # SUSE
)
setup-util "${options[@]}"

# https://packages.debian.org/sid/amd64/llvm/filelist
# /usr/bin/bugpoint
Expand Down Expand Up @@ -130,34 +180,56 @@ function setup_util_devel() (
# /usr/bin/sanstats
# /usr/bin/verify-uselistorder
# /usr/bin/yaml2obj
setup-util --optional --cli='llc' "$@" \
APK='llvm' \
APT='llvm' \
AUR='llvm' \
BREW='llvm' \
RPM='llvm' \
VOID='llvm' \
ZYPPER='llvm' # SUSE
# https://repology.org/project/llvm/versions
options=(
--optional
--cli='llvm'
"$@"
APK='llvm' # ALPINE
APT='llvm' # UBUNTU
AUR='llvm' # ARCH
BREW='llvm'
EMERGE='sys-devel/llvm' # GENTOO
RPM='llvm' # FEDORA
URPMI='llvm' # MAGEIA
XBPS='llvm' # VOID
ZYPPER='llvm' # SUSE
)
setup-util "${options[@]}"

# no apk
# no apk, no mageia, gentoo
# https://packages.debian.org/sid/amd64/pkg-config/filelist (no bins...)
setup-util --optional --cli='pkg-config' "$@" \
APT='pkg-config' \
AUR='pkg-config' \
BREW='pkg-config' \
RPM='pkg-config' \
VOID='pkg-config' \
ZYPPER='pkg-config'
# https://repology.org/project/pkg-config/versions
options=(
--optional
--cli='pkg-config'
"$@"
APT='pkg-config' # UBUNTU
AUR='pkg-config' # ARCH
BREW='pkg-config'
RPM='pkg-config' # FEDORA
XBPS='pkg-config' # VOID
ZYPPER='pkg-config' # SUSE
)
setup-util "${options[@]}"

# https://packages.debian.org/sid/amd64/libssl-dev/filelist (no bins...)
setup-util --optional --name='openssl/libssl' "$@" \
APK='openssl' \
APT='libssl-dev' \
AUR='openssl' \
BREW='openssl' \
RPM='openssl-devel' \
VOID='openssl' \
ZYPPER='openssl' # SUSE
# https://repology.org/project/openssl/versions
options=(
--optional
--name='openssl/libssl'
"$@"
APK='openssl' # ALPINE
APT='libssl-dev' # UBUNTU
AUR='openssl' # ARCH
BREW='openssl'
EMERGE='dev-libs/openssl' # GENTOO
RPM='openssl-devel' # FEDORA
URPM='openssl' # MAGEIA
XBPS='openssl' # VOID
ZYPPER='openssl' # SUSE
)
setup-util "${options[@]}"
)

# fire if invoked standalone
Expand Down
6 changes: 3 additions & 3 deletions commands/setup-util-devices
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function setup_util_devices() (
"$@"
APK='sg3_utils' # ALPINE
AUR='sg3_utils' # ARCH
DNF='sg3_utils' # FEDORA
RPM='sg3_utils' # FEDORA
ZYPPER='sg3_utils' # SUSE
APT='sg3-utils' # UBUNTU
)
Expand Down Expand Up @@ -131,7 +131,7 @@ function setup_util_devices() (
"$@"
APK='hdparm' # ALPINE
AUR='hdparm' # ARCH
DNF='hdparm' # FEDORA
RPM='hdparm' # FEDORA
ZYPPER='hdparm' # SUSE
APT='hdparm' # UBUNTU
)
Expand All @@ -146,7 +146,7 @@ function setup_util_devices() (
"$@"
APK='lshw' # ALPINE
AUR='lshw' # ARCH
DNF='lshw' # FEDORA
RPM='lshw' # FEDORA
ZYPPER='lshw' # SUSE
APT='lshw' # UBUNTU
)
Expand Down
8 changes: 4 additions & 4 deletions commands/setup-util-dig
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ function setup_util_dig() (
local options=(
--cli=dig
"$@"
APT='dnsutils' # UBUNTU
AUR='dnsutils' # ARCH
RPM='bind-utils' # FEDORA
ZYPPER='bind-utils'
APT='dnsutils' # UBUNTU
AUR='dnsutils' # ARCH
RPM='bind-utils' # FEDORA
ZYPPER='bind-utils' # SUSE
)
setup-util "${options[@]}"
)
Expand Down
8 changes: 4 additions & 4 deletions commands/setup-util-git
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ function setup_util_git() (
BSD='git'
EMERGE='dev-vcs/git' # GENTOO
NIX='nixpkgs.git'
RPM='git' # FEDORA
URPMI='git' # MAGEIA
XBPS='git' # VOID
ZYPPER='git-core'
RPM='git' # FEDORA
URPMI='git' # MAGEIA
XBPS='git' # VOID
ZYPPER='git-core' # SUSE
)
setup-util "${options[@]}"

Expand Down
2 changes: 1 addition & 1 deletion commands/setup-util-glab
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function setup_util_glab() (
BREW='glab'
CHOCO='glab'
DOWNLOAD='https://j.mp/glab-cli'
DNF='glab' # FEDORA
RPM='glab' # FEDORA
NIX='nixos.glab'
PORT='glab'
SCOOP='glab'
Expand Down
3 changes: 2 additions & 1 deletion commands/setup-util-jq
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ function setup_util_jq() (
PORT='jq'
RPM='jq' # FEDORA
TEA='+stedolan.github.io/jq'
XBPS='jq' # VOID
URPMI='jq' # MAGEIA
WINGET='jq'
XBPS='jq' # VOID
ZYPPER='jq' # SUSE
)
function get_github_asset_url {
Expand Down
1 change: 1 addition & 0 deletions commands/setup-util-moreutils
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function setup_util_moreutils() (
AUR='moreutils' # ARCH
BREW='moreutils'
RPM='moreutils' # FEDORA
URPMI='moreutils' # MAGEIA
XBPS='moreutils' # VOID
ZYPPER='moreutils' # SUSE
)
Expand Down
6 changes: 3 additions & 3 deletions commands/setup-util-python
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function setup_util_python() (
--optional
--name='python3-venv'
"$@"
APT='python3-venv' # UBUNTU
AUR='python-virtualenv' # ARCH
ZYPPER='python3-virtualenv'
APT='python3-venv' # UBUNTU
AUR='python-virtualenv' # ARCH
ZYPPER='python3-virtualenv' # SUSE
)
setup-util "${options[@]}"
fi
Expand Down
Loading

0 comments on commit 5819513

Please sign in to comment.