mirror of
https://abf.rosa.ru/djam/hplip.git
synced 2025-02-23 16:32:58 +00:00
return some patches
This commit is contained in:
parent
80466bbdad
commit
0d5e2cc769
3 changed files with 67 additions and 0 deletions
2
.abf.yml
2
.abf.yml
|
@ -2,3 +2,5 @@
|
|||
sources:
|
||||
hp-sendfax.png: 2201320c59c2eaba10abce5c40306c6461e79beb
|
||||
hplip-3.13.11.tar.gz: 240dcaf52c75a23cd5ab6a4426364245e7c2474e
|
||||
SmartInstallDisable-Tool.run: c82103aa609cd7e58f43b090266bb77216933937
|
||||
|
32
README.urpmi
Normal file
32
README.urpmi
Normal file
|
@ -0,0 +1,32 @@
|
|||
If you experience problems with the following printers:
|
||||
HP LaserJet 1100 series,
|
||||
HP LaserJet p1560 series,
|
||||
HP LaserJet p1600 series,
|
||||
HP LaserJet CP1020 series,
|
||||
HP LaserJet M1130 MFP series,
|
||||
HP LaserJet M1210 MFP series
|
||||
|
||||
try to run
|
||||
# /usr/bin/SmartInstallDisable-Tool.run
|
||||
|
||||
If you have already added you printer in system settings, you should delete it and add it once more.
|
||||
|
||||
Please refer to http://hplipopensource.com/node/367 for more details.
|
||||
|
||||
=== Russian ===
|
||||
|
||||
Если вы испытываете сложности с одним из следующих принтеров:
|
||||
|
||||
HP LaserJet 1100 series,
|
||||
HP LaserJet p1560 series,
|
||||
HP LaserJet p1600 series,
|
||||
HP LaserJet CP1020 series,
|
||||
HP LaserJet M1130 MFP series,
|
||||
HP LaserJet M1210 MFP series
|
||||
|
||||
то попробуйте запустить
|
||||
# /usr/bin/SmartInstallDisable-Tool.run
|
||||
|
||||
Если вы уже добавили свой принтер в системных настройках, то удалите его и добавьте снова.
|
||||
|
||||
Детальную информацию можно найти здесь: http://hplipopensource.com/node/367
|
33
hplip.spec
33
hplip.spec
|
@ -28,6 +28,10 @@ Source2: %{name}-tmpfiles.conf
|
|||
# http://www.iconfinder.com/icondetails/6393/128/fax_hardware_icon
|
||||
Source3: hp-sendfax.png
|
||||
Source4: hplip.rpmlintrc
|
||||
# http://hplipopensource.com/node/367
|
||||
Source5: http://hplipopensource.com/hplip-web/smartinstall/SmartInstallDisable-Tool.run
|
||||
Source6: README.urpmi
|
||||
|
||||
# (doktor5000) fix linking with python and libsane
|
||||
# taken from mandriva
|
||||
Patch1: hplip-3.11.3-mdv-link.patch
|
||||
|
@ -125,6 +129,8 @@ Requires: acl
|
|||
Requires: %{libhpip} = %{version}
|
||||
# Some HP ppds are in foomatic-db and foomatic-db-hpijs (mdv bug #47415)
|
||||
Suggests: foomatic-db-hpijs
|
||||
# hp-doctor requires gui modules
|
||||
Requires: hplip-gui
|
||||
|
||||
# foomatic-db-hpijs drivers are provided by hp and by this package now
|
||||
# NOTE: remove the foomatic-db-hpijs deps sometime in 2010-10-?? ?
|
||||
|
@ -477,6 +483,15 @@ rm -rf %{buildroot}%{_datadir}/hal/fdi
|
|||
# Regenerate hpcups PPDs on upgrade if necessary (bug #579355).
|
||||
install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/hpcups-update-ppds
|
||||
|
||||
# A tool disable smart install feature in HP printer(s) from linux
|
||||
# HP Smart Install is a service running on firmware which makes printer to appear
|
||||
# as "Mass Storage Devices" when connected via USB cable. This is to install the
|
||||
# minimal printer software from flash memory of printer. This service needs to be
|
||||
# disabled on linux in order to have the device function as a printer.
|
||||
install -p -m755 %{SOURCE5} %{buildroot}%{_bindir}/SmartInstallDisable-Tool.run
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
install -p -m755 %{SOURCE6} %{buildroot}%{_docdir}/%{name}
|
||||
|
||||
# Fedora pstotiff
|
||||
rm -f %{buildroot}%{_sysconfdir}/cups/pstotiff.types
|
||||
rm -f %{buildroot}%{_datadir}/cups/mime/pstotiff.types
|
||||
|
@ -492,6 +507,23 @@ mkdir -p %{buildroot}%{_sbindir}
|
|||
mv %{buildroot}%{_bindir}/hp-setup %{buildroot}%{_sbindir}/hp-setup
|
||||
ln -s consolehelper %{buildroot}%{_bindir}/hp-setup
|
||||
|
||||
# console user, ask for root password
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
|
||||
cat > %{buildroot}%{_sysconfdir}/security/console.apps/hp-setup <<EOF
|
||||
USER=root
|
||||
PROGRAM=/usr/sbin/hp-setup
|
||||
FALLBACK=false
|
||||
SESSION=true
|
||||
EOF
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
|
||||
cat > %{buildroot}%{_sysconfdir}/pam.d/hp-setup <<EOF
|
||||
#%PAM-1.0
|
||||
auth include config-util
|
||||
account include config-util
|
||||
session include config-util
|
||||
EOF
|
||||
|
||||
|
||||
# Make sure pyc files are generated, otherwise we can get
|
||||
# difficult to debug problems
|
||||
pushd %{buildroot}%{_datadir}/%{name}
|
||||
|
@ -666,6 +698,7 @@ fi
|
|||
%{_datadir}/polkit-1/actions/com.hp.hplip.policy
|
||||
%{_datadir}/dbus-1/system-services/com.hp.hplip.service
|
||||
%{_localstatedir}/lib/hp/hplip.state
|
||||
%{_docdir}/%{name}/README.urpmi
|
||||
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.hp.hplip.conf
|
||||
#%{_sysconfdir}/cron.daily/hplip_cron
|
||||
%{_sysconfdir}/tmpfiles.d/hplip.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue