Fix download URL for openid.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 19 Jan 2011 09:53:52 +0000 (10:53 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 19 Jan 2011 09:53:52 +0000 (10:53 +0100)
Note: PHP-OpenId 2.1.3 is not available anymore. We need to test openid
authentication using the new version of openid.

Note2: Packaging from github suxx: it contains both a version number (in
the URL) and a commit-id (in the package content). This is just
unmaintainable and will break again and again in the future.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Makefile

index 0041ae2..4171e6b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -122,10 +122,10 @@ wiki/pub/skins/empty:
 
 get-wiki:
        @if ! test -d wiki; then                                          \
-           wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz;      \
-           tar -xzvf pmwiki-latest.tgz;                                  \
-           rm pmwiki-latest.tgz;                                         \
-           mv pmwiki-* wiki;                                             \
+               wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz;      \
+               tar -xzvf pmwiki-latest.tgz;                                  \
+               rm pmwiki-latest.tgz;                                         \
+               mv pmwiki-* wiki;                                             \
        fi
 
 ##
@@ -135,14 +135,17 @@ get-wiki:
 openid: get-openid spool/openid/store
 
 # There is no obvious way to automatically use the latest version
-OPENID_VERSION = 2.1.3
+OPENID_VERSION = 2.2.2
+OPENID_COMMIT  = 782224d
 get-openid:
        @if ! test -d include/Auth; then                                  \
-           wget http://openidenabled.com/files/php-openid/packages/php-openid-$(OPENID_VERSION).tar.bz2; \
-           tar -xjf php-openid-$(OPENID_VERSION).tar.bz2;                \
-           mv php-openid-$(OPENID_VERSION)/Auth include/;                \
-           rm php-openid-$(OPENID_VERSION).tar.bz2;                      \
-           rm -r php-openid-$(OPENID_VERSION);                           \
+               wget --no-check-certificate                                   \
+                       https://github.com/openid/php-openid/tarball/$(OPENID_VERSION) \
+                       -O php-openid-$(OPENID_VERSION).tar.gz; \
+               tar -xzf php-openid-$(OPENID_VERSION).tar.gz;                \
+               mv openid-php-openid-$(OPENID_COMMIT)/Auth include/;                \
+               rm php-openid-$(OPENID_VERSION).tar.gz;                      \
+               rm -r openid-php-openid-$(OPENID_COMMIT);                           \
        fi
 
 spool/openid/store: