Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
apache2-mod_auth_openid
> mod_auth_openid-0.6-tmp.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mod_auth_openid-0.6-tmp.diff of Package apache2-mod_auth_openid
Index: mod_auth_openid-0.6/Makefile.am =================================================================== --- mod_auth_openid-0.6.orig/Makefile.am +++ mod_auth_openid-0.6/Makefile.am @@ -6,7 +6,7 @@ EXTRA_DIST = UPGRADE ACLOCAL_AMFLAGS = -I acinclude.d -INCLUDES = ${APACHE_CFLAGS} ${OPKELE_CFLAGS} ${SQLITE3_CFLAGS} ${PCRE_CFLAGS} ${CURL_CFLAGS} +AM_CPPFLAGS = ${APACHE_CFLAGS} ${OPKELE_CFLAGS} ${SQLITE3_CFLAGS} ${PCRE_CFLAGS} ${CURL_CFLAGS} -DDB_LOCATION=\"$(DB_LOCATION)\" AM_LDFLAGS = ${OPKELE_LIBS} ${SQLITE3_LDFLAGS} ${PCRE_LIBS} ${CURL_LIBS} ${APR_LDFLAGS} libmodauthopenid_la_SOURCES = mod_auth_openid.cpp MoidConsumer.cpp moid_utils.cpp http_helpers.cpp \ @@ -19,6 +19,7 @@ db_info_DEPENDENCIES = libmodauthopenid. install-exec-local: ${APXS} -i -a mod_auth_openid.la + @install -D -m 600 /dev/null $(DESTDIR)$(DB_LOCATION); echo "+++ make sure $(DB_LOCATION) is writable by the web server user!" mod_auth_openid.la: libmodauthopenid.la ${APXS} -c -o $@ $< ${APACHE_CFLAGS} ${OPKELE_CFLAGS} ${OPKELE_LIBS} \ Index: mod_auth_openid-0.6/configure.ac =================================================================== --- mod_auth_openid-0.6.orig/configure.ac +++ mod_auth_openid-0.6/configure.ac @@ -43,6 +43,13 @@ if test "$?" != "0"; then AC_MSG_ERROR($apr_config is not a valid apr-config program) fi +AC_MSG_CHECKING([where to store the database]) +AC_ARG_WITH(db_location, AC_HELP_STRING([--with-db-location], [Path to session database]), + [DB_LOCATION="$withval"], + [DB_LOCATION="/var/lib/mod_auth_openid/sessions.db"]) +AC_SUBST(DB_LOCATION) +AC_MSG_RESULT([$DB_LOCATION]) + AX_LIB_SQLITE3([3.3.0]) if test "$SQLITE3_VERSION" == ""; then AC_MSG_ERROR([No sqlite 3 (http://www.sqlite.org) library found.]) Index: mod_auth_openid-0.6/mod_auth_openid.cpp =================================================================== --- mod_auth_openid-0.6.orig/mod_auth_openid.cpp +++ mod_auth_openid-0.6/mod_auth_openid.cpp @@ -53,7 +53,7 @@ typedef const char *(*CMD_HAND_TYPE) (); static void *create_modauthopenid_config(apr_pool_t *p, char *s) { modauthopenid_config *newcfg; newcfg = (modauthopenid_config *) apr_pcalloc(p, sizeof(modauthopenid_config)); - newcfg->db_location = "/tmp/mod_auth_openid.db"; + newcfg->db_location = DB_LOCATION; newcfg->use_cookie = true; newcfg->cookie_name = "open_id_session_id"; newcfg->cookie_path = NULL;