File: 07logfilenames.diff

package info (click to toggle)
efax 1%3A0.9a-25
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 828 kB
  • sloc: ansic: 6,763; sh: 4,039; makefile: 80
file content (56 lines) | stat: -rw-r--r-- 1,780 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From: MJ Ray <mjr@debian.org>
Date: Mon, 3 Oct 2005 16:47:22 +0100
Subject: Make logfile names end with .efax.log instead of .log and change LOGDIR

diff -Nuar efax-0.9a.orig/fax efax-0.9a/fax
--- efax-0.9a.orig/fax	2005-10-02 14:34:48.000000000 +0100
+++ efax-0.9a/fax	2005-10-02 14:36:09.000000000 +0100
@@ -305,7 +305,7 @@
 # should already exist and be writable by the user(s) of this script.

 FAXDIR=/var/spool/fax
-LOGDIR=/var/log/fax
+LOGDIR=/var/log/efax

 # The strftime(3) pattern that generates the file name for
 # received files.  For example, at 10:45:36 on February 25,
@@ -531,8 +531,8 @@
 			-e tok -e b -e ':ok' -e q $f`
 		case $REMID in '') REMID='?' ;; esac
 		eval $NOTIFY
-		echo   >>${LOGDIR}/${DEVN}.log && \
-		cat $f >>${LOGDIR}/${DEVN}.log && \
+		echo   >>${LOGDIR}/${DEVN}.efax.log && \
+		cat $f >>${LOGDIR}/${DEVN}.efax.log && \
   		$RM $f || \
 		echo "Error: $FAX cannot save log files" >>$CONSOLE
 	  ;;
@@ -871,8 +871,8 @@
 	0) ;; *) echo "Will try again in $s seconds" ; sleep $s ;;
 	esac
 
-#	logfile=`$TSTAMP`.log
-        logfile="$TELNO".log
+#	logfile=`$TSTAMP`.efax.log
+        logfile="$TELNO".efax.log
 
 	for t in 0 $BUSYRETRIES ; do
 
@@ -968,7 +968,7 @@
 	r*)
 	
 	case $1 in '') file=`$TSTAMP` ;; *) file=$1 ;; esac
-	logfile=${file}.log
+	logfile=${file}.efax.log
 
 	$NICE $EFAX -v "$VERB" -v "$VERBLOG" -d/dev/$DEV $LOCK $INIT $SPKR \
 	$CLASSINIT $FCINIT $RXINIT \
@@ -1043,7 +1043,7 @@
  use VAR=value to set variables (e.g. "fax DEV=cua2 receive")
 
  session logs are written to a file with the date/time as the
- file name and extension of .log (except for automatic reception).
+ file name and extension of .efax.log (except for automatic reception).
 
  fax device is /dev/$DEV, incoming spool directory is $FAXDIR