kwiki.patch 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. Index: Kwiki-0.37/lib/Kwiki/Command.pm
  2. --- Kwiki-0.37/lib/Kwiki/Command.pm.orig 2005-01-11 11:16:11 +0100
  3. +++ Kwiki-0.37/lib/Kwiki/Command.pm 2005-01-31 13:31:59 +0100
  4. @@ -114,7 +114,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.37/lib/Kwiki/Config.pm
  13. --- Kwiki-0.37/lib/Kwiki/Config.pm.orig 2005-01-11 16:51:34 +0100
  14. +++ Kwiki-0.37/lib/Kwiki/Config.pm 2005-01-31 13:31:59 +0100
  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.37/lib/Kwiki/Display.pm
  30. --- Kwiki-0.37/lib/Kwiki/Display.pm.orig 2005-01-11 11:16:46 +0100
  31. +++ Kwiki-0.37/lib/Kwiki/Display.pm 2005-01-31 13:31:59 +0100
  32. @@ -84,7 +84,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.37/lib/Kwiki/Formatter.pm
  42. --- Kwiki-0.37/lib/Kwiki/Formatter.pm.orig 2005-01-11 11:16:46 +0100
  43. +++ Kwiki-0.37/lib/Kwiki/Formatter.pm 2005-01-31 13:31:59 +0100
  44. @@ -322,7 +322,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. @@ -338,7 +338,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.37/lib/Kwiki/Pages.pm
  61. --- Kwiki-0.37/lib/Kwiki/Pages.pm.orig 2004-12-28 21:54:51 +0100
  62. +++ Kwiki-0.37/lib/Kwiki/Pages.pm 2005-01-31 13:31:59 +0100
  63. @@ -287,17 +287,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.37/lib/Kwiki/Theme/Basic.pm
  87. --- Kwiki-0.37/lib/Kwiki/Theme/Basic.pm.orig 2004-12-02 03:15:06 +0100
  88. +++ Kwiki-0.37/lib/Kwiki/Theme/Basic.pm 2005-01-31 13:31:59 +0100
  89. @@ -42,6 +42,8 @@
  90. </h1>
  91. </div>
  92. +<p/>
  93. +
  94. <div id="toolbar_pane">
  95. [% hub.toolbar.html %]
  96. [% IF hub.have_plugin('user_name') %]
  97. @@ -76,6 +78,9 @@
  98. <div id="widgets_pane">
  99. [% hub.widgets.html %]
  100. +[% IF hub.have_plugin('infobox') %]
  101. +[% hub.infobox.html %]
  102. +[% END %]
  103. </div>
  104. </div><!-- navigation -->
  105. @@ -94,6 +99,9 @@
  106. #group {
  107. width: 100%;
  108. + background: #ffffff;
  109. + padding: 20px 40px 20px 40px;
  110. + border: 1px solid #000000;
  111. }
  112. #group_1 {
  113. @@ -106,7 +114,9 @@
  114. }
  115. body {
  116. - background:#fff;
  117. + background: #cccccc;
  118. + border: 10px solid #cccccc;
  119. + margin: 0px;
  120. }
  121. h1, h2, h3, h4, h5, h6 {
  122. Index: Kwiki-Diff-0.02/lib/Kwiki/Diff.pm
  123. --- Kwiki-Diff-0.02/lib/Kwiki/Diff.pm.orig 2005-01-30 15:44:26 +0100
  124. +++ Kwiki-Diff-0.02/lib/Kwiki/Diff.pm 2005-01-31 13:31:59 +0100
  125. @@ -177,6 +177,11 @@
  126. <img src="icons/gnome/image/diff.png" alt="Differences" />
  127. <!-- END diff_button_icon.html -->
  128. +__icons/crystal/template/diff_button_icon.html__
  129. +<!-- BEGIN diff_button_icon.html -->
  130. +<img src="icons/crystal/image/revisions.png" alt="Differences" />
  131. +<!-- END diff_button_icon.html -->
  132. +
  133. __template/tt2/diff_controls.html__
  134. <!-- BEGIN diff_controls.html -->
  135. <a href="[% script_name %]?action=revisions&page_name=[% page_uri %]&revision_id=[% revision_id %]" accesskey="r" title="Revision [% revision_id %]">
  136. Index: Kwiki-Favorites-0.13/lib/Kwiki/Favorites.pm
  137. --- Kwiki-Favorites-0.13/lib/Kwiki/Favorites.pm.orig 2005-01-11 17:03:22 +0100
  138. +++ Kwiki-Favorites-0.13/lib/Kwiki/Favorites.pm 2005-01-31 13:31:59 +0100
  139. @@ -111,7 +111,7 @@
  140. }
  141. </script>
  142. <form>
  143. -<input type="checkbox" name="favorite" onchange="favorites_change(this)" [% IF hub.cookie.jar.favorites.$page_name %]checked[% END %] />
  144. +<input type="checkbox" class="favorite" name="favorite" onchange="favorites_change(this)" [% IF hub.cookie.jar.favorites.$page_name %]checked[% END %] />
  145. Favorite?
  146. <iframe height="0" width="0" frameborder="0"></iframe>
  147. </form>
  148. Index: Kwiki-ForeignLinkGlyphs-0.01/lib/Kwiki/ForeignLinkGlyphs.pm
  149. --- Kwiki-ForeignLinkGlyphs-0.01/lib/Kwiki/ForeignLinkGlyphs.pm.orig 2004-08-26 16:59:17 +0200
  150. +++ Kwiki-ForeignLinkGlyphs-0.01/lib/Kwiki/ForeignLinkGlyphs.pm 2005-01-31 13:31:59 +0100
  151. @@ -108,6 +108,6 @@
  152. Allow from all
  153. __plugin/foreignlinkglyphs/foreignlinkglyph.png__
  154. -iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGAQMAAAGtBU2dAAAABlBMVEX/AAD///9BHTQRAAAAB3RJ
  155. -TUUH0gsbCAwXQp9teAAAABV0RVh0U29mdHdhcmUAWFBhaW50IDIuNi4yxFiwnAAAABpJREFUeJxj
  156. -aGBgYDjAAAINYJjA8IChg2EOADOMBSV4TVvKAAAAAElFTkSuQmCC
  157. +iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGAQMAAADaAn0LAAAABlBMVEX/////AADrWueTAAAAAXRS
  158. +TlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfVAQ4RAjhU
  159. +SGrkAAAAFElEQVQI12OwYZBhsGEoYUhgSAAACQQByefTiF8AAAAASUVORK5CYII=
  160. Index: Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm
  161. --- Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm.orig 2005-01-25 21:49:23 +0100
  162. +++ Kwiki-Notify-Mail-0.03/lib/Kwiki/Notify/Mail.pm 2005-01-31 13:31:59 +0100
  163. @@ -66,7 +66,7 @@
  164. $msg->print(\*TEMPFILE);
  165. close TEMPFILE;
  166. } else {
  167. - $msg->send;
  168. + $msg->send("sendmail", "@l_prefix@/sbin/sendmail -t -oi -oem");
  169. }
  170. }
  171. Index: Kwiki-RecentChangesRSS-0.06/lib/Kwiki/RecentChangesRSS.pm
  172. --- Kwiki-RecentChangesRSS-0.06/lib/Kwiki/RecentChangesRSS.pm.orig 2004-12-11 22:50:42 +0100
  173. +++ Kwiki-RecentChangesRSS-0.06/lib/Kwiki/RecentChangesRSS.pm 2005-01-31 13:31:59 +0100
  174. @@ -312,6 +312,7 @@
  175. rss_skipHours:
  176. rss_skipDays:
  177. rss_display_page: 0
  178. +rss_icon: icons/xml.png
  179. __template/tt2/rss_button.html__
  180. <!-- BEGIN rss_button.html -->
  181. <a href="[% script_name %]?action=RecentChangesRSS" accesskey="c" title="RSS">
  182. @@ -324,7 +325,7 @@
  183. <!-- END rss_button_icon.html -->
  184. __template/tt2/rss_screen.xml__
  185. [% xml %]
  186. -__xml.png__
  187. +__icons/xml.png__
  188. iVBORw0KGgoAAAANSUhEUgAAACQAAAAOBAMAAAC1GaP7AAAAMFBMVEU9GgL1sYOeQgLmhkL22sfd
  189. XQfcdC/7yaf+/Pt+MgLDUgbupHL+gi7+ZgP+lE/OZiLJkrvQAAAAAWJLR0QAiAUdSAAAAJlJREFU
  190. eNpjdDdgQAX/Gd9+QBP6w8SAAYBC/1YzcBdYr2eYvYG7ACTEAhQ98JVb9vRvBoG/DD+gqhga2Jmd
  191. Index: Kwiki-Search-0.12/lib/Kwiki/Search.pm
  192. --- Kwiki-Search-0.12/lib/Kwiki/Search.pm.orig 2004-12-16 00:38:12 +0100
  193. +++ Kwiki-Search-0.12/lib/Kwiki/Search.pm 2005-01-31 13:31:59 +0100
  194. @@ -72,7 +72,7 @@
  195. =cut
  196. __template/tt2/search_box.html__
  197. -<form method="post" action="[% script_name %]" enctype="application/x-www-form-urlencoded" style="display: inline">
  198. +<form method="post" action="[% script_name %]" enctype="application/x-www-form-urlencoded" class="search" style="display: inline">
  199. <input type="text" name="search_term" size="8" value="Search" onfocus="this.value=''" />
  200. <input type="hidden" name="action" value="search" />
  201. </form>