apache.patch 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. Index: build/config_vars.sh.in
  2. --- build/config_vars.sh.in.orig 2006-07-12 05:38:44 +0200
  3. +++ build/config_vars.sh.in 2007-06-28 22:12:16 +0200
  4. @@ -35,7 +35,7 @@
  5. APU_CONFIG=@APU_CONFIG@
  6. fi
  7. -APR_LIBTOOL="`${APR_CONFIG} --apr-libtool`"
  8. +APR_LIBTOOL="@prefix@/share/apache/build/libtool"
  9. APR_INCLUDEDIR="`${APR_CONFIG} --includedir`"
  10. APU_INCLUDEDIR="`${APU_CONFIG} --includedir`"
  11. Index: config.layout
  12. --- config.layout.orig 2004-11-21 19:50:36 +0100
  13. +++ config.layout 2007-06-28 22:12:16 +0200
  14. @@ -50,7 +50,7 @@
  15. iconsdir: ${datadir}/icons
  16. htdocsdir: ${datadir}/htdocs
  17. manualdir: ${datadir}/manual
  18. - cgidir: ${datadir}/cgi-bin
  19. + cgidir: ${exec_prefix}/cgi
  20. includedir: ${prefix}/include+
  21. localstatedir: ${prefix}/var+
  22. runtimedir: ${localstatedir}/run
  23. Index: configure
  24. --- configure.orig 2007-01-06 07:40:00 +0100
  25. +++ configure 2007-06-28 22:12:16 +0200
  26. @@ -2711,6 +2711,11 @@
  27. { (exit 1); exit 1; }; }
  28. fi
  29. +if test "x${USE_BUNDLED_APR}" != "x" ; then
  30. + apr_found=reconfig
  31. + apr_config=srclib/apr/apr-1-config
  32. +fi
  33. +
  34. if test "$apr_found" = "reconfig"; then
  35. # save our work to this point; this allows the sub-package to use it
  36. @@ -3047,6 +3052,11 @@
  37. { (exit 1); exit 1; }; }
  38. fi
  39. +if test "x${USE_BUNDLED_APR}" != "x" ; then
  40. + apu_found=reconfig
  41. + apu_config=srclib/apr-util/apu-1-config
  42. +fi
  43. +
  44. # Catch some misconfigurations:
  45. case ${apr_found}.${apu_found} in
  46. reconfig.yes)
  47. Index: docs/conf/mime.types
  48. --- docs/conf/mime.types.orig 2006-01-29 23:34:37.000000000 +0100
  49. +++ docs/conf/mime.types 2007-07-19 19:05:56.000000000 +0200
  50. @@ -54,6 +54,7 @@
  51. application/octet-stream bin dms lha lzh exe class so dll dmg
  52. application/oda oda
  53. application/ogg ogg
  54. +application/onenote onetoc onetoc2 onetmp onepkg
  55. application/parityfec
  56. application/pdf pdf
  57. application/pgp-encrypted
  58. @@ -248,10 +249,21 @@
  59. application/vnd.ms-artgalry
  60. application/vnd.ms-asf
  61. application/vnd.ms-excel xls
  62. +application/vnd.ms-excel.addin.macroEnabled.12 xlam
  63. +application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
  64. +application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
  65. +application/vnd.ms-excel.template.macroEnabled.12 xltm
  66. application/vnd.ms-lrm
  67. application/vnd.ms-powerpoint ppt
  68. +application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
  69. +application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
  70. +application/vnd.ms-powerpoint.slide.macroEnabled.12i sldm
  71. +application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
  72. +application/vnd.ms-powerpoint.template.macroEnabled.12 potm
  73. application/vnd.ms-project
  74. application/vnd.ms-tnef
  75. +application/vnd.ms-word.document.macroEnabled.12 docm
  76. +application/vnd.ms-word.template.macroEnabled.12 dotm
  77. application/vnd.ms-works
  78. application/vnd.ms-wpl
  79. application/vnd.mseq
  80. @@ -265,7 +277,31 @@
  81. application/vnd.novadigm.edm
  82. application/vnd.novadigm.edx
  83. application/vnd.novadigm.ext
  84. +application/vnd.oasis.opendocument.text odt
  85. +application/vnd.oasis.opendocument.spreadsheet ods
  86. +application/vnd.oasis.opendocument.presentation odp
  87. +application/vnd.oasis.opendocument.graphics odg
  88. +application/vnd.oasis.opendocument.chart odc
  89. +application/vnd.oasis.opendocument.formula odf
  90. +application/vnd.oasis.opendocument.image odi
  91. +application/vnd.oasis.opendocument.text-template ott
  92. +application/vnd.oasis.opendocument.spreadsheet-template ots
  93. +application/vnd.oasis.opendocument.presentation-template otp
  94. +application/vnd.oasis.opendocument.graphics-template otg
  95. +application/vnd.oasis.opendocument.chart-template otc
  96. +application/vnd.oasis.opendocument.formula-template oft
  97. +application/vnd.oasis.opendocument.image-template oti
  98. +application/vnd.oasis.opendocument.text-master odm
  99. +application/vnd.oasis.opendocument.text-web oth
  100. application/vnd.obn
  101. +application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
  102. +application/vnd.openxmlformats-officedocument.presentationml.slide sldx
  103. +application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
  104. +application/vnd.openxmlformats-officedocument.presentationml.template potx
  105. +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
  106. +application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
  107. +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
  108. +application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
  109. application/vnd.osa.netdeploy
  110. application/vnd.palm
  111. application/vnd.pg.format
  112. Index: docs/docroot/index.html
  113. --- docs/docroot/index.html.orig 2004-11-20 21:16:24 +0100
  114. +++ docs/docroot/index.html 2007-06-28 22:12:16 +0200
  115. @@ -1 +1,7 @@
  116. -<html><body><h1>It works!</h1></body></html>
  117. \ No newline at end of file
  118. +<html>
  119. + <body>
  120. + <h1>It works!</h1>
  121. + It works! Your <a href="http://openpkg.org/">OpenPKG</a> based <a href="http://httpd.apache.org/">Apache</a> HTTP server was successfully installed and started.<br/>
  122. + You now have to read the <a href="/apache-manual/">documentation</a> and configure it according to your local demands.
  123. + </body>
  124. +</html>
  125. Index: modules/generators/mod_autoindex.c
  126. --- modules/generators/mod_autoindex.c.orig 2006-07-12 05:38:44 +0200
  127. +++ modules/generators/mod_autoindex.c 2007-06-28 22:12:16 +0200
  128. @@ -1544,17 +1544,17 @@
  129. ++cols;
  130. }
  131. - ap_rputs("<th>", r);
  132. + ap_rputs("<th align=\"left\">", r);
  133. emit_link(r, "Name", K_NAME, keyid, direction,
  134. colargs, static_columns);
  135. if (!(autoindex_opts & SUPPRESS_LAST_MOD)) {
  136. - ap_rputs("</th><th>", r);
  137. + ap_rputs("</th><th align=\"right\">", r);
  138. emit_link(r, "Last modified", K_LAST_MOD, keyid, direction,
  139. colargs, static_columns);
  140. ++cols;
  141. }
  142. if (!(autoindex_opts & SUPPRESS_SIZE)) {
  143. - ap_rputs("</th><th>", r);
  144. + ap_rputs("</th><th align=\"right\">", r);
  145. emit_link(r, "Size", K_SIZE, keyid, direction,
  146. colargs, static_columns);
  147. ++cols;
  148. Index: server/Makefile.in
  149. --- server/Makefile.in.orig 2006-03-09 22:29:55 +0100
  150. +++ server/Makefile.in 2007-06-28 22:12:16 +0200
  151. @@ -56,7 +56,8 @@
  152. tmp=export_files_unsorted.txt; \
  153. rm -f $$tmp && touch $$tmp; \
  154. for dir in $(EXPORT_DIRS); do \
  155. - ls $$dir/*.h >> $$tmp; \
  156. + abs_dir=`cd $$dir && exec pwd`; \
  157. + ls $$abs_dir/*.h >> $$tmp; \
  158. done; \
  159. for dir in $(EXPORT_DIRS_APR); do \
  160. (ls $$dir/ap[ru].h $$dir/ap[ru]_*.h >> $$tmp 2>/dev/null); \
  161. Index: srclib/apr-util/crypto/getuuid.c
  162. --- srclib/apr-util/crypto/getuuid.c.orig 2006-04-14 20:01:58 +0200
  163. +++ srclib/apr-util/crypto/getuuid.c 2007-06-28 22:12:16 +0200
  164. @@ -131,7 +131,7 @@
  165. /* crap. this isn't crypto quality, but it will be Good Enough */
  166. - get_system_time(&time_now);
  167. + time_now = apr_time_now();
  168. srand((unsigned int)(((time_now >> 32) ^ time_now) & 0xffffffff));
  169. return rand() & 0x0FFFF;
  170. Index: support/Makefile.in
  171. --- support/Makefile.in.orig 2005-07-07 01:15:34 +0200
  172. +++ support/Makefile.in 2007-06-28 22:16:54 +0200
  173. @@ -22,12 +22,6 @@
  174. chmod 755 $(DESTDIR)$(sbindir)/$$i; \
  175. fi ; \
  176. done
  177. - @if test -f "$(builddir)/envvars-std"; then \
  178. - cp -p envvars-std $(DESTDIR)$(sbindir); \
  179. - if test ! -f $(DESTDIR)$(sbindir)/envvars; then \
  180. - cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
  181. - fi ; \
  182. - fi
  183. htpasswd_OBJECTS = htpasswd.lo
  184. htpasswd: $(htpasswd_OBJECTS)
  185. Index: support/apachectl.in
  186. --- support/apachectl.in.orig 2006-07-12 05:38:44 +0200
  187. +++ support/apachectl.in 2007-06-28 22:15:56 +0200
  188. @@ -43,11 +43,6 @@
  189. # the path to your httpd binary, including options if necessary
  190. HTTPD='@exp_sbindir@/@progname@'
  191. #
  192. -# pick up any necessary environment variables
  193. -if test -f @exp_sbindir@/envvars; then
  194. - . @exp_sbindir@/envvars
  195. -fi
  196. -#
  197. # a command that outputs a formatted text version of the HTML at the
  198. # url given on the command line. Designed for lynx, however other
  199. # programs may work.
  200. Index: support/apxs.in
  201. --- support/apxs.in.orig 2006-07-12 05:38:44 +0200
  202. +++ support/apxs.in 2007-06-28 22:14:31 +0200
  203. @@ -190,9 +190,6 @@
  204. my $httpd = get_vars("sbindir") . "/" . get_vars("progname");
  205. $httpd = eval qq("$httpd");
  206. $httpd = eval qq("$httpd");
  207. -my $envvars = get_vars("sbindir") . "/envvars";
  208. -$envvars = eval qq("$envvars");
  209. -$envvars = eval qq("$envvars");
  210. #allow apxs to be run from the source tree, before installation
  211. if ($0 =~ m:support/apxs$:) {
  212. @@ -204,7 +201,7 @@
  213. exit 1;
  214. }
  215. -unless (grep /mod_so/, `. $envvars && $httpd -l`) {
  216. +unless (grep /mod_so/, `$httpd -l`) {
  217. error("Sorry, no shared object support for Apache");
  218. error("available under your platform. Make sure");
  219. error("the Apache module mod_so is compiled into");
  220. @@ -338,8 +335,7 @@
  221. exit(1);
  222. }
  223. -my $libtool = `$apr_config --apr-libtool`;
  224. -chomp($libtool);
  225. +my $libtool = "$prefix/share/apache/build/libtool";
  226. my $apr_includedir = `$apr_config --includes`;
  227. chomp($apr_includedir);