summaryrefslogtreecommitdiff
path: root/www-apache/mod_auth_radius
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apache/mod_auth_radius
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apache/mod_auth_radius')
-rw-r--r--www-apache/mod_auth_radius/Manifest7
-rw-r--r--www-apache/mod_auth_radius/files/1.5.8-includes.patch25
-rw-r--r--www-apache/mod_auth_radius/files/1.5.8-remote_ip-obsolete.patch21
-rw-r--r--www-apache/mod_auth_radius/metadata.xml8
-rw-r--r--www-apache/mod_auth_radius/mod_auth_radius-1.5.8.ebuild39
5 files changed, 100 insertions, 0 deletions
diff --git a/www-apache/mod_auth_radius/Manifest b/www-apache/mod_auth_radius/Manifest
new file mode 100644
index 000000000000..5c00db522e21
--- /dev/null
+++ b/www-apache/mod_auth_radius/Manifest
@@ -0,0 +1,7 @@
+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 762 SHA256 3ff68d7835a79c54cc21fa19c671db3cb2bcb6fbe656c484b2d2697c5225936c SHA512 43e55f7e6ebc3cd4ba9ba797d97f998aa5c2b286dbdd90eff70ec94f36486da6ba860ffc7a144196e8c4ac94124d2c39fa7e6582300e241aafd604fa871222a6 WHIRLPOOL 35d5821466d81f956e155a3e43ee19b841cd0367c52050832a4aca93d86dde1bed2c8f14188be5e829d5048948c1a2214f4ad3519e8ed371166da6cc44fb93a9
+MISC ChangeLog 2272 SHA256 5f2e2d42217d40dc89debce4cdd888a4772a6b4a9c4eaa902f027bf93c46f76e SHA512 204098ceeee253df1ab43e684bd6ea6230cd9d4b484dbc3dbf454c524453ad9bef4b195af01a173a357e7a45712fd189faa0911ca8b203fe7bb819dd236394a4 WHIRLPOOL ae065ae3d2f4d04bdbfec574a4f7af21b6cce5053b910799791333afa6c9eb8036c0f67020fd74b9b4376271bf82653b3d1d784c01ccc208b2e137eff1164ee3
+MISC ChangeLog-2015 985 SHA256 3ade83be14c8081340006f64d8edf88ff9223a7daed30b6e064a2aa9782b37ea SHA512 3f4a034cbd9570510c62ae22797bcfc4c166f139b8ad5e36a78fea0d167d06ad65791edb4eb66b4cee7ea4d1c59985020953ed74b1b9ce908de5365e4553391f WHIRLPOOL 4663265dc38890e96444b176bfe142512a9e4db950341e04254324a88dc8cfc86c3411f70777942a8bc0fc20dd0f62d10c5bf2b97338a36a3bdbe836f338e095
+MISC metadata.xml 251 SHA256 f6ff468128d9aa804b47d9a184c761b4123b908d302eec0953226acd00fc80df SHA512 7ea734b9e52a4e36b11e004da4a8178aa529574adee2129ba57b1ce75fd5017431fdfffe7a4a536c798ae645497a44b07c748d77308325cf4d6af070ff167edd WHIRLPOOL 1610f6ab9cfa21736bbc4643fec692b621f8889a5888b4189847af4aa6f5719829cfaba363c480483fe7e8fb2c40d417e986964b52cb21d564940c4b51f8554d
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..5087760546f6
--- /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 type="person">
+ <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..878aebee4c0e
--- /dev/null
+++ b/www-apache/mod_auth_radius/mod_auth_radius-1.5.8.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit apache-module eutils
+
+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"
+
+DOCFILES="README"
+
+need_apache2
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-includes.patch"
+ if has_version ">=www-servers/apache-2.4"; then
+ epatch "${FILESDIR}/${PV}-remote_ip-obsolete.patch"
+ fi
+}
+
+src_compile() {
+ apache-module_src_compile
+}
+
+src_install() {
+ apache-module_src_install
+}