Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #14. Add *BSD Support #219

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions ou_dedetai/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def get_package_manager():
config.PACKAGE_MANAGER_COMMAND_REMOVE = ["zypper", "--non-interactive", "remove"] # noqa: E501
config.PACKAGE_MANAGER_COMMAND_QUERY = ["zypper", "se", "-si"]
config.QUERY_PREFIX = 'i | '
config.PACKAGES = "fuse patch wget sed grep gawk cabextract 7zip samba curl" # noqa: E501
config.PACKAGES = "fuse wget sed grep gawk cabextract 7zip samba curl" # noqa: E501
config.L9PACKAGES = "" # FIXME: Missing Logos 9 Packages
config.BADPACKAGES = "" # appimagelauncher handled separately
elif shutil.which('pamac') is not None: # manjaro
Expand All @@ -355,7 +355,7 @@ def get_package_manager():
config.PACKAGE_MANAGER_COMMAND_REMOVE = ["pamac", "remove", "--no-confirm"] # noqa: E501
config.PACKAGE_MANAGER_COMMAND_QUERY = ["pamac", "list", "-i"]
config.QUERY_PREFIX = ''
config.PACKAGES = "patch wget sed grep gawk cabextract p7zip samba bc libxml2 curl" # noqa: E501
config.PACKAGES = "wget sed grep gawk cabextract p7zip samba curl" # noqa: E501
config.L9PACKAGES = "" # FIXME: Missing Logos 9 Packages
config.BADPACKAGES = "" # appimagelauncher handled separately
elif shutil.which('pacman') is not None: # arch, steamOS
Expand All @@ -365,9 +365,9 @@ def get_package_manager():
config.PACKAGE_MANAGER_COMMAND_QUERY = ["pacman", "-Q"]
config.QUERY_PREFIX = ''
if config.OS_NAME == "steamos": # steamOS
config.PACKAGES = "patch wget sed grep gawk cabextract samba bc libxml2 curl print-manager system-config-printer cups-filters nss-mdns foomatic-db-engine foomatic-db-ppds foomatic-db-nonfree-ppds ghostscript glibc samba extra-rel/apparmor core-rel/libcurl-gnutls winetricks appmenu-gtk-module lib32-libjpeg-turbo qt5-virtualkeyboard wine-staging giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses ocl-icd lib32-ocl-icd libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader" # noqa: #E501
config.PACKAGES = "wget sed grep gawk cabextract samba curl print-manager system-config-printer cups-filters nss-mdns foomatic-db-engine foomatic-db-ppds foomatic-db-nonfree-ppds ghostscript glibc samba extra-rel/apparmor core-rel/libcurl-gnutls winetricks appmenu-gtk-module lib32-libjpeg-turbo qt5-virtualkeyboard wine-staging giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses ocl-icd lib32-ocl-icd libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader" # noqa: #E501
else: # arch
# config.PACKAGES = "patch wget sed grep cabextract samba glibc samba apparmor libcurl-gnutls winetricks appmenu-gtk-module lib32-libjpeg-turbo wine giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses ocl-icd lib32-ocl-icd libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader" # noqa: E501
# config.PACKAGES = "wget sed grep cabextract samba glibc samba apparmor libcurl-gnutls winetricks appmenu-gtk-module lib32-libjpeg-turbo wine giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses ocl-icd lib32-ocl-icd libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader" # noqa: E501
config.PACKAGES = (
"fuse2 fuse3 " # appimages
"binutils cabextract wget libwbclient " # wine
Expand All @@ -380,6 +380,15 @@ def get_package_manager():
)
config.L9PACKAGES = "" # FIXME: Missing Logos 9 Packages
config.BADPACKAGES = "" # appimagelauncher handled separately
elif shutil.which('pkg') is not None: # freebsd ghostbsd
config.PACKAGE_MANAGER_COMMAND_INSTALL = ["pkg", "-y", "install"] # noqa: E501
config.PACKAGE_MANAGER_COMMAND_DOWNLOAD = ["pkg", "fetch", "-d"] # noqa: E501
config.PACKAGE_MANAGER_COMMAND_REMOVE = ["pkg", "-y", "delete"] # noqa: E501
config.PACKAGE_MANAGER_COMMAND_QUERY = ["pkg", "info"]
config.QUERY_PREFIX = ''
config.PACKAGES = "wget gsed gnugrep gawk cabextract 7-zip samba416 curl" # noqa: E501
config.L9PACKAGES = "" # FIXME: Missing Logos 9 Packages
config.BADPACKAGES = "" # appimagelauncher handled separately
# Add more conditions for other package managers as needed

# Add logging output.
Expand Down