disable itself, this avoids needing a hard dependency on the perl module.
my $form=$params{form};
my $session=$params{session};
my $cgi=$params{cgi};
+
+ # Give up if module is unavailable to avoid needing to depend on
+ # it.
+ eval q{use Net::OpenID::Consumer};
+ if ($@) {
+ debug("unable to load Net::OpenID::Consumer, not enabling OpenID login");
+ return;
+ }
if ($form->title eq "signin") {
# This avoids it displaying a redundant label for the
or edit your setup file to turn usedirs off:
usedirs => 0,
- * OpenID logins are now enabled by default. So ikiwiki now depends on the
- Net::OpenID::Consumer perl module. Password logins are also still on by
- default. If you like, you can turn either OpenID or password logins off
- via the 'disable_plugins' setting.
+ * OpenID logins are now enabled by default, if the Net::OpenID::Consumer
+ perl module is available. Password logins are also still enabled
+ by default. If you like, you can turn either OpenID or password logins
+ off via the 'disable_plugins' setting.
-- Joey Hess <joeyh@debian.org> Sun, 29 Apr 2007 19:00:43 -0400
-ikiwiki (2.00) UNRELEASED; urgency=low
+ikiwiki (2.00) unstable; urgency=low
[ Josh Triplett ]
* Avoid using GNU extensions to cp during "make install", which did
* fieldset support appeared in CGI::FormBuilder 3.05, so increase
version in Depends on libcgi-formbuilder-perl to 3.05
- -- Josh Triplett <josh@freedesktop.org> Sun, 29 Apr 2007 19:52:16 -0700
+ [ Joey Hess ]
+ * If Net::OpenID::Consumer is not available, the openid module will quietly
+ disable itself, this avoids needing a hard dependency on the perl module.
+
+ -- Joey Hess <joeyh@debian.org> Mon, 30 Apr 2007 00:43:02 -0400
ikiwiki (1.51) unstable; urgency=low
Package: ikiwiki
Architecture: all
-Depends: ${perl:Depends}, libxml-simple-perl, markdown, libtimedate-perl, libhtml-template-perl, libhtml-scrubber-perl, libcgi-formbuilder-perl (>= 3.05), libtime-duration-perl, libcgi-session-perl (>= 4.14-1), libmail-sendmail-perl | libnet-openid-consumer-perl, gcc | c-compiler, libc6-dev | libc-dev, libhtml-parser-perl, liburi-perl
-Recommends: subversion | git-core | tla | mercurial, hyperestraier
+Depends: ${perl:Depends}, libxml-simple-perl, markdown, libtimedate-perl, libhtml-template-perl, libhtml-scrubber-perl, libcgi-formbuilder-perl (>= 3.05), libtime-duration-perl, libcgi-session-perl (>= 4.14-1), libmail-sendmail-perl, gcc | c-compiler, libc6-dev | libc-dev, libhtml-parser-perl, liburi-perl
+Recommends: subversion | git-core | tla | mercurial, hyperestraier, libnet-openid-consumer-perl
Suggests: viewvc | viewcvs, librpc-xml-perl, libtext-wikiformat-perl, python-docutils, polygen, tidy, libxml-feed-perl, libmailtools-perl, perlmagick, libfile-mimeinfo-perl, libcrypt-ssleay-perl, liblocale-gettext-perl (>= 1.05-1), libtext-typography-perl, libtext-csv-perl, libdigest-sha1-perl, graphviz
Conflicts: ikiwiki-plugin-table
Replaces: ikiwiki-plugin-table