kwiki.patch 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. Index: Kwiki-0.38/lib/Kwiki/Command.pm
  2. --- Kwiki-0.38/lib/Kwiki/Command.pm.orig 2005-04-03 12:50:54 +0200
  3. +++ Kwiki-0.38/lib/Kwiki/Command.pm 2005-04-05 19:21:59 +0200
  4. @@ -112,7 +112,7 @@
  5. next unless $self->is_kwiki_dir($dir);
  6. $self->msg('Updating ', $dir->absolute->pathname, "\n");
  7. $dir->chdir;
  8. - system("kwiki -quiet -update");
  9. + system("@l_prefix@/bin/kwiki -quiet -update");
  10. }
  11. }
  12. Index: Kwiki-0.38/lib/Kwiki/Config.pm
  13. --- Kwiki-0.38/lib/Kwiki/Config.pm.orig 2005-03-25 07:44:44 +0100
  14. +++ Kwiki-0.38/lib/Kwiki/Config.pm 2005-04-05 19:21:59 +0200
  15. @@ -174,11 +174,11 @@
  16. # Put overrides in the top level config.yaml
  17. # See: http://www.kwiki.org/?ChangingConfigDotYaml
  18. #
  19. -site_title: Kwiki
  20. +site_title: OpenPKG Kwiki
  21. main_page: HomePage
  22. database_directory: database
  23. logo_image: palm90.png
  24. -script_name: index.cgi
  25. +script_name:
  26. __!config.yaml__
  27. # Put all local overrides/modifications to the config/* files in this
  28. # file. Do not modify any of the files under the config/ directory as
  29. Index: Kwiki-0.38/lib/Kwiki/Display.pm
  30. --- Kwiki-0.38/lib/Kwiki/Display.pm.orig 2005-02-24 17:07:18 +0100
  31. +++ Kwiki-0.38/lib/Kwiki/Display.pm 2005-04-05 19:21:59 +0200
  32. @@ -86,7 +86,7 @@
  33. __template/tt2/display_changed_by.html__
  34. [% IF self.preferences.display_changed_by.value %]
  35. [% page = hub.pages.current %]
  36. -<div style="background-color: #eee">
  37. +<div class="changedby">
  38. <em>
  39. Last changed by [% page.edit_by_link %] at [% page.edit_time %]
  40. </em>
  41. Index: Kwiki-0.38/lib/Kwiki/Formatter.pm
  42. --- Kwiki-0.38/lib/Kwiki/Formatter.pm.orig 2005-03-20 07:55:13 +0100
  43. +++ Kwiki-0.38/lib/Kwiki/Formatter.pm 2005-04-05 19:21:59 +0200
  44. @@ -345,7 +345,7 @@
  45. package Kwiki::Formatter::HyperLink;
  46. use base 'Spoon::Formatter::Unit';
  47. const formatter_id => 'hyper';
  48. -our $pattern = qr{\w+:(?://|\?)\S+?(?=[),.:;]?\s|$)};
  49. +our $pattern = qr{(?:\w+:(?://|\?)|http:)\S+?(?=[),.:;]?\s|$)};
  50. const pattern_start => qr/$pattern|!$pattern/;
  51. sub html {
  52. @@ -361,7 +361,7 @@
  53. use base 'Spoon::Formatter::Unit';
  54. const formatter_id => 'titlehyper';
  55. const pattern_start =>
  56. - qr{\[(?:\s*([^\]]+)\s+)?(\w+:(?://|\?)[^\]\s]+)(?:\s+([^\]]+)\s*)?\]};
  57. + qr{\[(?:\s*([^\]]+)\s+)?((?:\w+:(?://|\?)|http:)[^\]\s]+)(?:\s+([^\]]+)\s*)?\]};
  58. sub html {
  59. my $text = $self->escape_html($self->matched);
  60. Index: Kwiki-0.38/lib/Kwiki/Pages.pm
  61. --- Kwiki-0.38/lib/Kwiki/Pages.pm.orig 2005-03-17 22:15:31 +0100
  62. +++ Kwiki-0.38/lib/Kwiki/Pages.pm 2005-04-05 19:21:59 +0200
  63. @@ -290,17 +290,17 @@
  64. __!database/HomePage__
  65. === Welcome to Your New Kwiki!
  66. -You have successfully installed a new Kwiki. Now you should /edit this page/ and start adding NewPages. For help on Kwiki syntax and other Kwiki issues, visit http://www.kwiki.org/?KwikiHelpIndex.
  67. +You have successfully installed a new [http://en.wikipedia.org/wiki/Wiki Wiki] with [http://www.openpkg.org/ OpenPKG] [http://www.kwiki.org/ Kwiki].
  68. +Now you should [http:?action=edit&page_name=HomePage edit this page]
  69. +and start [http:?action=new_page adding new pages] to this Kwiki.
  70. +Use the [http:admin/ administrator view] for setting the privacy level of your Kwiki pages.
  71. -If this installation looks more mundane than you had expected after visiting Kwiki sites like http://www.kwiki.org, you need to install some *Kwiki plugins*. Some of the basic plugins you might want are:
  72. +For help on Kwiki syntax see *KwikiFormattingRules* and try it out in the *KwikiSandbox*.
  73. +For help on /other/ Kwiki issues, visit [http://www.kwiki.org/?KwikiHelpIndex KwikiHelpIndex].
  74. -* Kwiki::!RecentChanges
  75. -* Kwiki::Search
  76. -* Kwiki::!UserPreferences
  77. -* Kwiki::!UserName
  78. -* Kwiki::Archive::Rcs
  79. -* Kwiki::Revisions
  80. +If this installation looks more mundane than you had expected after visiting Kwiki
  81. +sites like http://www.kwiki.org/, you need to activate more *Kwiki plugins* in
  82. +the Kwiki "[=plugins]" file.
  83. -These plugin modules are available on [CPAN http://search.cpan.org/search?query=kwiki&mode=dist]. Visit http://www.kwiki.org/?KwikiPluginInstallation to learn more about installing plugins.
  84. +--[http://www.kwiki.org/?BrianIngerson Brian Ingerson] (Kwiki author) and the [http://www.openpkg.org/ OpenPKG] team (Kwiki packaging).
  85. ---[http://www.kwiki.org/?BrianIngerson Brian Ingerson]
  86. Index: Kwiki-0.38/lib/Kwiki/Theme/Basic.pm
  87. --- Kwiki-0.38/lib/Kwiki/Theme/Basic.pm.orig 2005-02-24 17:07:17 +0100
  88. +++ Kwiki-0.38/lib/Kwiki/Theme/Basic.pm 2005-04-05 19:24:56 +0200
  89. @@ -36,6 +36,7 @@
  90. <td id="group_1">
  91. <div class="navigation">
  92. [% INCLUDE theme_title_pane.html %]
  93. +<p/>
  94. [% INCLUDE theme_toolbar_pane.html %]
  95. [% INCLUDE theme_status_pane.html %]
  96. </div>
  97. @@ -71,6 +75,9 @@
  98. #group {
  99. width: 100%;
  100. + background: #ffffff;
  101. + padding: 20px 40px 20px 40px;
  102. + border: 1px solid #000000;
  103. }
  104. #group_1 {
  105. @@ -83,7 +90,9 @@
  106. }
  107. body {
  108. - background:#fff;
  109. + background: #cccccc;
  110. + border: 10px solid #cccccc;
  111. + margin: 0px;
  112. }
  113. h1, h2, h3, h4, h5, h6 {
  114. Index: Kwiki-Diff-0.02/lib/Kwiki/Diff.pm
  115. --- Kwiki-Diff-0.02/lib/Kwiki/Diff.pm.orig 2005-01-30 15:44:26 +0100
  116. +++ Kwiki-Diff-0.02/lib/Kwiki/Diff.pm 2005-04-05 19:21:59 +0200
  117. @@ -177,6 +177,11 @@
  118. <img src="icons/gnome/image/diff.png" alt="Differences" />
  119. <!-- END diff_button_icon.html -->
  120. +__icons/crystal/template/diff_button_icon.html__
  121. +<!-- BEGIN diff_button_icon.html -->
  122. +<img src="icons/crystal/image/revisions.png" alt="Differences" />
  123. +<!-- END diff_button_icon.html -->
  124. +
  125. __template/tt2/diff_controls.html__
  126. <!-- BEGIN diff_controls.html -->
  127. <a href="[% script_name %]?action=revisions&page_name=[% page_uri %]&revision_id=[% revision_id %]" accesskey="r" title="Revision [% revision_id %]">
  128. Index: Kwiki-Favorites-0.13/lib/Kwiki/Favorites.pm
  129. --- Kwiki-Favorites-0.13/lib/Kwiki/Favorites.pm.orig 2005-01-11 17:03:22 +0100
  130. +++ Kwiki-Favorites-0.13/lib/Kwiki/Favorites.pm 2005-04-05 19:21:59 +0200
  131. @@ -111,7 +111,7 @@
  132. }
  133. </script>
  134. <form>
  135. -<input type="checkbox" name="favorite" onchange="favorites_change(this)" [% IF hub.cookie.jar.favorites.$page_name %]checked[% END %] />
  136. +<input type="checkbox" class="favorite" name="favorite" onchange="favorites_change(this)" [% IF hub.cookie.jar.favorites.$page_name %]checked[% END %] />
  137. Favorite?
  138. <iframe height="0" width="0" frameborder="0"></iframe>
  139. </form>
  140. Index: Kwiki-ForeignLinkGlyphs-0.01/lib/Kwiki/ForeignLinkGlyphs.pm
  141. --- Kwiki-ForeignLinkGlyphs-0.01/lib/Kwiki/ForeignLinkGlyphs.pm.orig 2004-08-26 16:59:17 +0200
  142. +++ Kwiki-ForeignLinkGlyphs-0.01/lib/Kwiki/ForeignLinkGlyphs.pm 2005-04-05 19:21:59 +0200
  143. @@ -108,6 +108,6 @@
  144. Allow from all
  145. __plugin/foreignlinkglyphs/foreignlinkglyph.png__
  146. -iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGAQMAAAGtBU2dAAAABlBMVEX/AAD///9BHTQRAAAAB3RJ
  147. -TUUH0gsbCAwXQp9teAAAABV0RVh0U29mdHdhcmUAWFBhaW50IDIuNi4yxFiwnAAAABpJREFUeJxj
  148. -aGBgYDjAAAINYJjA8IChg2EOADOMBSV4TVvKAAAAAElFTkSuQmCC
  149. +iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGAQMAAADaAn0LAAAABlBMVEX/////AADrWueTAAAAAXRS
  150. +TlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfVAQ4RAjhU
  151. +SGrkAAAAFElEQVQI12OwYZBhsGEoYUhgSAAACQQByefTiF8AAAAASUVORK5CYII=
  152. Index: Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm
  153. --- Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm.orig 2005-01-25 21:49:23 +0100
  154. +++ Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm 2005-04-05 19:21:59 +0200
  155. @@ -66,7 +66,7 @@
  156. $msg->print(\*TEMPFILE);
  157. close TEMPFILE;
  158. } else {
  159. - $msg->send;
  160. + $msg->send("sendmail", "@l_prefix@/sbin/sendmail -t -oi -oem");
  161. }
  162. }
  163. Index: Kwiki-RecentChangesRSS-0.06/lib/Kwiki/RecentChangesRSS.pm
  164. --- Kwiki-RecentChangesRSS-0.06/lib/Kwiki/RecentChangesRSS.pm.orig 2005-02-26 02:02:30 +0100
  165. +++ Kwiki-RecentChangesRSS-0.06/lib/Kwiki/RecentChangesRSS.pm 2005-04-05 19:21:59 +0200
  166. @@ -311,6 +311,7 @@
  167. rss_skipHours:
  168. rss_skipDays:
  169. rss_display_page: 0
  170. +rss_icon: icons/xml.png
  171. __template/tt2/rss_button.html__
  172. <!-- BEGIN rss_button.html -->
  173. <a href="[% script_name %]?action=RecentChangesRSS" accesskey="c" title="RSS">
  174. @@ -323,7 +324,7 @@
  175. <!-- END rss_button_icon.html -->
  176. __template/tt2/rss_screen.xml__
  177. [% xml %]
  178. -__xml.png__
  179. +__icons/xml.png__
  180. iVBORw0KGgoAAAANSUhEUgAAACQAAAAOBAMAAAC1GaP7AAAAMFBMVEU9GgL1sYOeQgLmhkL22sfd
  181. XQfcdC/7yaf+/Pt+MgLDUgbupHL+gi7+ZgP+lE/OZiLJkrvQAAAAAWJLR0QAiAUdSAAAAJlJREFU
  182. eNpjdDdgQAX/Gd9+QBP6w8SAAYBC/1YzcBdYr2eYvYG7ACTEAhQ98JVb9vRvBoG/DD+gqhga2Jmd
  183. Index: Kwiki-Search-0.12/lib/Kwiki/Search.pm
  184. --- Kwiki-Search-0.12/lib/Kwiki/Search.pm.orig 2004-12-16 00:38:12 +0100
  185. +++ Kwiki-Search-0.12/lib/Kwiki/Search.pm 2005-04-05 19:21:59 +0200
  186. @@ -72,7 +72,7 @@
  187. =cut
  188. __template/tt2/search_box.html__
  189. -<form method="post" action="[% script_name %]" enctype="application/x-www-form-urlencoded" style="display: inline">
  190. +<form method="post" action="[% script_name %]" enctype="application/x-www-form-urlencoded" class="search" style="display: inline">
  191. <input type="text" name="search_term" size="8" value="Search" onfocus="this.value=''" />
  192. <input type="hidden" name="action" value="search" />
  193. </form>