summaryrefslogtreecommitdiff
path: root/www/ikiwiki/patches
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2008-10-06 15:34:00 +0000
committerschmonz <schmonz@pkgsrc.org>2008-10-06 15:34:00 +0000
commitd2a653bf1e07713e2b8d16d84b55dee1a93cb73f (patch)
tree62bd184c7bb0c2e5efb11f5ec87da2d981076561 /www/ikiwiki/patches
parent2da9e21172b5d0299fe7ef212553b8c7b1d24029 (diff)
downloadpkgsrc-d2a653bf1e07713e2b8d16d84b55dee1a93cb73f.tar.gz
Update to 2.66. From the changelog:
* recentchanges: Fix redirects to non-page files. * aggregate: Avoid uninitialized value warnings for pages with no recorded ctime. * attachment: Add admin() pagespec to test if the uploading user is a wiki admin. * git: Fix handling of utf-8 filenames in recentchanges. * tag: Make edit link for new tags ensure that the tags are created inside tagbase, when it's set. * template: Make edit link for new templates ensure the page is located under toplevel templates directory. * htmlscrubber: Add a config setting that can be used to disable the scrubber acting on a set of pages. * Expand usage message and add --help. Closes: #[500344] * Beautify urls used in various places. (smcv) * Export pagetitle, titlepage, linkpage. * htmltidy: Avoid returning undef if tidy fails. Also avoid returning the untidied content if tidy crashes. In either case, it seems best to tidy the content to nothing. * htmltidy: Avoid spewing tidy errors to stderr. * Reorganize index file, add a format version field. Upgrades to the new index format should be transparent. * Add %wikistate, which is like %pagestate except not specific to a given page, and is preserved across rebuilds. * editpage: Be more aggressive (and less buggy) about cleaning up temporary files rendered during page preview. * Add an indexpages option, which causes foo/index.mdwn to be the source for page foo when foo.mdwn doesn't exist. Also, when it's enabled, creating a new page will save it to foo/index.mdwn by default. Closes: #[474611] (Sponsored by The TOVA Company.) * httpauth: Document that ikiwiki.cgi has to be in a directory subject to authentication. Closes: #[500524] * inline: Fix handling of rootpage that doesn't exist. * attachment: Support adding attachments to pages even as they are being created. * remove, rename: Allow acting on attachments as a page is being created. * Updated French translation. Closes: #[500929] * progress: Display an error if the progress cannot be parsed, and allow the percent parameter to only optionally end with "%". * Fix reversion in use of ikiwiki -verbose -setup with a setup file that enables syslog. Setup output is once again output to stdout in this case. * edittemplate: Default new page file type to the same type as the template. (willu) * edittemplate: Add "silent" parameter. (Willu) * edittemplate: Link to template, to allow creating it. (Willu) * editpage: Add a missing check that the page name contains only legal characters, in addition to the existing check for pruned filenames. * Print a debug message if a page has multiple source files. * Add keepextension parameter to htmlize hook. (Willu) * rename, remove: Don't rely on a form parameter to tell whether the page should be treated as an attachment. * rename: Add support for moving SubPages of a page when renaming it. (Sponsored by The TOVA Company.) * rename: Hide type field from rename form when renaming attachments.
Diffstat (limited to 'www/ikiwiki/patches')
-rw-r--r--www/ikiwiki/patches/patch-ab13
-rw-r--r--www/ikiwiki/patches/patch-ac51
2 files changed, 0 insertions, 64 deletions
diff --git a/www/ikiwiki/patches/patch-ab b/www/ikiwiki/patches/patch-ab
deleted file mode 100644
index b4695bd8016..00000000000
--- a/www/ikiwiki/patches/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2008/09/22 15:09:05 schmonz Exp $
-
---- IkiWiki/Plugin/editdiff.pm.orig 2008-09-08 12:30:11.000000000 -0400
-+++ IkiWiki/Plugin/editdiff.pm
-@@ -56,7 +56,7 @@ sub formbuilder_setup { #{{{
- my %params=@_;
- my $form=$params{form};
-
-- return if defined ! $form->field("do") || $form->field("do") ne "edit";
-+ return if ! defined $form->field("do") || $form->field("do") ne "edit";
-
- my $page=$form->field("page");
- $page = IkiWiki::possibly_foolish_untaint($page);
diff --git a/www/ikiwiki/patches/patch-ac b/www/ikiwiki/patches/patch-ac
deleted file mode 100644
index 094736495d8..00000000000
--- a/www/ikiwiki/patches/patch-ac
+++ /dev/null
@@ -1,51 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2008/09/22 15:09:05 schmonz Exp $
-
---- IkiWiki/Plugin/aggregate.pm.orig 2008-09-08 12:30:11.000000000 -0400
-+++ IkiWiki/Plugin/aggregate.pm
-@@ -421,7 +421,7 @@ sub expire () { #{{{
- my $count=0;
- my %seen;
- foreach my $item (sort { $IkiWiki::pagectime{$b->{page}} <=> $IkiWiki::pagectime{$a->{page}} }
-- grep { exists $_->{page} && $_->{feed} eq $feed->{name} && $IkiWiki::pagectime{$_->{page}} }
-+ grep { exists $_->{page} && $_->{feed} eq $feed->{name} }
- values %guids) {
- if ($feed->{expireage}) {
- my $days_old = (time - $IkiWiki::pagectime{$item->{page}}) / 60 / 60 / 24;
-@@ -520,12 +520,18 @@ sub aggregate (@) { #{{{
- }
-
- foreach my $entry ($f->entries) {
-+ my $content=$content=$entry->content->body;
-+ # atom feeds may have no content, only a summary
-+ if (! defined $content && ref $entry->summary) {
-+ $content=$entry->summary->body;
-+ }
-+
- add_page(
- feed => $feed,
- copyright => $f->copyright,
- title => defined $entry->title ? decode_entities($entry->title) : "untitled",
- link => $entry->link,
-- content => defined $entry->content->body ? $entry->content->body : "",
-+ content => defined $content ? $content : "",
- guid => defined $entry->id ? $entry->id : time."_".$feed->{name},
- ctime => $entry->issued ? ($entry->issued->epoch || time) : time,
- );
-@@ -612,10 +618,13 @@ sub add_page (@) { #{{{
- writefile(htmlfn($guid->{page}), $config{srcdir},
- $template->output);
-
-- # Set the mtime, this lets the build process get the right creation
-- # time on record for the new page.
-- utime $mtime, $mtime, pagefile($guid->{page})
-- if defined $mtime && $mtime <= time;
-+ if (defined $mtime && $mtime <= time) {
-+ # Set the mtime, this lets the build process get the right
-+ # creation time on record for the new page.
-+ utime $mtime, $mtime, pagefile($guid->{page});
-+ # Store it in pagectime for expiry code to use also.
-+ $IkiWiki::pagectime{$guid->{page}}=$mtime;
-+ }
- } #}}}
-
- sub htmlescape ($) { #{{{