diff options
-rw-r--r-- | www-apache/mod_auth_token/ChangeLog | 12 | ||||
-rw-r--r-- | www-apache/mod_auth_token/Manifest | 16 | ||||
-rw-r--r-- | www-apache/mod_auth_token/files/75_mod_auth_token.conf | 26 | ||||
-rw-r--r-- | www-apache/mod_auth_token/files/mod_auth_token-1.0.6_beta-ap_pstrcat.patch | 13 | ||||
-rw-r--r-- | www-apache/mod_auth_token/metadata.xml | 12 | ||||
-rw-r--r-- | www-apache/mod_auth_token/mod_auth_token-1.0.6_beta.ebuild | 31 |
6 files changed, 110 insertions, 0 deletions
diff --git a/www-apache/mod_auth_token/ChangeLog b/www-apache/mod_auth_token/ChangeLog new file mode 100644 index 000000000000..c90f761e212b --- /dev/null +++ b/www-apache/mod_auth_token/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for www-apache/mod_auth_token +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_token/ChangeLog,v 1.1 2011/08/31 15:42:19 flameeyes Exp $ + +*mod_auth_token-1.0.6_beta (31 Aug 2011) + + 31 Aug 2011; Diego E. Pettenò <flameeyes@gentoo.org> + +files/75_mod_auth_token.conf, +mod_auth_token-1.0.6_beta.ebuild, + +files/mod_auth_token-1.0.6_beta-ap_pstrcat.patch, +metadata.xml: + Initial import of mod_auth_token; ebuild by Pavel Stratil (proxied + maintainer), fix for ap_pstrcat function call by me. + diff --git a/www-apache/mod_auth_token/Manifest b/www-apache/mod_auth_token/Manifest new file mode 100644 index 000000000000..8d42831e8520 --- /dev/null +++ b/www-apache/mod_auth_token/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 75_mod_auth_token.conf 804 RMD160 8cf774624f396004f8f9bfe2e7868987f9803b05 SHA1 3380b90106b07122b7be03b2bcfba00a7b3a31d9 SHA256 aff3e4da801b9fb7bff0750b04748fd27cc148d4dab86899c9ea1c1ddbdb766b +AUX mod_auth_token-1.0.6_beta-ap_pstrcat.patch 528 RMD160 c084c839fe6bf8efc4c30b09826badfda160b922 SHA1 c1f6f00527f9de33050b877208fdc439db76ce45 SHA256 46a9e018617ff65e8f77a50647305e4134ead43030cece5984ddf430cf7f195e +DIST mod_auth_token-1.0.6-beta.tar.gz 555111 RMD160 2a0b0a8572480edde8b1da09aee9b8bd23b2efa2 SHA1 dd112b5ea17fdea96f6ccc0b42911870cadc4d1e SHA256 10888bde6aa42cfce34a593eabe7f582dcabe6fca814e2496c06fdf444334ee9 +EBUILD mod_auth_token-1.0.6_beta.ebuild 584 RMD160 3fca575ae89950fe94f35efe4c35c8a3366eb934 SHA1 c4b0cdbfeb1f2ef79a2c432dd15ec1399b98a654 SHA256 39bcfac3dba5d0cd5afa51737b175b928eb13720c526dba770b61c8da968748a +MISC ChangeLog 585 RMD160 451f47c1d2b9e99e605758cd604a4ac2b92432c2 SHA1 727b7f4309ed16a53dfb5103e4dd134f82a5b6c5 SHA256 1749798309689fcef49e3f97a669a4136f16ba406102ab486b4f8c0ba2c0e5b0 +MISC metadata.xml 379 RMD160 c52401e8ef97f2f404d4f173421aeb939c98a88b SHA1 090ad212930388a2ff9c8261af807546b24f73df SHA256 50e6772c4e7b84ef6b1e17bc6e43667e9f0fa740616f80c933b19348a21785e5 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iEYEARECAAYFAk5eVlIACgkQAiZjviIA2XikwQCeLHFL06r8V7L4dDy7/WX1EMRb +U6kAoNdKWnZtM059WQUvkb9OMrabHBem +=aFQ8 +-----END PGP SIGNATURE----- diff --git a/www-apache/mod_auth_token/files/75_mod_auth_token.conf b/www-apache/mod_auth_token/files/75_mod_auth_token.conf new file mode 100644 index 000000000000..3962fc66a708 --- /dev/null +++ b/www-apache/mod_auth_token/files/75_mod_auth_token.conf @@ -0,0 +1,26 @@ +<IfDefine AUTH_TOKEN> + + LoadModule auth_token_module modules/mod_auth_token.so + + # The token is an hex-encoded MD5 hash of the secret password, relative file + # path and the timestamp. It is encoded onto the URI as: + # <uri-prefix><token>/<timestamp-in-hex><rel-path + # where the token is generated as + # md5("secret" + "/path/to/file.txt" + dechex(time_now())) + # To add the IP of client into the in the md5 hash, enable AuthTokenLimitByIp. + + #<Location /protected/> + #AuthTokenSecret "secret" + #AuthTokenPrefix /protected/ + #AuthTokenTimeout 60 + #AuthTokenLimitByIp off + #</Location> + + # Example: + # /protected/dee0ed6174a894113d5e8f6c98f0e92b/43eaf9c5/path/to/file.txt + # maps to + # /protected/path/to/file.txt + +</IfDefine> + +# vim: ts=4 filetype=apache
\ No newline at end of file diff --git a/www-apache/mod_auth_token/files/mod_auth_token-1.0.6_beta-ap_pstrcat.patch b/www-apache/mod_auth_token/files/mod_auth_token-1.0.6_beta-ap_pstrcat.patch new file mode 100644 index 000000000000..54a00e072fa4 --- /dev/null +++ b/www-apache/mod_auth_token/files/mod_auth_token-1.0.6_beta-ap_pstrcat.patch @@ -0,0 +1,13 @@ +Index: mod_auth_token/mod_auth_token.c +=================================================================== +--- mod_auth_token.orig/mod_auth_token.c ++++ mod_auth_token/mod_auth_token.c +@@ -64,7 +64,7 @@ static const char *auth_token_set_prefix + auth_token_config_rec *conf = (auth_token_config_rec*)config; + + if (arg[len - 1] != '/') { +- ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, '/')); ++ ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, "/", NULL)); + conf->prefix_len = len + 1; + } + else { diff --git a/www-apache/mod_auth_token/metadata.xml b/www-apache/mod_auth_token/metadata.xml new file mode 100644 index 000000000000..e12def24c0a2 --- /dev/null +++ b/www-apache/mod_auth_token/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> + <maintainer> + <email>pavel.stratil-jun@fenix.cz</email> + <description>Proxied co-maintainer, CC on all bugs</description> + </maintainer> +</pkgmetadata> diff --git a/www-apache/mod_auth_token/mod_auth_token-1.0.6_beta.ebuild b/www-apache/mod_auth_token/mod_auth_token-1.0.6_beta.ebuild new file mode 100644 index 000000000000..6b98598d8d5f --- /dev/null +++ b/www-apache/mod_auth_token/mod_auth_token-1.0.6_beta.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $ + +EAPI=3 + +inherit apache-module + +MY_P="${PN}-${PV/_/-}" +DESCRIPTION="Token based URI access module for Apache2." +HOMEPAGE="http://code.google.com/p/mod-auth-token/" +SRC_URI="http://mod-auth-token.googlecode.com/files/${MY_P}.tar.gz" + +KEYWORDS="~amd64" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="" +RDEPEND="" + +APACHE2_MOD_CONF="75_${PN}" +APACHE2_MOD_DEFINE="AUTH_TOKEN" + +need_apache2_2 + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ap_pstrcat.patch +} |