mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 04:49:17 -04:00
- Convert post-patch to real patches because they are easier to maintain. - Fix a NULL dereference in the scanner backend when D-Bus isn't running. - Depend on sysutils/py-distro to make hp-toolbox (Device Manager) work again. - Upstream switched to Avahi for mDNS support. Rename the SNMP option to NETWORK because it's not just SNMP now. - Don't install some programs related to uninstalling and upgrading of HPLIP and the installation of firmware plugins because they circumvent the package system. - Install icons in share/icons so desktops can choose an appropriate resolution. Portions taken from a patch by Oleg Sidorkin <osidorkin@gmail.com>. PR: 255586, 257034, 257512
29 lines
843 B
Python
29 lines
843 B
Python
--- fax/backend/hpfax.py.orig 2022-02-23 07:41:04 UTC
|
|
+++ fax/backend/hpfax.py
|
|
@@ -49,7 +49,7 @@ PIPE_BUF = 4096
|
|
|
|
job_id = 0
|
|
pid = os.getpid()
|
|
-config_file = '/etc/hp/hplip.conf'
|
|
+config_file = '/usr/local/etc/hp/hplip.conf'
|
|
home_dir = ''
|
|
|
|
|
|
@@ -68,7 +68,7 @@ if os.path.exists(config_file):
|
|
bug("Error setting home directory: home= under [dirs] not found.")
|
|
sys.exit(1)
|
|
else:
|
|
- bug("Error setting home directory: /etc/hp/hplip.conf not found")
|
|
+ bug("Error setting home directory: /usr/local/etc/hp/hplip.conf not found")
|
|
sys.exit(1)
|
|
|
|
if not home_dir or not os.path.exists(home_dir):
|
|
@@ -255,7 +255,7 @@ else:
|
|
|
|
# Create the named pipe. Make sure it exists before sending
|
|
# message to hppsd.
|
|
- os.umask(0o111)
|
|
+ os.umask(0o133)
|
|
try:
|
|
os.mkfifo(pipe_name)
|
|
except OSError:
|