diff options
author | 2013-05-08 13:52:15 +0000 | |
---|---|---|
committer | 2013-05-08 13:52:15 +0000 | |
commit | cf8b1b5c4d0da433a22bca833b6ccf384b4d0fce (patch) | |
tree | d3cb65b9b816053cd1bf359c06610a58af5499ed /www-apache | |
parent | Stable for sh, wrt bug #467452 (diff) | |
download | gentoo-2-cf8b1b5c4d0da433a22bca833b6ccf384b4d0fce.tar.gz gentoo-2-cf8b1b5c4d0da433a22bca833b6ccf384b4d0fce.tar.bz2 gentoo-2-cf8b1b5c4d0da433a22bca833b6ccf384b4d0fce.zip |
Initial commit; package requested by Steve Harrison in LINX IT. An initial ebuild was written by Vicente Olivert Riera, to which I added some minor patching and used the eclass a bit more.
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB5058F9A)
Diffstat (limited to 'www-apache')
-rw-r--r-- | www-apache/mod_auth_radius/ChangeLog | 13 | ||||
-rw-r--r-- | www-apache/mod_auth_radius/Manifest | 6 | ||||
-rw-r--r-- | www-apache/mod_auth_radius/files/1.5.8-includes.patch | 25 | ||||
-rw-r--r-- | www-apache/mod_auth_radius/files/1.5.8-remote_ip-obsolete.patch | 21 | ||||
-rw-r--r-- | www-apache/mod_auth_radius/metadata.xml | 8 | ||||
-rw-r--r-- | www-apache/mod_auth_radius/mod_auth_radius-1.5.8.ebuild | 38 |
6 files changed, 111 insertions, 0 deletions
diff --git a/www-apache/mod_auth_radius/ChangeLog b/www-apache/mod_auth_radius/ChangeLog new file mode 100644 index 000000000000..816153e71963 --- /dev/null +++ b/www-apache/mod_auth_radius/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for www-apache/mod_auth_radius +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_radius/ChangeLog,v 1.1 2013/05/08 13:52:15 chainsaw Exp $ + +*mod_auth_radius-1.5.8 (08 May 2013) + + 08 May 2013; Tony Vroon <chainsaw@gentoo.org> +mod_auth_radius-1.5.8.ebuild, + +files/1.5.8-includes.patch, +files/1.5.8-remote_ip-obsolete.patch, + +metadata.xml: + Initial commit; package requested by Steve Harrison in LINX IT. An initial + ebuild was written by Vicente Olivert Riera, to which I added some minor + patching and used the eclass a bit more. + diff --git a/www-apache/mod_auth_radius/Manifest b/www-apache/mod_auth_radius/Manifest new file mode 100644 index 000000000000..36e31151ac33 --- /dev/null +++ b/www-apache/mod_auth_radius/Manifest @@ -0,0 +1,6 @@ +AUX 1.5.8-includes.patch 719 SHA256 a6e6cd0791f0095986effcbaf4f8f1b1ca2a66f3c26076dd941f7fc5eba4744a SHA512 8c9bd0e4a9afd5ab009b956685bc0c94cef1a50dc112f701994804acd8fe821d1c25367c5bede3e95ad190149d1bd482dea90ff8824bb5a2aa20fa9451e81ad2 WHIRLPOOL d326d79d1bf5ec7222b37c1aa25d8d5afba8944cd478ba29e92e8ac3a49fe6e9e4c51e956f2610cb1706460c6269a06d820c427fed374e1d3a55715e6b237a46 +AUX 1.5.8-remote_ip-obsolete.patch 1326 SHA256 b80cf4f9c9c7f5062b7396c106b6b2f5c8962faa30b3f3ead3f39da7b4bac588 SHA512 172b319b90580e08200d787821e28fbd85ffb0dd6fb17566cbad62fd5908be225b7e7b34adc6cb0800f97650de2b0e5bc0cbe7e30f8fdb7ee75674bb7b670db4 WHIRLPOOL 738876f2c52c71d03304be321689a204925df5206711217d6b30840388902e40af48fcced94ca76e5bc924e187a1e59eeb65ed62a75c9859c7a01f7d36d306ef +DIST mod_auth_radius-1.5.8.tar 122880 SHA256 6a16cb64c8e3da5ccef5db007d3ab3fa53274bdb37c5f6b1821a12de42aa6d93 SHA512 0fcc43a44ea17b33595a850abb03ff6b92e100dfbeffc82caa9516f6eb7914fb463cb62286d624203a2c7035d05a107dda7b68c5cedf7de3b8be95b9266b6988 WHIRLPOOL 15ffe4db98758e0ef41390f46e97f686ed678b9358347de3b3257ba8d0fac9623935563040a0138c8c81179deb8dca0f998f90441c8b538d45e14548fbc97403 +EBUILD mod_auth_radius-1.5.8.ebuild 700 SHA256 fe48a58db951ec7932a14532c836228dc816e6d2409d459b7f15e09250ad0fd8 SHA512 f00f11beff1e365d8e4073e8797b92b4d3476749487236433f6a7de62ddea49a414e937976542ddc0b33292ae82647585491c8b5d961301fd7560ed6639c006d WHIRLPOOL f700c2d04ce4646098ed869f9c0cf8abb7226ffd1580b7e17fc09f4fd32514161fc0825a22cd0a8edf3867e0326e442bd6efe2c3fd153a890c3a971653934ff7 +MISC ChangeLog 527 SHA256 742023ab0a3b1f4ce9f3020dd0ade5db962e25b65c592c7cb623607c3ff755c3 SHA512 59897ac165dd977736cdfc407673616e854395e107d1804999a667e3a3a926b2a0a930009985eec7784ebcb831bf9de6232cdd9a71180df6329b1a4d1c0bfb61 WHIRLPOOL b54d9ca2b239a08e1a2be55c6ab5c8afbe1ba5005f1eb50bc04008f3380db07ae0da76c1a4c3fceb3c7929108d60d6c9153d0ae3cd807e59421f6dad507743c7 +MISC metadata.xml 237 SHA256 88d9092fd208599a8b524cca9633d9330223e45c34a44e54b2de05edb4738ac7 SHA512 11773ab2b5adaa81f3c8f73413d2f257ea1d1624df689154ee2697412ff14ea8f9851b805c4a474b486abb0a066cfc929f91eb852a208b9536885d467df36af1 WHIRLPOOL 324b778d3103d615af41fd6d1d978beeeeb08f4823a3c81fd453464b4df2ed59b56a481ddd65b4eb740dc75b4dc69133e761199abe6d27333b1fce97d5b5a1be diff --git a/www-apache/mod_auth_radius/files/1.5.8-includes.patch b/www-apache/mod_auth_radius/files/1.5.8-includes.patch new file mode 100644 index 000000000000..b1482c5f9bee --- /dev/null +++ b/www-apache/mod_auth_radius/files/1.5.8-includes.patch @@ -0,0 +1,25 @@ +diff -uNr mod_auth_radius-1.5.8.ORIG/mod_auth_radius-2.0.c mod_auth_radius-1.5.8/mod_auth_radius-2.0.c +--- mod_auth_radius-1.5.8.ORIG/mod_auth_radius-2.0.c 2013-05-08 14:26:19.103330264 +0100 ++++ mod_auth_radius-1.5.8/mod_auth_radius-2.0.c 2013-05-08 14:29:40.331333283 +0100 +@@ -287,15 +287,21 @@ + + */ + ++#include <arpa/inet.h> + #include <netdb.h> + #include <openssl/md5.h> + #include <sys/stat.h> ++#include <sys/types.h> ++#include <unistd.h> ++#include <sys/socket.h> ++#include <netinet/in.h> + + #include "httpd.h" + #include "http_config.h" + #include "http_core.h" + #include "http_log.h" + #include "http_protocol.h" ++#include "http_request.h" + #include "util_md5.h" + #include "apr_general.h" + #include "apr_tables.h" diff --git a/www-apache/mod_auth_radius/files/1.5.8-remote_ip-obsolete.patch b/www-apache/mod_auth_radius/files/1.5.8-remote_ip-obsolete.patch new file mode 100644 index 000000000000..77d0880e8d97 --- /dev/null +++ b/www-apache/mod_auth_radius/files/1.5.8-remote_ip-obsolete.patch @@ -0,0 +1,21 @@ +diff -uNr mod_auth_radius-1.5.8.ORIG/mod_auth_radius-2.0.c mod_auth_radius-1.5.8/mod_auth_radius-2.0.c +--- mod_auth_radius-1.5.8.ORIG/mod_auth_radius-2.0.c 2013-05-08 14:18:02.746322816 +0100 ++++ mod_auth_radius-1.5.8/mod_auth_radius-2.0.c 2013-05-08 14:19:03.589323729 +0100 +@@ -683,7 +683,7 @@ + * benefit here. + */ + apr_snprintf(one, COOKIE_SIZE, "%s%s%s%s%s%08x", scr->secret, +- r->user, passwd, c->remote_ip, hostname, expires); ++ r->user, passwd, c->client_ip, hostname, expires); + + /* if you're REALLY worried about what's going on */ + +@@ -691,7 +691,7 @@ + ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," secret = %s\n", scr->secret); + ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," user = %s\n", r->user); + ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," passwd = %s\n", passwd); +- ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," remote ip = %s\n", c->remote_ip); ++ ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," remote ip = %s\n", c->client_ip); + ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," hostname = %s\n", hostname); + ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," expiry = %08x\n", expires); + #endif diff --git a/www-apache/mod_auth_radius/metadata.xml b/www-apache/mod_auth_radius/metadata.xml new file mode 100644 index 000000000000..3ed4669f55a4 --- /dev/null +++ b/www-apache/mod_auth_radius/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> + </maintainer> +</pkgmetadata> diff --git a/www-apache/mod_auth_radius/mod_auth_radius-1.5.8.ebuild b/www-apache/mod_auth_radius/mod_auth_radius-1.5.8.ebuild new file mode 100644 index 000000000000..8783784e4046 --- /dev/null +++ b/www-apache/mod_auth_radius/mod_auth_radius-1.5.8.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_radius/mod_auth_radius-1.5.8.ebuild,v 1.1 2013/05/08 13:52:15 chainsaw Exp $ + +EAPI="5" + +inherit apache-module base + +DESCRIPTION="Radius authentication for Apache." +HOMEPAGE="http://freeradius.org/mod_auth_radius/" +SRC_URI="ftp://ftp.freeradius.org/pub/radius/${P}.tar" + +LICENSE="Apache-2.0" +KEYWORDS="~amd64" +SLOT="0" +IUSE="" + +APACHE2_MOD_FILE=".libs/mod_auth_radius-2.0.so" +APACHE2_MOD_DEFINE="AUTH_RADIUS" + +APXS2_ARGS="-c ${PN}-2.0.c" + +PATCHES=( + "${FILESDIR}/${PV}-includes.patch" + "${FILESDIR}/${PV}-remote_ip-obsolete.patch" +) + +DOCFILES="README" + +need_apache2 + +src_compile() { + apache-module_src_compile +} + +src_install() { + apache-module_src_install +} |