Update to 3.20141016. From the changelog: [ Joey Hess ] * Fix crash that can occur when only_committed_changes is set and a file is deleted from the underlay. [ Simon McVittie ] * core: avoid dangerous use of CGI->param in list context, which led to a security flaw in Bugzilla; as far as we can tell, ikiwiki is not vulnerable to a similar attack, but it's best to be safe * core: new reverse_proxy option prevents ikiwiki from trying to detect how to make self-referential URLs by using the CGI environment variables, for instance when it's deployed behind a HTTP reverse proxy (Closes: #745759) * core: the default User-Agent is now "ikiwiki/$version" to work around ModSecurity rules assuming that only malware uses libwww-perl * core: use protocol-relative URLs (e.g. //www.example.com/wiki) so that https stays on https and http stays on http, particularly if the html5 option is enabled * core: avoid mixed content when a https cgiurl links to http static pages on the same server (the static pages are assumed to be accessible via https too) * core: force the correct top URL in w3mmode * google plugin: Use search form * docwiki: replace Paypal and Flattr buttons with text links * comments: don't record the IP address in the wiki if the user is logged in via passwordauth or httpauth * templates: add ARIA roles to some page elements, if html5 is enabled. Thanks, Patrick pkgsrc changes: * For the python option, add missing py-expat dependency.diff -r1.126 -r1.127 pkgsrc/www/ikiwiki/Makefile
(schmonz)
@@ -1,19 +1,18 @@ | @@ -1,19 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.126 2014/10/03 18:37:11 schmonz Exp $ | 1 | # $NetBSD: Makefile,v 1.127 2014/10/17 11:50:42 schmonz Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= ikiwiki_3.20140916 | 4 | DISTNAME= ikiwiki_3.20141016 | |
5 | PKGNAME= ${DISTNAME:S/_/-/} | 5 | PKGNAME= ${DISTNAME:S/_/-/} | |
6 | PKGREVISION= 1 | |||
7 | CATEGORIES= www textproc | 6 | CATEGORIES= www textproc | |
8 | MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/i/ikiwiki/} | 7 | MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/i/ikiwiki/} | |
9 | 8 | |||
10 | MAINTAINER= schmonz@NetBSD.org | 9 | MAINTAINER= schmonz@NetBSD.org | |
11 | HOMEPAGE= http://ikiwiki.info/ | 10 | HOMEPAGE= http://ikiwiki.info/ | |
12 | COMMENT= Flexible static site generator with dynamic features | 11 | COMMENT= Flexible static site generator with dynamic features | |
13 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
14 | 13 | |||
15 | DEPENDS+= p5-Text-Markdown-Discount-[0-9]*:../../textproc/p5-Text-Markdown-Discount | 14 | DEPENDS+= p5-Text-Markdown-Discount-[0-9]*:../../textproc/p5-Text-Markdown-Discount | |
16 | DEPENDS+= p5-URI-[0-9]*:../../www/p5-URI | 15 | DEPENDS+= p5-URI-[0-9]*:../../www/p5-URI | |
17 | DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser | 16 | DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser | |
18 | DEPENDS+= p5-HTML-Template-[0-9]*:../../www/p5-HTML-Template | 17 | DEPENDS+= p5-HTML-Template-[0-9]*:../../www/p5-HTML-Template | |
19 | DEPENDS+= p5-HTML-Tree-[0-9]*:../../www/p5-HTML-Tree | 18 | DEPENDS+= p5-HTML-Tree-[0-9]*:../../www/p5-HTML-Tree | |
@@ -26,31 +25,26 @@ DEPENDS+= p5-XML-Atom-[0-9]*:../../text | @@ -26,31 +25,26 @@ DEPENDS+= p5-XML-Atom-[0-9]*:../../text | |||
26 | DEPENDS+= p5-XML-Feed-[0-9]*:../../textproc/p5-XML-Feed | 25 | DEPENDS+= p5-XML-Feed-[0-9]*:../../textproc/p5-XML-Feed | |
27 | DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple | 26 | DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple | |
28 | DEPENDS+= p5-XML-RSS-[0-9]*:../../textproc/p5-XML-RSS | 27 | DEPENDS+= p5-XML-RSS-[0-9]*:../../textproc/p5-XML-RSS | |
29 | DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo | 28 | DEPENDS+= p5-File-MimeInfo-[0-9]*:../../devel/p5-File-MimeInfo | |
30 | DEPENDS+= p5-gettext-[0-9]*:../../devel/p5-gettext | 29 | DEPENDS+= p5-gettext-[0-9]*:../../devel/p5-gettext | |
31 | DEPENDS+= p5-YAML-LibYAML-[0-9]*:../../textproc/p5-YAML-LibYAML | 30 | DEPENDS+= p5-YAML-LibYAML-[0-9]*:../../textproc/p5-YAML-LibYAML | |
32 | #DEPENDS+= po4a-[0-9]*:../../textproc/po4a | 31 | #DEPENDS+= po4a-[0-9]*:../../textproc/po4a | |
33 | 32 | |||
34 | WRKSRC= ${WRKDIR}/${PKGBASE} | 33 | WRKSRC= ${WRKDIR}/${PKGBASE} | |
35 | PERL5_PACKLIST= auto/IkiWiki/.packlist | 34 | PERL5_PACKLIST= auto/IkiWiki/.packlist | |
36 | USE_LANGUAGES= c | 35 | USE_LANGUAGES= c | |
37 | USE_TOOLS+= gmake msgfmt perl:run xgettext | 36 | USE_TOOLS+= gmake msgfmt perl:run xgettext | |
38 | 37 | |||
39 | REPLACE_PERL+= Makefile.PL *.in *.cgi *.pm* */*.pm* */*/*.pm* */*.t | |||
40 | REPLACE_PERL+= *.setup */*.setup */*/*.setup | |||
41 | REPLACE_PERL+= ikiwiki-mass-rebuild ikiwiki-update-wikilist | |||
42 | REPLACE_PERL+= gitremotes mdwn2man pm_filter po/po2wiki | |||
43 | REPLACE_PERL+= plugins/externaldemo # XXX not installed | |||
44 | # find . -type f -print | \ | 38 | # find . -type f -print | \ | |
45 | # perl -ne 'open(F, "<$_"); $l=<F>; print if $l =~ m|^#!/usr/bin/perl|' | 39 | # perl -ne 'open(F, "<$_"); $l=<F>; print if $l =~ m|^#!/usr/bin/perl|' | |
46 | REPLACE_PYTHON+= plugins/proxy.py plugins/pythondemo plugins/rst | 40 | REPLACE_PYTHON+= plugins/proxy.py plugins/pythondemo plugins/rst | |
47 | 41 | |||
48 | MAKE_FLAGS+= W3M_CGI_BIN=${PREFIX:Q}/libexec/w3m/cgi-bin | 42 | MAKE_FLAGS+= W3M_CGI_BIN=${PREFIX:Q}/libexec/w3m/cgi-bin | |
49 | MAKE_FLAGS+= SYSCONFDIR=${PKG_SYSCONFDIR:Q} | 43 | MAKE_FLAGS+= SYSCONFDIR=${PKG_SYSCONFDIR:Q} | |
50 | MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q} | 44 | MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q} | |
51 | 45 | |||
52 | INSTALL_MAKE_FLAGS+= SYSCONFDIR=${EGDIR:Q} | 46 | INSTALL_MAKE_FLAGS+= SYSCONFDIR=${EGDIR:Q} | |
53 | 47 | |||
54 | PKG_SYSCONFSUBDIR= ${PKGBASE} | 48 | PKG_SYSCONFSUBDIR= ${PKGBASE} | |
55 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | 49 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | |
56 | .for f in auto.setup auto-blog.setup wikilist | 50 | .for f in auto.setup auto-blog.setup wikilist |
@@ -1,6 +1,5 @@ | @@ -1,6 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.102 2014/09/19 05:24:15 schmonz Exp $ | 1 | $NetBSD: distinfo,v 1.103 2014/10/17 11:50:42 schmonz Exp $ | |
2 | 2 | |||
3 | SHA1 (ikiwiki_3.20140916.tar.gz) = a9f167e736caf480143e3086e11143b2b2ee9946 | 3 | SHA1 (ikiwiki_3.20141016.tar.gz) = 472b3899eb3ca64b5a8d564b0de29f62e1847318 | |
4 | RMD160 (ikiwiki_3.20140916.tar.gz) = 22f37b96f91a4c0303655538c0762c1c8caace49 | 4 | RMD160 (ikiwiki_3.20141016.tar.gz) = db9ebfa5fa61516f089611804d9f15073b2f1b89 | |
5 | Size (ikiwiki_3.20140916.tar.gz) = 3213411 bytes | 5 | Size (ikiwiki_3.20141016.tar.gz) = 3254923 bytes | |
6 | SHA1 (patch-Makefile.PL) = 283bbdbecf1248b2c1d2244be8462f8bfe2d950f |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.16 2014/09/16 17:53:01 schmonz Exp $ | 1 | # $NetBSD: options.mk,v 1.17 2014/10/17 11:50:42 schmonz Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ikiwiki | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ikiwiki | |
4 | PKG_SUPPORTED_OPTIONS= cgi imagemagick python w3m | 4 | PKG_SUPPORTED_OPTIONS= cgi imagemagick python w3m | |
5 | PKG_SUPPORTED_OPTIONS+= cvs git svn # not mutually exclusive | 5 | PKG_SUPPORTED_OPTIONS+= cvs git svn # not mutually exclusive | |
6 | PKG_SUPPORTED_OPTIONS+= ikiwiki-amazon-s3 ikiwiki-highlight ikiwiki-search | 6 | PKG_SUPPORTED_OPTIONS+= ikiwiki-amazon-s3 ikiwiki-highlight ikiwiki-search | |
7 | PKG_SUGGESTED_OPTIONS= cgi | 7 | PKG_SUGGESTED_OPTIONS= cgi | |
8 | 8 | |||
9 | .include "../../mk/bsd.options.mk" | 9 | .include "../../mk/bsd.options.mk" | |
10 | 10 | |||
11 | .if !empty(PKG_OPTIONS:Mcgi) | 11 | .if !empty(PKG_OPTIONS:Mcgi) | |
12 | DEPENDS+= p5-CGI-[0-9]*:../../www/p5-CGI | 12 | DEPENDS+= p5-CGI-[0-9]*:../../www/p5-CGI | |
13 | DEPENDS+= p5-CGI-FormBuilder>=3.05:../../www/p5-CGI-FormBuilder | 13 | DEPENDS+= p5-CGI-FormBuilder>=3.05:../../www/p5-CGI-FormBuilder | |
14 | DEPENDS+= p5-CGI-Session-[0-9]*:../../www/p5-CGI-Session | 14 | DEPENDS+= p5-CGI-Session-[0-9]*:../../www/p5-CGI-Session | |
@@ -41,26 +41,27 @@ DEPENDS+= p5-highlight-[0-9]*:../../text | @@ -41,26 +41,27 @@ DEPENDS+= p5-highlight-[0-9]*:../../text | |||
41 | .if !empty(PKG_OPTIONS:Mikiwiki-search) | 41 | .if !empty(PKG_OPTIONS:Mikiwiki-search) | |
42 | DEPENDS+= p5-Search-Xapian-[0-9]*:../../textproc/p5-Search-Xapian | 42 | DEPENDS+= p5-Search-Xapian-[0-9]*:../../textproc/p5-Search-Xapian | |
43 | DEPENDS+= xapian-omega-[0-9]*:../../textproc/xapian-omega | 43 | DEPENDS+= xapian-omega-[0-9]*:../../textproc/xapian-omega | |
44 | .endif | 44 | .endif | |
45 | 45 | |||
46 | .if !empty(PKG_OPTIONS:Mimagemagick) | 46 | .if !empty(PKG_OPTIONS:Mimagemagick) | |
47 | DEPENDS+= p5-PerlMagick-[0-9]*:../../graphics/p5-PerlMagick | 47 | DEPENDS+= p5-PerlMagick-[0-9]*:../../graphics/p5-PerlMagick | |
48 | # suggest ghostscript (required for PDF-to-PNG thumbnailing) | 48 | # suggest ghostscript (required for PDF-to-PNG thumbnailing) | |
49 | # and libmagickcore-extra (required for SVG-to-PNG thumbnailing) | 49 | # and libmagickcore-extra (required for SVG-to-PNG thumbnailing) | |
50 | .endif | 50 | .endif | |
51 | 51 | |||
52 | .if !empty(PKG_OPTIONS:Mpython) | 52 | .if !empty(PKG_OPTIONS:Mpython) | |
53 | DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils | 53 | DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils | |
54 | DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | |||
54 | .else | 55 | .else | |
55 | PYTHON_FOR_BUILD_ONLY= yes | 56 | PYTHON_FOR_BUILD_ONLY= yes | |
56 | .endif | 57 | .endif | |
57 | 58 | |||
58 | .if !empty(PKG_OPTIONS:Msvn) | 59 | .if !empty(PKG_OPTIONS:Msvn) | |
59 | DEPENDS+= subversion-base-[0-9]*:../../devel/subversion-base | 60 | DEPENDS+= subversion-base-[0-9]*:../../devel/subversion-base | |
60 | .endif | 61 | .endif | |
61 | 62 | |||
62 | PLIST_VARS+= w3m | 63 | PLIST_VARS+= w3m | |
63 | .if !empty(PKG_OPTIONS:Mw3m) | 64 | .if !empty(PKG_OPTIONS:Mw3m) | |
64 | DEPENDS+= w3m-[0-9]*:../../www/w3m | 65 | DEPENDS+= w3m-[0-9]*:../../www/w3m | |
65 | PLIST.w3m= yes | 66 | PLIST.w3m= yes | |
66 | INSTALLATION_DIRS+= share/doc/${PKGBASE}/w3mmode | 67 | INSTALLATION_DIRS+= share/doc/${PKGBASE}/w3mmode |