]> git.pld-linux.org Git - packages/fax4CUPS.git/commitdiff
- from override
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 13 Mar 2005 01:54:18 +0000 (01:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fax4CUPS-hylafax.config -> 1.3
    fax4CUPS-hylafax.patch -> 1.4

fax4CUPS-hylafax.config
fax4CUPS-hylafax.patch

index a39bd87e5d73af42bcd924fef924bd07207039ec..7b18ef3a5260c920c9ddca7fb3b55ee3c284a240 100644 (file)
@@ -7,5 +7,8 @@
 # override user passed by cups server
 # HYLAFAX_USER="someone"
 
+# override from passwd to sendfax
+# HYLAFAX_FROM="root@localhost"
+
 # additional options
 # HYLAFAX_OPT=""
index 26e2acd2fd81dc9b96f4d2ba9531afbf75b95ecd..509319760c239595c82e62e1b4e93c903eeda78b 100644 (file)
@@ -1,6 +1,6 @@
 diff -urN fax4CUPS-1.24.org/hylafax fax4CUPS-1.24/hylafax
 --- fax4CUPS-1.24.org/hylafax  2004-07-07 14:45:06.000000000 +0200
-+++ fax4CUPS-1.24/hylafax      2005-03-13 02:51:52.000000000 +0100
++++ fax4CUPS-1.24/hylafax      2005-03-13 02:54:23.000000000 +0100
 @@ -4,8 +4,12 @@
  NAME=""
  PAGE=a4
@@ -14,15 +14,16 @@ diff -urN fax4CUPS-1.24.org/hylafax fax4CUPS-1.24/hylafax
  #
  # This is fax4CUPS 1.24, a fax back-end for CUPS
  #
-@@ -51,6 +55,7 @@
+@@ -51,6 +55,8 @@
  # Get the user that owns the job
  USER=$2
  FROM=$USER
 +[ -n "$HYLAFAX_USER" ] && USER="$HYLAFAX_USER"
++[ -n "$HYLAFAX_FROM" ] && FROM="$HYLAFAX_FROM"
  
  # Apparently the first character emitted is somehow "eaten" by the reader
  echo 1>&2
-@@ -59,6 +64,10 @@
+@@ -59,6 +65,10 @@
  # otherwise, it is empty and sendfax will read standard input.
  FAXNAME=$6
  
@@ -33,7 +34,7 @@ diff -urN fax4CUPS-1.24.org/hylafax fax4CUPS-1.24/hylafax
  # Set some defaults
  RES="-m"      # Default resolution is high; set this to -l for low resolution
  NUMBER=""     # Use option "phone" as number by default
-@@ -112,7 +121,7 @@
+@@ -112,7 +122,7 @@
        echo "ERROR: $FAXPRG: executable not found"  1>&2
        # Raise error and hang the queue: this is fatal !
        exit 1
@@ -42,7 +43,7 @@ diff -urN fax4CUPS-1.24.org/hylafax fax4CUPS-1.24/hylafax
        echo "ERROR: HylaFAX not running"  1>&2
        # Raise error and hang the queue: this is fatal !
        exit 1
-@@ -121,9 +130,13 @@
+@@ -121,9 +131,13 @@
  # Remove possible whitespace in number: replace by period
  NUMBER=${NUMBER// /.}
  
This page took 0.082474 seconds and 4 git commands to generate.