apache.patch 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. Index: build/config_vars.sh.in
  2. --- build/config_vars.sh.in.orig 2008-02-05 00:00:07 +0100
  3. +++ build/config_vars.sh.in 2008-06-13 23:59:56 +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 2008-06-13 23:59:56 +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 2008-06-10 21:18:00 +0200
  25. +++ configure 2008-06-13 23:59:56 +0200
  26. @@ -3591,6 +3591,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. @@ -3950,6 +3955,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 2008-01-02 23:10:01 +0100
  49. +++ docs/conf/mime.types 2008-06-13 23:59:56 +0200
  50. @@ -81,6 +81,7 @@
  51. application/mbms-user-service-description+xml
  52. application/mbox mbox
  53. application/mediaservercontrol+xml mscml
  54. +application/metalink+xml metalink
  55. application/mikey
  56. application/moss-keys
  57. application/moss-signature
  58. @@ -102,6 +103,7 @@
  59. application/oda oda
  60. application/oebps-package+xml
  61. application/ogg ogg
  62. +application/onenote onetoc onetoc2 onetmp onepkg
  63. application/parityfec
  64. application/pdf pdf
  65. application/pgp-encrypted pgp
  66. @@ -389,14 +391,25 @@
  67. application/vnd.ms-asf asf
  68. application/vnd.ms-cab-compressed cab
  69. application/vnd.ms-excel xls xlm xla xlc xlt xlw
  70. +application/vnd.ms-excel.addin.macroEnabled.12 xlam
  71. +application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
  72. +application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
  73. +application/vnd.ms-excel.template.macroEnabled.12 xltm
  74. application/vnd.ms-fontobject eot
  75. application/vnd.ms-htmlhelp chm
  76. application/vnd.ms-ims ims
  77. application/vnd.ms-lrm lrm
  78. application/vnd.ms-playready.initiator+xml
  79. application/vnd.ms-powerpoint ppt pps pot
  80. +application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
  81. +application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
  82. +application/vnd.ms-powerpoint.slide.macroEnabled.12i sldm
  83. +application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
  84. +application/vnd.ms-powerpoint.template.macroEnabled.12 potm
  85. application/vnd.ms-project mpp mpt
  86. application/vnd.ms-tnef
  87. +application/vnd.ms-word.document.macroEnabled.12 docm
  88. +application/vnd.ms-word.template.macroEnabled.12 dotm
  89. application/vnd.ms-wmdrm.lic-chlg-req
  90. application/vnd.ms-wmdrm.lic-resp
  91. application/vnd.ms-wmdrm.meter-chlg-req
  92. @@ -455,6 +468,14 @@
  93. application/vnd.oasis.opendocument.text-template ott
  94. application/vnd.oasis.opendocument.text-web oth
  95. application/vnd.obn
  96. +application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
  97. +application/vnd.openxmlformats-officedocument.presentationml.slide sldx
  98. +application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
  99. +application/vnd.openxmlformats-officedocument.presentationml.template potx
  100. +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
  101. +application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
  102. +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
  103. +application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
  104. application/vnd.olpc-sugar xo
  105. application/vnd.oma-scws-config
  106. application/vnd.oma-scws-http-request
  107. Index: docs/docroot/index.html
  108. --- docs/docroot/index.html.orig 2004-11-20 21:16:24 +0100
  109. +++ docs/docroot/index.html 2008-06-13 23:59:56 +0200
  110. @@ -1 +1,7 @@
  111. -<html><body><h1>It works!</h1></body></html>
  112. \ No newline at end of file
  113. +<html>
  114. + <body>
  115. + <h1>It works!</h1>
  116. + 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/>
  117. + You now have to read the <a href="/apache-manual/">documentation</a> and configure it according to your local demands.
  118. + </body>
  119. +</html>
  120. Index: modules/generators/mod_autoindex.c
  121. --- modules/generators/mod_autoindex.c.orig 2007-12-09 15:46:56 +0100
  122. +++ modules/generators/mod_autoindex.c 2008-06-13 23:59:56 +0200
  123. @@ -1564,17 +1564,17 @@
  124. ++cols;
  125. }
  126. - ap_rputs("<th>", r);
  127. + ap_rputs("<th align=\"left\">", r);
  128. emit_link(r, "Name", K_NAME, keyid, direction,
  129. colargs, static_columns);
  130. if (!(autoindex_opts & SUPPRESS_LAST_MOD)) {
  131. - ap_rputs("</th><th>", r);
  132. + ap_rputs("</th><th align=\"right\">", r);
  133. emit_link(r, "Last modified", K_LAST_MOD, keyid, direction,
  134. colargs, static_columns);
  135. ++cols;
  136. }
  137. if (!(autoindex_opts & SUPPRESS_SIZE)) {
  138. - ap_rputs("</th><th>", r);
  139. + ap_rputs("</th><th align=\"right\">", r);
  140. emit_link(r, "Size", K_SIZE, keyid, direction,
  141. colargs, static_columns);
  142. ++cols;
  143. Index: server/Makefile.in
  144. --- server/Makefile.in.orig 2006-03-09 22:29:55 +0100
  145. +++ server/Makefile.in 2008-06-13 23:59:56 +0200
  146. @@ -56,7 +56,8 @@
  147. tmp=export_files_unsorted.txt; \
  148. rm -f $$tmp && touch $$tmp; \
  149. for dir in $(EXPORT_DIRS); do \
  150. - ls $$dir/*.h >> $$tmp; \
  151. + abs_dir=`cd $$dir && exec pwd`; \
  152. + ls $$abs_dir/*.h >> $$tmp; \
  153. done; \
  154. for dir in $(EXPORT_DIRS_APR); do \
  155. (ls $$dir/ap[ru].h $$dir/ap[ru]_*.h >> $$tmp 2>/dev/null); \
  156. Index: support/Makefile.in
  157. --- support/Makefile.in.orig 2005-07-07 01:15:34 +0200
  158. +++ support/Makefile.in 2008-06-13 23:59:56 +0200
  159. @@ -22,12 +22,6 @@
  160. chmod 755 $(DESTDIR)$(sbindir)/$$i; \
  161. fi ; \
  162. done
  163. - @if test -f "$(builddir)/envvars-std"; then \
  164. - cp -p envvars-std $(DESTDIR)$(sbindir); \
  165. - if test ! -f $(DESTDIR)$(sbindir)/envvars; then \
  166. - cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
  167. - fi ; \
  168. - fi
  169. htpasswd_OBJECTS = htpasswd.lo
  170. htpasswd: $(htpasswd_OBJECTS)
  171. Index: support/apachectl.in
  172. --- support/apachectl.in.orig 2006-07-12 05:38:44 +0200
  173. +++ support/apachectl.in 2008-06-13 23:59:56 +0200
  174. @@ -43,11 +43,6 @@
  175. # the path to your httpd binary, including options if necessary
  176. HTTPD='@exp_sbindir@/@progname@'
  177. #
  178. -# pick up any necessary environment variables
  179. -if test -f @exp_sbindir@/envvars; then
  180. - . @exp_sbindir@/envvars
  181. -fi
  182. -#
  183. # a command that outputs a formatted text version of the HTML at the
  184. # url given on the command line. Designed for lynx, however other
  185. # programs may work.
  186. Index: support/apxs.in
  187. --- support/apxs.in.orig 2006-07-12 05:38:44 +0200
  188. +++ support/apxs.in 2008-06-13 23:59:56 +0200
  189. @@ -190,9 +190,6 @@
  190. my $httpd = get_vars("sbindir") . "/" . get_vars("progname");
  191. $httpd = eval qq("$httpd");
  192. $httpd = eval qq("$httpd");
  193. -my $envvars = get_vars("sbindir") . "/envvars";
  194. -$envvars = eval qq("$envvars");
  195. -$envvars = eval qq("$envvars");
  196. #allow apxs to be run from the source tree, before installation
  197. if ($0 =~ m:support/apxs$:) {
  198. @@ -204,7 +201,7 @@
  199. exit 1;
  200. }
  201. -unless (grep /mod_so/, `. $envvars && $httpd -l`) {
  202. +unless (grep /mod_so/, `$httpd -l`) {
  203. error("Sorry, no shared object support for Apache");
  204. error("available under your platform. Make sure");
  205. error("the Apache module mod_so is compiled into");
  206. @@ -338,8 +335,7 @@
  207. exit(1);
  208. }
  209. -my $libtool = `$apr_config --apr-libtool`;
  210. -chomp($libtool);
  211. +my $libtool = "$prefix/share/apache/build/libtool";
  212. my $apr_includedir = `$apr_config --includes`;
  213. chomp($apr_includedir);