summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /www-apache/mod_auth_cookie_mysql2
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'www-apache/mod_auth_cookie_mysql2')
-rw-r--r--www-apache/mod_auth_cookie_mysql2/Manifest1
-rw-r--r--www-apache/mod_auth_cookie_mysql2/files/55_mod_auth_cookie_mysql2.conf95
-rw-r--r--www-apache/mod_auth_cookie_mysql2/metadata.xml7
-rw-r--r--www-apache/mod_auth_cookie_mysql2/mod_auth_cookie_mysql2-1.0.ebuild29
4 files changed, 132 insertions, 0 deletions
diff --git a/www-apache/mod_auth_cookie_mysql2/Manifest b/www-apache/mod_auth_cookie_mysql2/Manifest
new file mode 100644
index 000000000000..4e3da3798222
--- /dev/null
+++ b/www-apache/mod_auth_cookie_mysql2/Manifest
@@ -0,0 +1 @@
+DIST mod_auth_cookie_mysql2_1.0.tar.gz 7406 SHA256 85601beea7a6de0ba8ef466027e6783cebef05c4687dc50460d2fdb06f5babe4 SHA512 66ccffdcbae640c396305506ee588c86ffc937422ac36fc68af1e7977210b4c8a3e8090125facd8acf37667c720853774096d564e02d4ad186d14f714998e5b7 WHIRLPOOL 5ede56d86a10d8cfdf1dd5714c0cb9ea3cdc9c08f99f09575eb95ffb5e9d90b8e6e586d839b252510608376cb67197e000abdc4b2410def81e13b5449d7eeda9
diff --git a/www-apache/mod_auth_cookie_mysql2/files/55_mod_auth_cookie_mysql2.conf b/www-apache/mod_auth_cookie_mysql2/files/55_mod_auth_cookie_mysql2.conf
new file mode 100644
index 000000000000..6bb94fa3e742
--- /dev/null
+++ b/www-apache/mod_auth_cookie_mysql2/files/55_mod_auth_cookie_mysql2.conf
@@ -0,0 +1,95 @@
+<IfDefine AUTH_COOKIE_MYSQL2>
+LoadModule auth_cookie_mysql2_module modules/mod_auth_cookie_sql2.so
+
+# MOD_AUTH_COOKIE_MYSQL Configuration section.
+# For more information look at the configuration section at
+# http://home.digithi.de/digithi/dev/mod_auth_cookie_mysql/#configuration
+
+# The MOD_AUTH_COOKIE_MYSQL2 directives must be inside of a <Directory>
+# block to work correctly!
+#<Directory "/var/www/localhost/">
+ # CookieAuth: Activates this module.
+ # REQUIRED: Yes
+ # Options: on|off
+ #CookieAuth
+
+ # CookieAuth_DBhost: Hostname or IP of the host where MySQL is running on.
+ # REQUIRED: Yes
+ # Options: <hostname or IP>
+ #CookieAuth_DBhost
+
+ # CookieAuth_DBName: Name of the MySQL database.
+ # REQUIRED: Yes
+ # Options: <dbname>
+ #CookieAuth_DBName
+
+ # CookieAuth_DBTable: Table name in database.
+ # REQUIRED: Yes
+ # Options: <tbname>
+ #CookieAuth_DBTable
+
+ # CookieAuth_DBUser: MySQL username with permissions to database and table.
+ # REQUIRED: Yes
+ # Options: <username>
+ #CookieAuth_DBUser
+
+ # CookieAuth_DBPassword: password for user in CookieAuth_DBUser.
+ # REQUIRED: Yes
+ # Options: <password>
+ #CookieAuth_DBPassword
+
+ # CookieAuth_UsernameField: Field in MySQL table where username of session is stored.
+ # This username is displayed as the "Remote Username" variable "REMOTE_USER" in Apache.
+ # REQUIRED: Yes
+ # Options: <fieldname>
+ #CookieAuth_UsernameField
+
+ # CookieAuth_SessnameField: Field in MySQL table where session name is stored. This is
+ # the name of the cookie!
+ # REQUIRED: Yes
+ # Options: <fieldname>
+ #CookieAuth_SessnameField
+
+ # CookieAuth_SessvalField: Field in MySQL table where session value (this is the value
+ # which is compared with the cookie value) is stored.
+ # REQUIRED: Yes
+ # Options: <fieldname>
+ #CookieAuth_SessvalField
+
+ # Cookie_Auth_CookieName: If this option is set, only the cookie with this name is searched.
+ # If it is not set, this module will search all cookies the browser sends and checks the name
+ # against the values in the field set with CookieAuth_SessvalField.
+ # REQUIRED: No
+ # Options: <name>
+ #CookieAuth_CookieName
+
+ # Cookie_Auth_ExpiryField: When this option is set, the current time of the webserver is
+ # compared against this field in the database. This value is in the format of a Unix
+ # timestamp (time in seconds since 01-01-1970)
+ # REQUIRED: No
+ # Options: <fieldname>
+ #CookieAuth_ExpiryField
+
+ # CookieAuth_RemoteIPField: When this option is set, the remote address of the connected
+ # client is checked against this field. Only when the remote IP and the stored IP are
+ # equal will the client be able to authorize.
+ # REQUIRED: No
+ # Options: <fieldname>
+ #CookieAuth_RemoteIPField
+
+ # CookieAuth_FailureURL: Normally, when the authorization fails the client gets an
+ # "AUTHORIZATION REQUIRED" message from the webserver. With this option set you can
+ # redirect the client to another URL.
+ #
+ # WARNING: This is a normal redirect for the browser. If you want an internal
+ # redirect where the browser doesn't see the URL it's been redirected to
+ # you should use the ErrorDocument directive. Example:
+ # "ErrorDocument 401 /some_error.html"
+ #
+ # REQUIRED: No
+ # Options: <url>
+ #CookieAuth_FailureURL
+#</Directory>
+</IfDefine>
+
+# vim: ts=4 filetype=apache
diff --git a/www-apache/mod_auth_cookie_mysql2/metadata.xml b/www-apache/mod_auth_cookie_mysql2/metadata.xml
new file mode 100644
index 000000000000..1289a22383f2
--- /dev/null
+++ b/www-apache/mod_auth_cookie_mysql2/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_auth_cookie_mysql2/mod_auth_cookie_mysql2-1.0.ebuild b/www-apache/mod_auth_cookie_mysql2/mod_auth_cookie_mysql2-1.0.ebuild
new file mode 100644
index 000000000000..3f857ec4c30f
--- /dev/null
+++ b/www-apache/mod_auth_cookie_mysql2/mod_auth_cookie_mysql2-1.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit apache-module
+
+DESCRIPTION="An Apache2 backend authentication module that uses cookies and MySQL"
+HOMEPAGE="http://home.digithi.de/digithi/dev/mod_auth_cookie_mysql/"
+SRC_URI="http://home.digithi.de/digithi/dev/mod_auth_cookie_mysql/${P/-/_}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="virtual/mysql"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${P/-/_}"
+
+APXS2_ARGS="-DMODULE_NAME=mod_auth_cookie_mysql2 -DMODULE_NAME_module=auth_cookie_mysql2_module
+ -I/usr/include/mysql -lmysqlclient -lz -c mod_auth_cookie_sql2.c mod_auth_cookie_sql2_mysql.c"
+APACHE2_MOD_FILE="${S}/.libs/mod_auth_cookie_sql2.so"
+APACHE2_MOD_CONF="55_${PN}"
+APACHE2_MOD_DEFINE="AUTH_COOKIE_MYSQL2"
+
+DOCFILES="README"
+
+need_apache2_2