* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / mail / qscanq / head_-1.patch
blob92703c1ae91310ecded6425d2620c17b423101df
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../qscanq/head_-1.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./src/print-cc.sh.orig 2005-11-28 18:30:33.000000000 -0300
18 +++ ./src/print-cc.sh 2005-11-28 18:32:13.000000000 -0300
19 @@ -1,4 +1,4 @@
20 -cc="`head -1 conf-cc`"
21 +cc="`head -n 1 conf-cc`"
22 systype="`cat systype`"
25 --- ./src/Makefile.orig 2005-11-28 18:26:22.000000000 -0300
26 +++ ./src/Makefile 2005-11-28 18:28:46.000000000 -0300
27 @@ -34,34 +34,34 @@
28 wait_pid.o
30 auto_ageout.h: conf-ageout
31 - echo "#define MAX_AGE" "`head -1 < conf-ageout`" > auto_ageout.h.tmp && \
32 + echo "#define MAX_AGE" "`head -n 1 < conf-ageout`" > auto_ageout.h.tmp && \
33 mv auto_ageout.h.tmp auto_ageout.h
35 auto_antivir_cmd.c: auto-strarr conf-antivir-cmd
36 - ./auto-strarr auto_antivir_cmd `head -1 conf-antivir-cmd` > \
37 + ./auto-strarr auto_antivir_cmd `head -n 1 conf-antivir-cmd` > \
38 auto_antivir_cmd.c.tmp && mv auto_antivir_cmd.c.tmp auto_antivir_cmd.c
40 auto_antivir_cmd.o: compile auto_antivir_cmd.c
41 ./compile auto_antivir_cmd.c
43 auto_cleaner.c: auto-str conf-pkg
44 - ./auto-str auto_cleaner "`head -1 conf-pkg`"/command/cleanq > \
45 + ./auto-str auto_cleaner "`head -n 1 conf-pkg`"/command/cleanq > \
46 auto_cleaner.c.tmp
47 - ./auto-str auto_runcleaner "`head -1 conf-pkg`"/command/run-cleanq >> \
48 + ./auto-str auto_runcleaner "`head -n 1 conf-pkg`"/command/run-cleanq >> \
49 auto_cleaner.c.tmp && mv auto_cleaner.c.tmp auto_cleaner.c
51 auto_cleaner.o: compile auto_cleaner.c
52 ./compile auto_cleaner.c
54 auto_cqlog.c: auto-str conf-cqlog
55 - ./auto-str auto_cqlog "`head -1 conf-cqlog`" > auto_cqlog.c.tmp && mv \
56 + ./auto-str auto_cqlog "`head -n 1 conf-cqlog`" > auto_cqlog.c.tmp && mv \
57 auto_cqlog.c.tmp auto_cqlog.c
59 auto_cqlog.o: compile auto_cqlog.c
60 ./compile auto_cqlog.c
62 auto_cqpause.c: auto-str conf-cqpause
63 - ./auto-str auto_cqpause "`head -1 conf-cqpause`" > auto_cqpause.c.tmp && \
64 + ./auto-str auto_cqpause "`head -n 1 conf-cqpause`" > auto_cqpause.c.tmp && \
65 mv auto_cqpause.c.tmp auto_cqpause.c
67 auto_cqpause.o: compile auto_cqpause.c
68 @@ -84,8 +84,8 @@
69 ./compile auto-gid.c
71 auto_gids.c: auto-gid auto-str conf-groups
72 - ./auto-gid auto_ctlgid "`head -1 conf-groups`" >> auto_gids.c.tmp
73 - ./auto-str auto_ctlgroup "`head -1 conf-groups`" >> auto_gids.c.tmp && \
74 + ./auto-gid auto_ctlgid "`head -n 1 conf-groups`" >> auto_gids.c.tmp
75 + ./auto-str auto_ctlgroup "`head -n 1 conf-groups`" >> auto_gids.c.tmp && \
76 mv auto_gids.c.tmp auto_gids.c
78 auto_gids.o: compile auto_gids.c
79 @@ -101,25 +101,25 @@
80 ./compile auto-pidt.c
82 auto_pkg.c: auto-str conf-pkg
83 - ./auto-str auto_pkg "`head -1 conf-pkg`" > auto_pkg.c.tmp && mv \
84 + ./auto-str auto_pkg "`head -n 1 conf-pkg`" > auto_pkg.c.tmp && mv \
85 auto_pkg.c.tmp auto_pkg.c
87 auto_pkg.o: compile auto_pkg.c
88 ./compile auto_pkg.c
90 auto_qmailbin.c: auto-str conf-qmail
91 - ./auto-str auto_qmailbin "`head -1 conf-qmail`"/bin > \
92 + ./auto-str auto_qmailbin "`head -n 1 conf-qmail`"/bin > \
93 auto_qmailbin.c.tmp && mv auto_qmailbin.c.tmp auto_qmailbin.c
95 auto_qmailbin.o: compile auto_qmailbin.c
96 ./compile auto_qmailbin.c
98 auto_qmailq.c: auto-strarr conf-qmailq
99 - ./auto-strarr auto_qmailq "`head -1 conf-qmailq`"/qmail-queue > \
100 + ./auto-strarr auto_qmailq "`head -n 1 conf-qmailq`"/qmail-queue > \
101 auto_qmailq.c.tmp && mv auto_qmailq.c.tmp auto_qmailq.c
103 auto_qmailq_destdir.c: auto-str conf-qmailq
104 - ./auto-str auto_qmailq_destdir "`head -1 conf-qmailq`" > \
105 + ./auto-str auto_qmailq_destdir "`head -n 1 conf-qmailq`" > \
106 auto_qmailq_destdir.c.tmp && mv auto_qmailq_destdir.c.tmp \
107 auto_qmailq_destdir.c
109 @@ -130,7 +130,7 @@
110 ./compile auto_qmailq.c
112 auto_qmailq_oldpath.c: auto-str conf-qmail
113 - ./auto-str auto_qmailq_oldpath "`head -1 conf-qmail`"/bin/qmail-queue > \
114 + ./auto-str auto_qmailq_oldpath "`head -n 1 conf-qmail`"/bin/qmail-queue > \
115 auto_qmailq_oldpath.c.tmp && mv auto_qmailq_oldpath.c.tmp \
116 auto_qmailq_oldpath.c
118 @@ -138,57 +138,57 @@
119 ./compile auto_qmailq_oldpath.c
121 auto_qscanq.c: auto-str conf-pkg
122 - ./auto-str auto_qscanq "`head -1 conf-pkg`"/command/qscanq > \
123 + ./auto-str auto_qscanq "`head -n 1 conf-pkg`"/command/qscanq > \
124 auto_qscanq.c.tmp && mv auto_qscanq.c.tmp auto_qscanq.c
126 auto_qscanq.o: compile auto_qscanq.c
127 ./compile auto_qscanq.c
129 auto_qstdin.c: auto-strarr conf-pkg
130 - ./auto-strarr auto_qstdin "`head -1 conf-pkg`"/command/qscanq-stdin > \
131 + ./auto-strarr auto_qstdin "`head -n 1 conf-pkg`"/command/qscanq-stdin > \
132 auto_qstdin.c.tmp && mv auto_qstdin.c.tmp auto_qstdin.c
134 auto_qstdin.o: compile auto_qstdin.c
135 ./compile auto_qstdin.c
137 auto_retries.h: conf-retries
138 - echo "#define MAX_RETRIES" "`head -1 < conf-retries`" > \
139 + echo "#define MAX_RETRIES" "`head -n 1 < conf-retries`" > \
140 auto_retries.h.tmp && mv auto_retries.h.tmp auto_retries.h
142 auto_ripmime_cmd.c: auto-strarr conf-ripmime-cmd
143 - ./auto-strarr auto_ripmime_cmd `head -1 conf-ripmime-cmd` > \
144 + ./auto-strarr auto_ripmime_cmd `head -n 1 conf-ripmime-cmd` > \
145 auto_ripmime_cmd.c.tmp && mv auto_ripmime_cmd.c.tmp auto_ripmime_cmd.c
147 auto_ripmime_cmd.o: compile auto_ripmime_cmd.c
148 ./compile auto_ripmime_cmd.c
150 auto_rmcmd.c: auto-strarr conf-rm
151 - ./auto-strarr auto_rmcmd `head -1 conf-rm` > auto_rmcmd.c.tmp && mv \
152 + ./auto-strarr auto_rmcmd `head -n 1 conf-rm` > auto_rmcmd.c.tmp && mv \
153 auto_rmcmd.c.tmp auto_rmcmd.c
155 auto_rmcmd.o: compile auto_rmcmd.c
156 ./compile auto_rmcmd.c
158 auto_scancmd.c: auto-strarr conf-scancmd
159 - ./auto-strarr auto_scancmd `head -1 conf-scancmd` > auto_scancmd.c.tmp \
160 + ./auto-strarr auto_scancmd `head -n 1 conf-scancmd` > auto_scancmd.c.tmp \
161 && mv auto_scancmd.c.tmp auto_scancmd.c
163 auto_scancmd.o: compile auto_scancmd.c
164 ./compile auto_scancmd.c
166 auto_scanq.c: auto-str conf-spool
167 - ./auto-str auto_scanq "`head -1 conf-spool`" > auto_scanq.c.tmp && mv \
168 + ./auto-str auto_scanq "`head -n 1 conf-spool`" > auto_scanq.c.tmp && mv \
169 auto_scanq.c.tmp auto_scanq.c
171 auto_scanq.o: compile auto_scanq.c
172 ./compile auto_scanq.c
174 auto_scan_stdin.h: conf-scan-stdin
175 - echo "#define SCAN_STDIN" "`head -1 < conf-scan-stdin`" > \
176 + echo "#define SCAN_STDIN" "`head -n 1 < conf-scan-stdin`" > \
177 auto_scan_stdin.h.tmp && mv auto_scan_stdin.h.tmp auto_scan_stdin.h
179 auto_spool.c: auto-str conf-spool
180 - ./auto-str auto_spool "`head -1 conf-spool`"/root/scanq > \
181 + ./auto-str auto_spool "`head -n 1 conf-spool`"/root/scanq > \
182 auto_spool.c.tmp && mv auto_spool.c.tmp auto_spool.c
184 auto_spool.o: compile auto_spool.c
185 @@ -207,7 +207,7 @@
186 ./compile auto-str.c
188 auto_svc.c: auto-str conf-svc
189 - ./auto-str auto_svc "`head -1 conf-svc`" > auto_svc.c.tmp && mv \
190 + ./auto-str auto_svc "`head -n 1 conf-svc`" > auto_svc.c.tmp && mv \
191 auto_svc.c.tmp auto_svc.c
193 auto_svc.o: compile auto_svc.c
194 @@ -220,11 +220,11 @@
195 ./compile auto-uid.c
197 auto_uids.c: auto-uid conf-users
198 - ./auto-str auto_user "`head -1 conf-users`" > auto_uids.c.tmp
199 - ./auto-str auto_loguser "`head -2 conf-users|tail -1`" >> \
200 + ./auto-str auto_user "`head -n 1 conf-users`" > auto_uids.c.tmp
201 + ./auto-str auto_loguser "`head -n 2 conf-users|tail -n 1`" >> \
202 auto_uids.c.tmp
203 - ./auto-uid auto_uid "`head -1 conf-users`" >> auto_uids.c.tmp
204 - ./auto-uid auto_loguid "`head -2 conf-users|tail -1`" >> auto_uids.c.tmp \
205 + ./auto-uid auto_uid "`head -n 1 conf-users`" >> auto_uids.c.tmp
206 + ./auto-uid auto_loguid "`head -n 2 conf-users|tail -n 1`" >> auto_uids.c.tmp \
207 && mv auto_uids.c.tmp auto_uids.c
209 auto_uids.o: compile auto_uids.c
210 @@ -272,7 +272,7 @@
211 choose: home warn-auto.sh choose.sh
212 rm -f choose
213 cat warn-auto.sh choose.sh \
214 - | sed s}HOME}"`head -1 home`"}g \
215 + | sed s}HOME}"`head -n 1 home`"}g \
216 > choose
217 chmod 755 choose
219 --- ./src/rts.tests.orig 2005-11-28 18:30:54.000000000 -0300
220 +++ ./src/rts.tests 2005-11-28 18:32:31.000000000 -0300
221 @@ -8,7 +8,7 @@
222 mkdir rts-tmp
223 cd rts-tmp
225 -U="`head -1 ../conf-users`"
226 +U="`head -n 1 ../conf-users`"
227 echo -n 'Running run-cleanq as' "$U"...
228 setuidgid "$U" run-cleanq >2.err 2>&1
229 if test $? -eq 0; then echo PASS; elif test $? -eq 1; then echo "FAIL: error";
230 --- ./src/print-ld.sh.orig 2005-11-28 18:30:41.000000000 -0300
231 +++ ./src/print-ld.sh 2005-11-28 18:32:19.000000000 -0300
232 @@ -1,4 +1,4 @@
233 -ld="`head -1 conf-ld`"
234 +ld="`head -n 1 conf-ld`"
235 systype="`cat systype`"
237 cat warn-auto.sh
238 --- ./package/compile.orig 2005-11-28 18:31:04.000000000 -0300
239 +++ ./package/compile 2005-11-28 18:32:47.000000000 -0300
240 @@ -7,7 +7,7 @@
241 here=`env - PATH=$PATH pwd`
243 # Verify that the scanner is selected
244 -if head -1 src/conf-scancmd|egrep "SCANNER HERE" >/dev/null
245 +if head -n 1 src/conf-scancmd|egrep "SCANNER HERE" >/dev/null
246 then echo 'Edit src/conf-scancmd and try again.'; exit 1; fi
248 # Create a place to do the build
249 --- ./package/run.orig 2005-11-28 18:30:59.000000000 -0300
250 +++ ./package/run 2005-11-28 18:32:41.000000000 -0300
251 @@ -17,8 +17,8 @@
254 CT="`which crontab`"
255 -U="`head -1 ./src/conf-users`"
256 -S="`head -1 ./src/conf-spool`"
257 +U="`head -n 1 ./src/conf-users`"
258 +S="`head -n 1 ./src/conf-spool`"
259 if setuidgid "$U" "$CT" "$S"/root/crontab
260 then
261 echo 'OK: Installed crontab for' "$U"