OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

261 lines
9.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../qscanq/head_-1.patch
  5. # Copyright (C) 2004 - 2006 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./src/print-cc.sh.orig 2005-11-28 18:30:33.000000000 -0300
  17. +++ ./src/print-cc.sh 2005-11-28 18:32:13.000000000 -0300
  18. @@ -1,4 +1,4 @@
  19. -cc="`head -1 conf-cc`"
  20. +cc="`head -n 1 conf-cc`"
  21. systype="`cat systype`"
  22. --- ./src/Makefile.orig 2005-11-28 18:26:22.000000000 -0300
  23. +++ ./src/Makefile 2005-11-28 18:28:46.000000000 -0300
  24. @@ -34,34 +34,34 @@
  25. wait_pid.o
  26. auto_ageout.h: conf-ageout
  27. - echo "#define MAX_AGE" "`head -1 < conf-ageout`" > auto_ageout.h.tmp && \
  28. + echo "#define MAX_AGE" "`head -n 1 < conf-ageout`" > auto_ageout.h.tmp && \
  29. mv auto_ageout.h.tmp auto_ageout.h
  30. auto_antivir_cmd.c: auto-strarr conf-antivir-cmd
  31. - ./auto-strarr auto_antivir_cmd `head -1 conf-antivir-cmd` > \
  32. + ./auto-strarr auto_antivir_cmd `head -n 1 conf-antivir-cmd` > \
  33. auto_antivir_cmd.c.tmp && mv auto_antivir_cmd.c.tmp auto_antivir_cmd.c
  34. auto_antivir_cmd.o: compile auto_antivir_cmd.c
  35. ./compile auto_antivir_cmd.c
  36. auto_cleaner.c: auto-str conf-pkg
  37. - ./auto-str auto_cleaner "`head -1 conf-pkg`"/command/cleanq > \
  38. + ./auto-str auto_cleaner "`head -n 1 conf-pkg`"/command/cleanq > \
  39. auto_cleaner.c.tmp
  40. - ./auto-str auto_runcleaner "`head -1 conf-pkg`"/command/run-cleanq >> \
  41. + ./auto-str auto_runcleaner "`head -n 1 conf-pkg`"/command/run-cleanq >> \
  42. auto_cleaner.c.tmp && mv auto_cleaner.c.tmp auto_cleaner.c
  43. auto_cleaner.o: compile auto_cleaner.c
  44. ./compile auto_cleaner.c
  45. auto_cqlog.c: auto-str conf-cqlog
  46. - ./auto-str auto_cqlog "`head -1 conf-cqlog`" > auto_cqlog.c.tmp && mv \
  47. + ./auto-str auto_cqlog "`head -n 1 conf-cqlog`" > auto_cqlog.c.tmp && mv \
  48. auto_cqlog.c.tmp auto_cqlog.c
  49. auto_cqlog.o: compile auto_cqlog.c
  50. ./compile auto_cqlog.c
  51. auto_cqpause.c: auto-str conf-cqpause
  52. - ./auto-str auto_cqpause "`head -1 conf-cqpause`" > auto_cqpause.c.tmp && \
  53. + ./auto-str auto_cqpause "`head -n 1 conf-cqpause`" > auto_cqpause.c.tmp && \
  54. mv auto_cqpause.c.tmp auto_cqpause.c
  55. auto_cqpause.o: compile auto_cqpause.c
  56. @@ -84,8 +84,8 @@
  57. ./compile auto-gid.c
  58. auto_gids.c: auto-gid auto-str conf-groups
  59. - ./auto-gid auto_ctlgid "`head -1 conf-groups`" >> auto_gids.c.tmp
  60. - ./auto-str auto_ctlgroup "`head -1 conf-groups`" >> auto_gids.c.tmp && \
  61. + ./auto-gid auto_ctlgid "`head -n 1 conf-groups`" >> auto_gids.c.tmp
  62. + ./auto-str auto_ctlgroup "`head -n 1 conf-groups`" >> auto_gids.c.tmp && \
  63. mv auto_gids.c.tmp auto_gids.c
  64. auto_gids.o: compile auto_gids.c
  65. @@ -101,25 +101,25 @@
  66. ./compile auto-pidt.c
  67. auto_pkg.c: auto-str conf-pkg
  68. - ./auto-str auto_pkg "`head -1 conf-pkg`" > auto_pkg.c.tmp && mv \
  69. + ./auto-str auto_pkg "`head -n 1 conf-pkg`" > auto_pkg.c.tmp && mv \
  70. auto_pkg.c.tmp auto_pkg.c
  71. auto_pkg.o: compile auto_pkg.c
  72. ./compile auto_pkg.c
  73. auto_qmailbin.c: auto-str conf-qmail
  74. - ./auto-str auto_qmailbin "`head -1 conf-qmail`"/bin > \
  75. + ./auto-str auto_qmailbin "`head -n 1 conf-qmail`"/bin > \
  76. auto_qmailbin.c.tmp && mv auto_qmailbin.c.tmp auto_qmailbin.c
  77. auto_qmailbin.o: compile auto_qmailbin.c
  78. ./compile auto_qmailbin.c
  79. auto_qmailq.c: auto-strarr conf-qmailq
  80. - ./auto-strarr auto_qmailq "`head -1 conf-qmailq`"/qmail-queue > \
  81. + ./auto-strarr auto_qmailq "`head -n 1 conf-qmailq`"/qmail-queue > \
  82. auto_qmailq.c.tmp && mv auto_qmailq.c.tmp auto_qmailq.c
  83. auto_qmailq_destdir.c: auto-str conf-qmailq
  84. - ./auto-str auto_qmailq_destdir "`head -1 conf-qmailq`" > \
  85. + ./auto-str auto_qmailq_destdir "`head -n 1 conf-qmailq`" > \
  86. auto_qmailq_destdir.c.tmp && mv auto_qmailq_destdir.c.tmp \
  87. auto_qmailq_destdir.c
  88. @@ -130,7 +130,7 @@
  89. ./compile auto_qmailq.c
  90. auto_qmailq_oldpath.c: auto-str conf-qmail
  91. - ./auto-str auto_qmailq_oldpath "`head -1 conf-qmail`"/bin/qmail-queue > \
  92. + ./auto-str auto_qmailq_oldpath "`head -n 1 conf-qmail`"/bin/qmail-queue > \
  93. auto_qmailq_oldpath.c.tmp && mv auto_qmailq_oldpath.c.tmp \
  94. auto_qmailq_oldpath.c
  95. @@ -138,57 +138,57 @@
  96. ./compile auto_qmailq_oldpath.c
  97. auto_qscanq.c: auto-str conf-pkg
  98. - ./auto-str auto_qscanq "`head -1 conf-pkg`"/command/qscanq > \
  99. + ./auto-str auto_qscanq "`head -n 1 conf-pkg`"/command/qscanq > \
  100. auto_qscanq.c.tmp && mv auto_qscanq.c.tmp auto_qscanq.c
  101. auto_qscanq.o: compile auto_qscanq.c
  102. ./compile auto_qscanq.c
  103. auto_qstdin.c: auto-strarr conf-pkg
  104. - ./auto-strarr auto_qstdin "`head -1 conf-pkg`"/command/qscanq-stdin > \
  105. + ./auto-strarr auto_qstdin "`head -n 1 conf-pkg`"/command/qscanq-stdin > \
  106. auto_qstdin.c.tmp && mv auto_qstdin.c.tmp auto_qstdin.c
  107. auto_qstdin.o: compile auto_qstdin.c
  108. ./compile auto_qstdin.c
  109. auto_retries.h: conf-retries
  110. - echo "#define MAX_RETRIES" "`head -1 < conf-retries`" > \
  111. + echo "#define MAX_RETRIES" "`head -n 1 < conf-retries`" > \
  112. auto_retries.h.tmp && mv auto_retries.h.tmp auto_retries.h
  113. auto_ripmime_cmd.c: auto-strarr conf-ripmime-cmd
  114. - ./auto-strarr auto_ripmime_cmd `head -1 conf-ripmime-cmd` > \
  115. + ./auto-strarr auto_ripmime_cmd `head -n 1 conf-ripmime-cmd` > \
  116. auto_ripmime_cmd.c.tmp && mv auto_ripmime_cmd.c.tmp auto_ripmime_cmd.c
  117. auto_ripmime_cmd.o: compile auto_ripmime_cmd.c
  118. ./compile auto_ripmime_cmd.c
  119. auto_rmcmd.c: auto-strarr conf-rm
  120. - ./auto-strarr auto_rmcmd `head -1 conf-rm` > auto_rmcmd.c.tmp && mv \
  121. + ./auto-strarr auto_rmcmd `head -n 1 conf-rm` > auto_rmcmd.c.tmp && mv \
  122. auto_rmcmd.c.tmp auto_rmcmd.c
  123. auto_rmcmd.o: compile auto_rmcmd.c
  124. ./compile auto_rmcmd.c
  125. auto_scancmd.c: auto-strarr conf-scancmd
  126. - ./auto-strarr auto_scancmd `head -1 conf-scancmd` > auto_scancmd.c.tmp \
  127. + ./auto-strarr auto_scancmd `head -n 1 conf-scancmd` > auto_scancmd.c.tmp \
  128. && mv auto_scancmd.c.tmp auto_scancmd.c
  129. auto_scancmd.o: compile auto_scancmd.c
  130. ./compile auto_scancmd.c
  131. auto_scanq.c: auto-str conf-spool
  132. - ./auto-str auto_scanq "`head -1 conf-spool`" > auto_scanq.c.tmp && mv \
  133. + ./auto-str auto_scanq "`head -n 1 conf-spool`" > auto_scanq.c.tmp && mv \
  134. auto_scanq.c.tmp auto_scanq.c
  135. auto_scanq.o: compile auto_scanq.c
  136. ./compile auto_scanq.c
  137. auto_scan_stdin.h: conf-scan-stdin
  138. - echo "#define SCAN_STDIN" "`head -1 < conf-scan-stdin`" > \
  139. + echo "#define SCAN_STDIN" "`head -n 1 < conf-scan-stdin`" > \
  140. auto_scan_stdin.h.tmp && mv auto_scan_stdin.h.tmp auto_scan_stdin.h
  141. auto_spool.c: auto-str conf-spool
  142. - ./auto-str auto_spool "`head -1 conf-spool`"/root/scanq > \
  143. + ./auto-str auto_spool "`head -n 1 conf-spool`"/root/scanq > \
  144. auto_spool.c.tmp && mv auto_spool.c.tmp auto_spool.c
  145. auto_spool.o: compile auto_spool.c
  146. @@ -207,7 +207,7 @@
  147. ./compile auto-str.c
  148. auto_svc.c: auto-str conf-svc
  149. - ./auto-str auto_svc "`head -1 conf-svc`" > auto_svc.c.tmp && mv \
  150. + ./auto-str auto_svc "`head -n 1 conf-svc`" > auto_svc.c.tmp && mv \
  151. auto_svc.c.tmp auto_svc.c
  152. auto_svc.o: compile auto_svc.c
  153. @@ -220,11 +220,11 @@
  154. ./compile auto-uid.c
  155. auto_uids.c: auto-uid conf-users
  156. - ./auto-str auto_user "`head -1 conf-users`" > auto_uids.c.tmp
  157. - ./auto-str auto_loguser "`head -2 conf-users|tail -1`" >> \
  158. + ./auto-str auto_user "`head -n 1 conf-users`" > auto_uids.c.tmp
  159. + ./auto-str auto_loguser "`head -n 2 conf-users|tail -n 1`" >> \
  160. auto_uids.c.tmp
  161. - ./auto-uid auto_uid "`head -1 conf-users`" >> auto_uids.c.tmp
  162. - ./auto-uid auto_loguid "`head -2 conf-users|tail -1`" >> auto_uids.c.tmp \
  163. + ./auto-uid auto_uid "`head -n 1 conf-users`" >> auto_uids.c.tmp
  164. + ./auto-uid auto_loguid "`head -n 2 conf-users|tail -n 1`" >> auto_uids.c.tmp \
  165. && mv auto_uids.c.tmp auto_uids.c
  166. auto_uids.o: compile auto_uids.c
  167. @@ -272,7 +272,7 @@
  168. choose: home warn-auto.sh choose.sh
  169. rm -f choose
  170. cat warn-auto.sh choose.sh \
  171. - | sed s}HOME}"`head -1 home`"}g \
  172. + | sed s}HOME}"`head -n 1 home`"}g \
  173. > choose
  174. chmod 755 choose
  175. --- ./src/rts.tests.orig 2005-11-28 18:30:54.000000000 -0300
  176. +++ ./src/rts.tests 2005-11-28 18:32:31.000000000 -0300
  177. @@ -8,7 +8,7 @@
  178. mkdir rts-tmp
  179. cd rts-tmp
  180. -U="`head -1 ../conf-users`"
  181. +U="`head -n 1 ../conf-users`"
  182. echo -n 'Running run-cleanq as' "$U"...
  183. setuidgid "$U" run-cleanq >2.err 2>&1
  184. if test $? -eq 0; then echo PASS; elif test $? -eq 1; then echo "FAIL: error";
  185. --- ./src/print-ld.sh.orig 2005-11-28 18:30:41.000000000 -0300
  186. +++ ./src/print-ld.sh 2005-11-28 18:32:19.000000000 -0300
  187. @@ -1,4 +1,4 @@
  188. -ld="`head -1 conf-ld`"
  189. +ld="`head -n 1 conf-ld`"
  190. systype="`cat systype`"
  191. cat warn-auto.sh
  192. --- ./package/compile.orig 2005-11-28 18:31:04.000000000 -0300
  193. +++ ./package/compile 2005-11-28 18:32:47.000000000 -0300
  194. @@ -7,7 +7,7 @@
  195. here=`env - PATH=$PATH pwd`
  196. # Verify that the scanner is selected
  197. -if head -1 src/conf-scancmd|egrep "SCANNER HERE" >/dev/null
  198. +if head -n 1 src/conf-scancmd|egrep "SCANNER HERE" >/dev/null
  199. then echo 'Edit src/conf-scancmd and try again.'; exit 1; fi
  200. # Create a place to do the build
  201. --- ./package/run.orig 2005-11-28 18:30:59.000000000 -0300
  202. +++ ./package/run 2005-11-28 18:32:41.000000000 -0300
  203. @@ -17,8 +17,8 @@
  204. fi
  205. CT="`which crontab`"
  206. -U="`head -1 ./src/conf-users`"
  207. -S="`head -1 ./src/conf-spool`"
  208. +U="`head -n 1 ./src/conf-users`"
  209. +S="`head -n 1 ./src/conf-spool`"
  210. if setuidgid "$U" "$CT" "$S"/root/crontab
  211. then
  212. echo 'OK: Installed crontab for' "$U"