hplip: add trisquel distro-name definition for hplip tools.
This commit is contained in:
parent
1084ad3d7d
commit
d61e03b0a2
3 changed files with 335 additions and 1 deletions
|
|
@ -0,0 +1,313 @@
|
|||
diff --git a/installer/distros.dat b/installer/distros.dat
|
||||
index 80588920..66bb81a1 100644
|
||||
--- a/installer/distros.dat
|
||||
+++ b/installer/distros.dat
|
||||
@@ -94,7 +94,7 @@
|
||||
# ****************************************
|
||||
|
||||
[distros]
|
||||
-distros=unknown,mepis,debian,suse,mandriva,fedora,redhat,rhel,slackware,gentoo,redflag,ubuntu,xandros,freebsd,linspire,ark,pclinuxos,centos,igos,linuxmint,linpus,gos,boss,lfs,manjarolinux,zorin,mxlinux,elementary
|
||||
+distros=unknown,mepis,debian,suse,mandriva,fedora,redhat,rhel,slackware,gentoo,redflag,ubuntu,xandros,freebsd,linspire,ark,pclinuxos,centos,igos,linuxmint,linpus,gos,boss,lfs,manjarolinux,zorin,mxlinux,elementary,trisquel
|
||||
|
||||
# ****************************************
|
||||
|
||||
@@ -18946,3 +18946,287 @@ packages=automake1.11
|
||||
packages=epm
|
||||
|
||||
# ****************************************
|
||||
+
|
||||
+[trisquel]
|
||||
+index=99
|
||||
+versions=11.0.1,12.0
|
||||
+display_name=Trisquel GNU/Linux
|
||||
+alt_names=trisquel,Trisquel GNU/Linux
|
||||
+display=1
|
||||
+notes=
|
||||
+package_mgrs=dpkg,apt-get,synaptic,update-manager,adept,aptitude,adept-updater
|
||||
+package_mgr_cmd=sudo apt-get install --assume-yes $packages_to_install
|
||||
+pre_depend_cmd=sudo dpkg --configure -a,sudo apt-get install --yes --force-yes -f,sudo apt-get update
|
||||
+post_depend_cmd=
|
||||
+hp_libs_remove_cmd= sudo apt-get remove libhpmud0 libsane-hpaio printer-driver-postscript-hp
|
||||
+hplip_remove_cmd=sudo aptitude remove --assume-yes hplip hpijs
|
||||
+su_sudo=sudo
|
||||
+ppd_install=ppd
|
||||
+udev_mode_fix=1
|
||||
+ppd_dir=
|
||||
+fix_ppd_symlink=0
|
||||
+drv_dir=/usr/share/cups/drv/HP
|
||||
+
|
||||
+# ****************************************
|
||||
+
|
||||
+[trisquel:11.0.1]
|
||||
+code_name=aramo
|
||||
+supported=1
|
||||
+scan_supported=1
|
||||
+fax_supported=1
|
||||
+pcard_supported=1
|
||||
+network_supported=1
|
||||
+parallel_supported=1
|
||||
+usb_supported=1
|
||||
+packaged_version=3.21.12
|
||||
+release_date=01/01/2022
|
||||
+notes=
|
||||
+ppd_install=drv
|
||||
+udev_mode_fix=1
|
||||
+ppd_dir=/usr/share/ppd/HP
|
||||
+fix_ppd_symlink=0
|
||||
+drv_dir=/usr/share/cups/drv/HP
|
||||
+ui_toolkit=qt5
|
||||
+native_cups=1
|
||||
+acl_rules=1
|
||||
+
|
||||
+libdir_path=/usr/lib
|
||||
+
|
||||
+[trisquel:11.0.1:cups]
|
||||
+packages=libcups2
|
||||
+
|
||||
+[trisquel:11.0.1:cups-devel]
|
||||
+packages=libcups2-dev,cups-bsd,cups-client
|
||||
+
|
||||
+[trisquel:11.0.1:gcc]
|
||||
+packages=build-essential
|
||||
+
|
||||
+[trisquel:11.0.1:gs]
|
||||
+packages=ghostscript
|
||||
+
|
||||
+[trisquel:11.0.1:libcrypto]
|
||||
+packages=openssl
|
||||
+
|
||||
+[trisquel:11.0.1:libjpeg]
|
||||
+packages=libjpeg-dev
|
||||
+
|
||||
+[trisquel:11.0.1:libatk-adaptor]
|
||||
+packages=libatk-adaptor
|
||||
+
|
||||
+[trisquel:11.0.1:libgail-common]
|
||||
+packages=libgail-common
|
||||
+
|
||||
+[trisquel:11.0.1:libnetsnmp-devel]
|
||||
+packages=libsnmp-dev
|
||||
+
|
||||
+[trisquel:11.0.1:libpthread]
|
||||
+packages=build-essential
|
||||
+
|
||||
+[trisquel:11.0.1:libtool]
|
||||
+packages=libtool,libtool-bin
|
||||
+
|
||||
+[trisquel:11.0.1:libusb]
|
||||
+packages=libusb-1.0-0-dev,libusb-0.1-4
|
||||
+
|
||||
+[trisquel:11.0.1:make]
|
||||
+packages=build-essential
|
||||
+
|
||||
+[trisquel:11.0.1:ppdev]
|
||||
+packages=
|
||||
+commands=sudo modprobe ppdev,sudo cp -f /etc/modules /etc/modules.hplip,echo ppdev | sudo tee -a /etc/modules
|
||||
+
|
||||
+[trisquel:11.0.1:sane]
|
||||
+packages=libsane
|
||||
+
|
||||
+[trisquel:11.0.1:sane-devel]
|
||||
+packages=libsane-dev
|
||||
+
|
||||
+[trisquel:11.0.1:scanimage]
|
||||
+packages=sane-utils
|
||||
+
|
||||
+[trisquel:11.0.1:xsane]
|
||||
+packages=gtk2-engines-pixbuf,xsane
|
||||
+
|
||||
+[trisquel:11.0.1:dbus]
|
||||
+packages=libdbus-1-dev
|
||||
+
|
||||
+[trisquel:11.0.1:cups-image]
|
||||
+packages=libcupsimage2-dev
|
||||
+
|
||||
+[trisquel:11.0.1:cups-ddk]
|
||||
+packages=cups
|
||||
+
|
||||
+[trisquel:11.0.1:policykit]
|
||||
+packages=policykit-1,policykit-1-gnome
|
||||
+
|
||||
+[trisquel:11.0.1:network]
|
||||
+packages=wget
|
||||
+
|
||||
+[trisquel:11.0.1:avahi-utils]
|
||||
+packages=avahi-utils
|
||||
+
|
||||
+[trisquel:11.0.1:libavahi-dev]
|
||||
+packages=libavahi-client-dev,libavahi-core-dev,libavahi-common-dev
|
||||
+
|
||||
+[trisquel:11.0.1:python3-notify2]
|
||||
+packages=python3-notify2
|
||||
+
|
||||
+[trisquel:11.0.1:python3-pyqt5-dbus]
|
||||
+packages=python3-dbus.mainloop.pyqt5
|
||||
+
|
||||
+[trisquel:11.0.1:python3-pyqt5]
|
||||
+packages=python3-pyqt5,gtk2-engines-pixbuf
|
||||
+
|
||||
+[trisquel:11.0.1:python3-dbus]
|
||||
+packages=python3-dbus,python3-gi
|
||||
+
|
||||
+[trisquel:11.0.1:python3-xml]
|
||||
+packages=python3-lxml
|
||||
+
|
||||
+[trisquel:11.0.1:python3-devel]
|
||||
+packages=python3-dev
|
||||
+
|
||||
+[trisquel:11.0.1:python3-pil]
|
||||
+packages=python3-pil
|
||||
+
|
||||
+[trisquel:11.0.1:python3-reportlab]
|
||||
+packages=python3-reportlab
|
||||
+
|
||||
+[trisquel:11.0.1:automake]
|
||||
+packages=automake1.11
|
||||
+
|
||||
+[trisquel:11.0.1:epm]
|
||||
+packages=epm
|
||||
+
|
||||
+# ****************************************
|
||||
+
|
||||
+[trisquel:12.0]
|
||||
+code_name=ecne
|
||||
+supported=1
|
||||
+scan_supported=1
|
||||
+fax_supported=1
|
||||
+pcard_supported=1
|
||||
+network_supported=1
|
||||
+parallel_supported=1
|
||||
+usb_supported=1
|
||||
+packaged_version=3.23.12
|
||||
+release_date=01/01/2022
|
||||
+notes=
|
||||
+ppd_install=drv
|
||||
+udev_mode_fix=1
|
||||
+ppd_dir=/usr/share/ppd/HP
|
||||
+fix_ppd_symlink=0
|
||||
+drv_dir=/usr/share/cups/drv/HP
|
||||
+ui_toolkit=qt5
|
||||
+native_cups=1
|
||||
+acl_rules=1
|
||||
+
|
||||
+libdir_path=/usr/lib
|
||||
+
|
||||
+[trisquel:12.0:cups]
|
||||
+packages=libcups2t64
|
||||
+
|
||||
+[trisquel:12.0:cups-devel]
|
||||
+packages=libcups2-dev,cups-bsd,cups-client
|
||||
+
|
||||
+[trisquel:12.0:gcc]
|
||||
+packages=build-essential
|
||||
+
|
||||
+[trisquel:12.0:gs]
|
||||
+packages=ghostscript
|
||||
+
|
||||
+[trisquel:12.0:libcrypto]
|
||||
+packages=openssl
|
||||
+
|
||||
+[trisquel:12.0:libjpeg]
|
||||
+packages=libjpeg-dev
|
||||
+
|
||||
+[trisquel:12.0:libatk-adaptor]
|
||||
+packages=libatk-adaptor
|
||||
+
|
||||
+[trisquel:12.0:libgail-common]
|
||||
+packages=libgail-common
|
||||
+
|
||||
+[trisquel:12.0:libnetsnmp-devel]
|
||||
+packages=libsnmp-dev
|
||||
+
|
||||
+[trisquel:12.0:libpthread]
|
||||
+packages=build-essential
|
||||
+
|
||||
+[trisquel:12.0:libtool]
|
||||
+packages=libtool,libtool-bin
|
||||
+
|
||||
+[trisquel:12.0:libusb]
|
||||
+packages=libusb-1.0-0-dev,libusb-0.1-4
|
||||
+
|
||||
+[trisquel:12.0:make]
|
||||
+packages=build-essential
|
||||
+
|
||||
+[trisquel:12.0:ppdev]
|
||||
+packages=
|
||||
+commands=sudo modprobe ppdev,sudo cp -f /etc/modules /etc/modules.hplip,echo ppdev | sudo tee -a /etc/modules
|
||||
+
|
||||
+[trisquel:12.0:sane]
|
||||
+packages=libsane1
|
||||
+
|
||||
+[trisquel:12.0:sane-devel]
|
||||
+packages=libsane-dev
|
||||
+
|
||||
+[trisquel:12.0:scanimage]
|
||||
+packages=sane-utils
|
||||
+
|
||||
+[trisquel:12.0:xsane]
|
||||
+packages=gtk2-engines-pixbuf,xsane
|
||||
+
|
||||
+[trisquel:12.0:dbus]
|
||||
+packages=libdbus-1-dev
|
||||
+
|
||||
+[trisquel:12.0:cups-image]
|
||||
+packages=libcupsimage2-dev
|
||||
+
|
||||
+[trisquel:12.0:cups-ddk]
|
||||
+packages=cups
|
||||
+
|
||||
+[trisquel:12.0:policykit]
|
||||
+packages=policykit-1,policykit-1-gnome
|
||||
+
|
||||
+[trisquel:12.0:network]
|
||||
+packages=wget
|
||||
+
|
||||
+[trisquel:12.0:avahi-utils]
|
||||
+packages=avahi-utils
|
||||
+
|
||||
+[trisquel:12.0:libavahi-dev]
|
||||
+packages=libavahi-client-dev,libavahi-core-dev,libavahi-common-dev
|
||||
+
|
||||
+[trisquel:12.0:python3-notify2]
|
||||
+packages=python3-notify2
|
||||
+
|
||||
+[trisquel:12.0:python3-pyqt5-dbus]
|
||||
+packages=python3-dbus.mainloop.pyqt5
|
||||
+
|
||||
+[trisquel:12.0:python3-pyqt5]
|
||||
+packages=python3-pyqt5,gtk2-engines-pixbuf
|
||||
+
|
||||
+[trisquel:12.0:python3-dbus]
|
||||
+packages=python3-dbus,python3-gi
|
||||
+
|
||||
+[trisquel:12.0:python3-xml]
|
||||
+packages=python3-lxml
|
||||
+
|
||||
+[trisquel:12.0:python3-devel]
|
||||
+packages=python3-dev
|
||||
+
|
||||
+[trisquel:12.0:python3-pil]
|
||||
+packages=python3-pil
|
||||
+
|
||||
+[trisquel:12.0:python3-reportlab]
|
||||
+packages=python3-reportlab
|
||||
+
|
||||
+[trisquel:12.0:automake]
|
||||
+packages=automake1.11
|
||||
+
|
||||
+[trisquel:12.0:epm]
|
||||
+packages=epm
|
||||
+
|
||||
+# ****************************************
|
||||
diff --git a/base/password.py b/base/password.py
|
||||
index a76d4048..b0c6fe20 100644
|
||||
--- a/base/password.py
|
||||
+++ b/base/password.py
|
||||
@@ -63,6 +63,7 @@ AUTH_TYPES = {'mepis': 'su',
|
||||
'debiangnu/linux' : 'su',
|
||||
'mxlinux' : 'su',
|
||||
'elementaryos' : 'sudo',
|
||||
+ 'trisquel' : 'sudo',
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
diff --git a/installer/core_install.py b/installer/core_install.py
|
||||
index 1c8af23e..9595b2c7 100644
|
||||
--- a/installer/core_install.py
|
||||
+++ b/installer/core_install.py
|
||||
@@ -644,6 +644,11 @@ class CoreInstall(object):
|
||||
ld = distro.linux_distribution(full_distribution_name=False)
|
||||
name = ld[0]
|
||||
ver = ld[1]
|
||||
+ # Ensure variable exists (used below for MX detection)
|
||||
+ try:
|
||||
+ distro_release_name = distro.name(pretty=True) or ""
|
||||
+ except Exception:
|
||||
+ distro_release_name = ""
|
||||
|
||||
found = True
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue