* If Net::OpenID::Consumer is not available, the openid module will quietly

disable itself, this avoids needing a hard dependency on the perl module.
master
joey 2007-04-30 04:41:53 +00:00
parent 479d213419
commit cd27ffc614
4 changed files with 20 additions and 8 deletions

View File

@ -27,6 +27,14 @@ sub formbuilder_setup (@) { #{{{
my $session=$params{session}; my $session=$params{session};
my $cgi=$params{cgi}; 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") { if ($form->title eq "signin") {
# This avoids it displaying a redundant label for the # This avoids it displaying a redundant label for the
# OpenID fieldset. # OpenID fieldset.

8
debian/NEWS vendored
View File

@ -9,10 +9,10 @@ ikiwiki (2.00) unstable; urgency=low
or edit your setup file to turn usedirs off: or edit your setup file to turn usedirs off:
usedirs => 0, usedirs => 0,
* OpenID logins are now enabled by default. So ikiwiki now depends on the * OpenID logins are now enabled by default, if the Net::OpenID::Consumer
Net::OpenID::Consumer perl module. Password logins are also still on by perl module is available. Password logins are also still enabled
default. If you like, you can turn either OpenID or password logins off by default. If you like, you can turn either OpenID or password logins
via the 'disable_plugins' setting. off via the 'disable_plugins' setting.
-- Joey Hess <joeyh@debian.org> Sun, 29 Apr 2007 19:00:43 -0400 -- Joey Hess <joeyh@debian.org> Sun, 29 Apr 2007 19:00:43 -0400

8
debian/changelog vendored
View File

@ -1,4 +1,4 @@
ikiwiki (2.00) UNRELEASED; urgency=low ikiwiki (2.00) unstable; urgency=low
[ Josh Triplett ] [ Josh Triplett ]
* Avoid using GNU extensions to cp during "make install", which did * Avoid using GNU extensions to cp during "make install", which did
@ -16,7 +16,11 @@ ikiwiki (2.00) UNRELEASED; urgency=low
* fieldset support appeared in CGI::FormBuilder 3.05, so increase * fieldset support appeared in CGI::FormBuilder 3.05, so increase
version in Depends on libcgi-formbuilder-perl to 3.05 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 ikiwiki (1.51) unstable; urgency=low

4
debian/control vendored
View File

@ -11,8 +11,8 @@ XS-Vcs-Browser: http://ikiwiki.info/cgi-bin/viewvc.cgi/trunk/?root=ikiwiki
Package: ikiwiki Package: ikiwiki
Architecture: all 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 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 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 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 Conflicts: ikiwiki-plugin-table
Replaces: ikiwiki-plugin-table Replaces: ikiwiki-plugin-table