HPLIP Auto Installation patch for Ubuntu Maverick

Created by Naga Samrat Chowdary, Narla
Keywords:
Ubuntu 10 10

Following diff content is for HPLIP Auto installation on Ubuntu Maverick.

open installer/distroes.dat file in the hplip-3.10.9 directory and apply the following diff patch content on the file.
from hplip-3.10.9 directory launch ./install.py file to continue auto installation.

Thanks,
Naga Samrat Chowdary, Narla

Index: installer/distros.dat
===================================================================
--- installer/distros.dat (revision 14020)
+++ installer/distros.dat (revision 14021)
@@ -3777,14 +3777,14 @@
 # ****************************************
 [ubuntu]
 index=12
-versions=5.04,5.1,6.06,6.10,7.04,7.10,8.04,8.04.1,8.04.2,8.10,9.04,9.10,10.04
+versions=5.04,5.1,6.06,6.10,7.04,7.10,8.04,8.04.1,8.04.2,8.10,9.04,9.10,10.04,10.10
 display_name=Ubuntu
 alt_names=kubuntu,edubuntu,xubuntu
 display=1
 notes=
 package_mgrs=dpkg,apt-get,synaptic,update-manager,adept,aptitude,adept-updater
-package_mgr_cmd=sudo aptitude install --assume-yes $packages_to_install
-pre_depend_cmd=sudo dpkg --configure -a,sudo apt-get install --yes --force-yes -f,sudo aptitude update
+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=
 hplip_remove_cmd=sudo apt-get remove --assume-yes hplip hpijs hplip-cups hplip-data libhpmud0 foomatic-db-hpijs
 su_sudo=sudo
@@ -5036,7 +5036,7 @@
 policykit=1
 native_cups=1
 acl_rules=1
-add_user_to_group=-a -Glp
+add_user_to_group=-a -Glp,lpadmin

 [ubuntu:9.10:cups]
 packages=libcupsys2
@@ -5153,7 +5153,7 @@
 ui_toolkit=qt4
 native_cups=1
 acl_rules=1
-add_user_to_group=-a -Glp
+add_user_to_group=-a -Glp,lpadmin

 [ubuntu:10.04:cups]
 packages=libcups2
@@ -5246,6 +5246,120 @@
 [ubuntu:10.04:python-notify]
 packages=python-notify

+# ************************************
+[ubuntu:10.10]
+code_name=Maverick
+supported=1
+scan_supported=1
+fax_supported=1
+pcard_supported=1
+network_supported=1
+parallel_supported=1
+usb_supported=1
+packaged_version=3.10.11
+release_date=2010
+notes=Enable the universe/multiverse repositories. Also be sure you are using the Ubuntu "Main" Repositories. See: https://help.ubuntu.com/community/Repositories/Ubuntu for more information. Disable the CD-ROM/DVD source if you do not have the Ubuntu installation media inserted in the drive. During the install process you will be added to the lp and lpadmin group, please quit the installer before the setup stage, log out, log back in, and run hp-setup to complete the install.
+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=qt4
+native_cups=1
+acl_rules=1
+add_user_to_group=-a -Glp,lpadmin
+
+[ubuntu:10.10:cups]
+packages=libcups2
+
+[ubuntu:10.10:cups-devel]
+packages=libcups2-dev,cups-bsd,cups-client
+
+[ubuntu:10.10:gcc]
+packages=build-essential
+
+[ubuntu:10.10:gs]
+packages=ghostscript
+
+[ubuntu:10.10:libcrypto]
+packages=openssl
+
+[ubuntu:10.10:libjpeg]
+packages=libjpeg62-dev
+
+[ubuntu:10.10:libnetsnmp-devel]
+packages=libsnmp-dev
+
+[ubuntu:10.10:libpthread]
+packages=build-essential
+
+[ubuntu:10.10:libtool]
+packages=libtool
+
+[ubuntu:10.10:libusb]
+packages=libusb-dev
+
+[ubuntu:10.10:make]
+packages=build-essential
+
+[ubuntu:10.10:pil]
+packages=python-imaging
+
+[ubuntu:10.10:ppdev]
+packages=
+commands=sudo modprobe ppdev,sudo cp -f /etc/modules /etc/modules.hplip,echo ppdev | sudo tee -a /etc/modules
+
+[ubuntu:10.10:pyqt]
+packages=python-qt4
+
+[ubuntu:10.10:python-devel]
+packages=python-dev
+
+[ubuntu:10.10:pyqt4]
+packages=python-qt4
+
+[ubuntu:10.10:pyqt4-dbus]
+packages=python-qt4-dbus
+
+#[ubuntu:10.10:python23]
+#packages=python
+
+[ubuntu:10.10:python2x]
+packages=python
+
+[ubuntu:10.10:reportlab]
+packages=python-reportlab
+
+[ubuntu:10.10:sane]
+packages=libsane
+
+[ubuntu:10.10:sane-devel]
+packages=libsane-dev
+
+[ubuntu:10.10:scanimage]
+packages=sane-utils
+
+[ubuntu:10.10:xsane]
+packages=xsane
+
+[ubuntu:10.10:python-dbus]
+packages=python-dbus,python-gobject
+
+[ubuntu:10.10:dbus]
+packages=libdbus-1-dev
+
+[ubuntu:10.10:cups-image]
+packages=libcupsimage2-dev
+
+[ubuntu:10.10:cups-ddk]
+packages=cups
+
+[ubuntu:10.10:policykit]
+packages=policykit-1,policykit-1-gnome
+
+[ubuntu:10.10:python-notify]
+packages=python-notify
+
 # ****************************************
 [debian]
 index=2