patch-missing 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. --- Libnet-1.0.2a.orig/missing 1970-01-01 00:00:00.000000000 +0100
  2. +++ Libnet-1.0.2a/missing 2009-08-23 00:39:58.197624019 +0200
  3. @@ -0,0 +1,360 @@
  4. +#! /bin/sh
  5. +# Common stub for a few missing GNU programs while installing.
  6. +
  7. +scriptversion=2003-09-02.23
  8. +
  9. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003
  10. +# Free Software Foundation, Inc.
  11. +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  12. +
  13. +# This program is free software; you can redistribute it and/or modify
  14. +# it under the terms of the GNU General Public License as published by
  15. +# the Free Software Foundation; either version 2, or (at your option)
  16. +# any later version.
  17. +
  18. +# This program is distributed in the hope that it will be useful,
  19. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. +# GNU General Public License for more details.
  22. +
  23. +# You should have received a copy of the GNU General Public License
  24. +# along with this program; if not, write to the Free Software
  25. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  26. +# 02111-1307, USA.
  27. +
  28. +# As a special exception to the GNU General Public License, if you
  29. +# distribute this file as part of a program that contains a
  30. +# configuration script generated by Autoconf, you may include it under
  31. +# the same distribution terms that you use for the rest of that program.
  32. +
  33. +if test $# -eq 0; then
  34. + echo 1>&2 "Try \`$0 --help' for more information"
  35. + exit 1
  36. +fi
  37. +
  38. +run=:
  39. +
  40. +# In the cases where this matters, `missing' is being run in the
  41. +# srcdir already.
  42. +if test -f configure.ac; then
  43. + configure_ac=configure.ac
  44. +else
  45. + configure_ac=configure.in
  46. +fi
  47. +
  48. +msg="missing on your system"
  49. +
  50. +case "$1" in
  51. +--run)
  52. + # Try to run requested program, and just exit if it succeeds.
  53. + run=
  54. + shift
  55. + "$@" && exit 0
  56. + # Exit code 63 means version mismatch. This often happens
  57. + # when the user try to use an ancient version of a tool on
  58. + # a file that requires a minimum version. In this case we
  59. + # we should proceed has if the program had been absent, or
  60. + # if --run hadn't been passed.
  61. + if test $? = 63; then
  62. + run=:
  63. + msg="probably too old"
  64. + fi
  65. + ;;
  66. +esac
  67. +
  68. +# If it does not exist, or fails to run (possibly an outdated version),
  69. +# try to emulate it.
  70. +case "$1" in
  71. +
  72. + -h|--h|--he|--hel|--help)
  73. + echo "\
  74. +$0 [OPTION]... PROGRAM [ARGUMENT]...
  75. +
  76. +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
  77. +error status if there is no known handling for PROGRAM.
  78. +
  79. +Options:
  80. + -h, --help display this help and exit
  81. + -v, --version output version information and exit
  82. + --run try to run the given command, and emulate it if it fails
  83. +
  84. +Supported PROGRAM values:
  85. + aclocal touch file \`aclocal.m4'
  86. + autoconf touch file \`configure'
  87. + autoheader touch file \`config.h.in'
  88. + automake touch all \`Makefile.in' files
  89. + bison create \`y.tab.[ch]', if possible, from existing .[ch]
  90. + flex create \`lex.yy.c', if possible, from existing .c
  91. + help2man touch the output file
  92. + lex create \`lex.yy.c', if possible, from existing .c
  93. + makeinfo touch the output file
  94. + tar try tar, gnutar, gtar, then tar without non-portable flags
  95. + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  96. +
  97. +Send bug reports to <bug-automake@gnu.org>."
  98. + ;;
  99. +
  100. + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  101. + echo "missing $scriptversion (GNU Automake)"
  102. + ;;
  103. +
  104. + -*)
  105. + echo 1>&2 "$0: Unknown \`$1' option"
  106. + echo 1>&2 "Try \`$0 --help' for more information"
  107. + exit 1
  108. + ;;
  109. +
  110. + aclocal*)
  111. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  112. + # We have it, but it failed.
  113. + exit 1
  114. + fi
  115. +
  116. + echo 1>&2 "\
  117. +WARNING: \`$1' is $msg. You should only need it if
  118. + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  119. + to install the \`Automake' and \`Perl' packages. Grab them from
  120. + any GNU archive site."
  121. + touch aclocal.m4
  122. + ;;
  123. +
  124. + autoconf)
  125. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  126. + # We have it, but it failed.
  127. + exit 1
  128. + fi
  129. +
  130. + echo 1>&2 "\
  131. +WARNING: \`$1' is $msg. You should only need it if
  132. + you modified \`${configure_ac}'. You might want to install the
  133. + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
  134. + archive site."
  135. + touch configure
  136. + ;;
  137. +
  138. + autoheader)
  139. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  140. + # We have it, but it failed.
  141. + exit 1
  142. + fi
  143. +
  144. + echo 1>&2 "\
  145. +WARNING: \`$1' is $msg. You should only need it if
  146. + you modified \`acconfig.h' or \`${configure_ac}'. You might want
  147. + to install the \`Autoconf' and \`GNU m4' packages. Grab them
  148. + from any GNU archive site."
  149. + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
  150. + test -z "$files" && files="config.h"
  151. + touch_files=
  152. + for f in $files; do
  153. + case "$f" in
  154. + *:*) touch_files="$touch_files "`echo "$f" |
  155. + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  156. + *) touch_files="$touch_files $f.in";;
  157. + esac
  158. + done
  159. + touch $touch_files
  160. + ;;
  161. +
  162. + automake*)
  163. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  164. + # We have it, but it failed.
  165. + exit 1
  166. + fi
  167. +
  168. + echo 1>&2 "\
  169. +WARNING: \`$1' is $msg. You should only need it if
  170. + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  171. + You might want to install the \`Automake' and \`Perl' packages.
  172. + Grab them from any GNU archive site."
  173. + find . -type f -name Makefile.am -print |
  174. + sed 's/\.am$/.in/' |
  175. + while read f; do touch "$f"; done
  176. + ;;
  177. +
  178. + autom4te)
  179. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  180. + # We have it, but it failed.
  181. + exit 1
  182. + fi
  183. +
  184. + echo 1>&2 "\
  185. +WARNING: \`$1' is needed, but is $msg.
  186. + You might have modified some files without having the
  187. + proper tools for further handling them.
  188. + You can get \`$1' as part of \`Autoconf' from any GNU
  189. + archive site."
  190. +
  191. + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  192. + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  193. + if test -f "$file"; then
  194. + touch $file
  195. + else
  196. + test -z "$file" || exec >$file
  197. + echo "#! /bin/sh"
  198. + echo "# Created by GNU Automake missing as a replacement of"
  199. + echo "# $ $@"
  200. + echo "exit 0"
  201. + chmod +x $file
  202. + exit 1
  203. + fi
  204. + ;;
  205. +
  206. + bison|yacc)
  207. + echo 1>&2 "\
  208. +WARNING: \`$1' $msg. You should only need it if
  209. + you modified a \`.y' file. You may need the \`Bison' package
  210. + in order for those modifications to take effect. You can get
  211. + \`Bison' from any GNU archive site."
  212. + rm -f y.tab.c y.tab.h
  213. + if [ $# -ne 1 ]; then
  214. + eval LASTARG="\${$#}"
  215. + case "$LASTARG" in
  216. + *.y)
  217. + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  218. + if [ -f "$SRCFILE" ]; then
  219. + cp "$SRCFILE" y.tab.c
  220. + fi
  221. + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  222. + if [ -f "$SRCFILE" ]; then
  223. + cp "$SRCFILE" y.tab.h
  224. + fi
  225. + ;;
  226. + esac
  227. + fi
  228. + if [ ! -f y.tab.h ]; then
  229. + echo >y.tab.h
  230. + fi
  231. + if [ ! -f y.tab.c ]; then
  232. + echo 'main() { return 0; }' >y.tab.c
  233. + fi
  234. + ;;
  235. +
  236. + lex|flex)
  237. + echo 1>&2 "\
  238. +WARNING: \`$1' is $msg. You should only need it if
  239. + you modified a \`.l' file. You may need the \`Flex' package
  240. + in order for those modifications to take effect. You can get
  241. + \`Flex' from any GNU archive site."
  242. + rm -f lex.yy.c
  243. + if [ $# -ne 1 ]; then
  244. + eval LASTARG="\${$#}"
  245. + case "$LASTARG" in
  246. + *.l)
  247. + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  248. + if [ -f "$SRCFILE" ]; then
  249. + cp "$SRCFILE" lex.yy.c
  250. + fi
  251. + ;;
  252. + esac
  253. + fi
  254. + if [ ! -f lex.yy.c ]; then
  255. + echo 'main() { return 0; }' >lex.yy.c
  256. + fi
  257. + ;;
  258. +
  259. + help2man)
  260. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  261. + # We have it, but it failed.
  262. + exit 1
  263. + fi
  264. +
  265. + echo 1>&2 "\
  266. +WARNING: \`$1' is $msg. You should only need it if
  267. + you modified a dependency of a manual page. You may need the
  268. + \`Help2man' package in order for those modifications to take
  269. + effect. You can get \`Help2man' from any GNU archive site."
  270. +
  271. + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  272. + if test -z "$file"; then
  273. + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  274. + fi
  275. + if [ -f "$file" ]; then
  276. + touch $file
  277. + else
  278. + test -z "$file" || exec >$file
  279. + echo ".ab help2man is required to generate this page"
  280. + exit 1
  281. + fi
  282. + ;;
  283. +
  284. + makeinfo)
  285. + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
  286. + # We have makeinfo, but it failed.
  287. + exit 1
  288. + fi
  289. +
  290. + echo 1>&2 "\
  291. +WARNING: \`$1' is $msg. You should only need it if
  292. + you modified a \`.texi' or \`.texinfo' file, or any other file
  293. + indirectly affecting the aspect of the manual. The spurious
  294. + call might also be the consequence of using a buggy \`make' (AIX,
  295. + DU, IRIX). You might want to install the \`Texinfo' package or
  296. + the \`GNU make' package. Grab either from any GNU archive site."
  297. + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  298. + if test -z "$file"; then
  299. + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  300. + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
  301. + fi
  302. + touch $file
  303. + ;;
  304. +
  305. + tar)
  306. + shift
  307. + if test -n "$run"; then
  308. + echo 1>&2 "ERROR: \`tar' requires --run"
  309. + exit 1
  310. + fi
  311. +
  312. + # We have already tried tar in the generic part.
  313. + # Look for gnutar/gtar before invocation to avoid ugly error
  314. + # messages.
  315. + if (gnutar --version > /dev/null 2>&1); then
  316. + gnutar "$@" && exit 0
  317. + fi
  318. + if (gtar --version > /dev/null 2>&1); then
  319. + gtar "$@" && exit 0
  320. + fi
  321. + firstarg="$1"
  322. + if shift; then
  323. + case "$firstarg" in
  324. + *o*)
  325. + firstarg=`echo "$firstarg" | sed s/o//`
  326. + tar "$firstarg" "$@" && exit 0
  327. + ;;
  328. + esac
  329. + case "$firstarg" in
  330. + *h*)
  331. + firstarg=`echo "$firstarg" | sed s/h//`
  332. + tar "$firstarg" "$@" && exit 0
  333. + ;;
  334. + esac
  335. + fi
  336. +
  337. + echo 1>&2 "\
  338. +WARNING: I can't seem to be able to run \`tar' with the given arguments.
  339. + You may want to install GNU tar or Free paxutils, or check the
  340. + command line arguments."
  341. + exit 1
  342. + ;;
  343. +
  344. + *)
  345. + echo 1>&2 "\
  346. +WARNING: \`$1' is needed, and is $msg.
  347. + You might have modified some files without having the
  348. + proper tools for further handling them. Check the \`README' file,
  349. + it often tells you about the needed prerequisites for installing
  350. + this package. You may also peek at any GNU archive site, in case
  351. + some other package would contain this missing \`$1' program."
  352. + exit 1
  353. + ;;
  354. +esac
  355. +
  356. +exit 0
  357. +
  358. +# Local variables:
  359. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  360. +# time-stamp-start: "scriptversion="
  361. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  362. +# time-stamp-end: "$"
  363. +# End: