summaryrefslogtreecommitdiff
blob: c90b6f1b427375bc47122cd43b345371824065c1 (plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
diff -u serialmail-0.75-orig/INSTALL serialmail-0.75-modif/INSTALL
--- serialmail-0.75-orig/INSTALL	1998-11-15 04:28:23.000000000 +0200
+++ serialmail-0.75-modif/INSTALL	2004-01-01 15:32:39.000000000 +0200
@@ -8,7 +8,7 @@
 
 Things you have to decide before starting:
 
-* The serialmail home directory, normally /usr/local. To change this
+* The serialmail home directory, normally /usr. To change this
 directory, edit conf-home now.
 
 * The location of the qmail home directory, normally /var/qmail. To
diff -u serialmail-0.75-orig/Makefile serialmail-0.75-modif/Makefile
--- serialmail-0.75-orig/Makefile	1998-11-15 04:28:23.000000000 +0200
+++ serialmail-0.75-modif/Makefile	2004-01-01 15:25:04.000000000 +0200
@@ -30,7 +30,7 @@
 
 auto_home.c: \
 auto-str conf-home
-	./auto-str auto_home `head -1 conf-home` > auto_home.c
+	./auto-str auto_home `head -n1 conf-home` > auto_home.c
 
 auto_home.o: \
 compile auto_home.c
@@ -38,7 +38,7 @@
 
 auto_qmail.c: \
 auto-str conf-qmail
-	./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c
+	./auto-str auto_qmail `head -n1 conf-qmail` > auto_qmail.c
 
 auto_qmail.o: \
 compile auto_qmail.c
@@ -104,7 +104,7 @@
 compile: \
 warn-auto.sh conf-cc
 	( cat warn-auto.sh; \
-	echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \
+	echo exec "`head -n1 conf-cc`" '-c $${1+"$$@"}' \
 	) > compile
 	chmod 755 compile
 
@@ -288,7 +288,7 @@
 warn-auto.sh conf-ld
 	( cat warn-auto.sh; \
 	echo 'main="$$1"; shift'; \
-	echo exec "`head -1 conf-ld`" \
+	echo exec "`head -n1 conf-ld`" \
 	'-o "$$main" "$$main".o $${1+"$$@"}' \
 	) > load
 	chmod 755 load
@@ -318,7 +318,7 @@
 maildirqmtp: \
 warn-auto.sh maildirqmtp.sh conf-home
 	cat warn-auto.sh maildirqmtp.sh \
-	| sed s}HOME}"`head -1 conf-home`"}g \
+	| sed s}HOME}"`head -n1 conf-home`"}g \
 	> maildirqmtp
 	chmod 755 maildirqmtp
 
@@ -352,7 +352,7 @@
 maildirsmtp: \
 warn-auto.sh maildirsmtp.sh conf-home
 	cat warn-auto.sh maildirsmtp.sh \
-	| sed s}HOME}"`head -1 conf-home`"}g \
+	| sed s}HOME}"`head -n1 conf-home`"}g \
 	> maildirsmtp
 	chmod 755 maildirsmtp
 
@@ -444,7 +444,7 @@
 rts: \
 warn-auto.sh rts.sh conf-home
 	cat warn-auto.sh rts.sh \
-	| sed s}HOME}"`head -1 conf-home`"}g \
+	| sed s}HOME}"`head -n1 conf-home`"}g \
 	> rts
 	chmod 755 rts
 
@@ -667,8 +667,8 @@
 systype: \
 find-systype.sh conf-cc conf-ld trycpp.c
 	( cat warn-auto.sh; \
-	echo CC=\'`head -1 conf-cc`\'; \
-	echo LD=\'`head -1 conf-ld`\'; \
+	echo CC=\'`head -n1 conf-cc`\'; \
+	echo LD=\'`head -n1 conf-ld`\'; \
 	cat find-systype.sh; \
 	) | sh > systype
 
diff -u serialmail-0.75-orig/conf-cc serialmail-0.75-modif/conf-cc
--- serialmail-0.75-orig/conf-cc	1998-11-15 04:28:23.000000000 +0200
+++ serialmail-0.75-modif/conf-cc	2004-01-01 15:45:54.000000000 +0200
@@ -1,3 +1,3 @@
-gcc -O2
+gcc @CFLAGS@
 
 This will be used to compile .c files.
diff -u serialmail-0.75-orig/conf-home serialmail-0.75-modif/conf-home
--- serialmail-0.75-orig/conf-home	1998-11-15 04:28:23.000000000 +0200
+++ serialmail-0.75-modif/conf-home	2004-01-01 15:31:32.000000000 +0200
@@ -1,4 +1,4 @@
-/usr/local
+/usr
 
 This is the serialmail home directory. Programs will be installed in
 .../bin; man pages will be installed in subdirectories of .../man.
diff -u serialmail-0.75-orig/conf-ld serialmail-0.75-modif/conf-ld
--- serialmail-0.75-orig/conf-ld	1998-11-15 04:28:23.000000000 +0200
+++ serialmail-0.75-modif/conf-ld	2004-01-01 15:46:05.000000000 +0200
@@ -1,3 +1,3 @@
-gcc -s
+gcc @LDFLAGS@
 
 This will be used to link .o files into an executable.
diff -u serialmail-0.75-orig/error.h serialmail-0.75-modif/error.h
--- serialmail-0.75-orig/error.h	1998-11-15 04:28:23.000000000 +0200
+++ serialmail-0.75-modif/error.h	2004-01-01 15:29:04.000000000 +0200
@@ -1,7 +1,6 @@
 #ifndef ERROR_H
 #define ERROR_H
-
-extern int errno;
+#include <errno.h>
 
 extern int error_intr;
 extern int error_nomem;
diff -u serialmail-0.75-orig/leapsecs_read.c serialmail-0.75-modif/leapsecs_read.c
--- serialmail-0.75-orig/leapsecs_read.c	1998-11-15 04:28:23.000000000 +0200
+++ serialmail-0.75-modif/leapsecs_read.c	2004-01-01 15:29:24.000000000 +0200
@@ -2,7 +2,6 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <errno.h>
-extern int errno;
 #include "tai.h"
 #include "leapsecs.h"