patch-missing 10 KB

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