[packages/apache1-mod_auth_radius] - initial

qboosh qboosh at pld-linux.org
Wed Apr 1 21:30:02 CEST 2015


commit 95a623affe8ecef95d4153be82dc674b51f31c92
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Apr 1 21:31:14 2015 +0200

    - initial

 apache1-mod_auth_radius-conf.patch | 52 ++++++++++++++++++++++++++++++
 apache1-mod_auth_radius.spec       | 65 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 117 insertions(+)
---
diff --git a/apache1-mod_auth_radius.spec b/apache1-mod_auth_radius.spec
new file mode 100644
index 0000000..b69b5b4
--- /dev/null
+++ b/apache1-mod_auth_radius.spec
@@ -0,0 +1,65 @@
+%define 	apxs		%{_sbindir}/apxs1
+Summary:	RADIUS authentication module for the Apache 1.x webserver
+Summary(pl.UTF-8):	Moduł uwierzytelniający RADIUS dla serwera WWW Apache 1.x
+Name:		apache1-mod_auth_radius
+Version:	1.5.8
+Release:	1
+License:	Apache-like
+Group:		Networking/Daemons
+Source0:	ftp://ftp.freeradius.org/pub/freeradius/mod_auth_radius-%{version}.tar
+# Source0-md5:	87d8ef049736254cc09f8b34667f0e59
+Patch0:		%{name}-conf.patch
+URL:		http://www.freeradius.org/
+BuildRequires:	apache1-devel >= 1.3.33-2
+BuildRequires:	rpmbuild(macros) >= 1.228
+Requires(triggerpostun):	%{apxs}
+Requires(triggerpostun):	grep
+Requires(triggerpostun):	sed >= 4.0
+Requires:	apache1(EAPI)
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)
+
+%description
+This is the Apache RADIUS authentication module. It allows any Apache
+web-server to become a RADIUS client for authentication and accounting
+requests. You will, however, need to supply your own RADIUS server to
+perform the actual authentication.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera moduł uwierzytelniający RADIUS dla serwera WWW
+Apache. Pozwala dowolnemu serwerowi Apache stać się klientem RADIUS na
+potrzeby żądań uwierzytelniania i rozliczania. Aby wykonywać właściwe
+uwierzytelnianie potrzebny jest własny serwer RADIUS.
+
+%prep
+%setup -q -n mod_auth_radius-%{version}
+%patch0 -p1
+
+%build
+%{apxs} -c mod_auth_radius.c -o mod_auth_radius.so
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
+
+install -p mod_auth_radius.so $RPM_BUILD_ROOT%{_pkglibdir}
+cp -p httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_auth_radius.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service apache restart
+
+%postun
+if [ "$1" = "0" ]; then
+	%service -q apache restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc README htaccess index.html
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/90_mod_auth_radius.conf
+%attr(755,root,root) %{_pkglibdir}/mod_auth_radius.so
diff --git a/apache1-mod_auth_radius-conf.patch b/apache1-mod_auth_radius-conf.patch
new file mode 100644
index 0000000..49ea742
--- /dev/null
+++ b/apache1-mod_auth_radius-conf.patch
@@ -0,0 +1,52 @@
+--- mod_auth_radius-1.5.8/httpd.conf.orig	2009-05-16 10:31:47.000000000 +0200
++++ mod_auth_radius-1.5.8/httpd.conf	2015-03-31 19:17:59.353023737 +0200
+@@ -1,14 +1,7 @@
+ ######################################################################
+-#  Modifications to the httpd.conf file for mod_auth_radius.c
++#  Additions to the httpd.conf file for mod_auth_radius.c
+ #  written by Alan DeKok <aland at freeradius.org>
+ #
+-#  Version: $Id$
+-#
+-######################################################################
+-#
+-#  These configuration options should be ADDED to the httpd.conf file
+-#  for your site.
+-#
+ ######################################################################
+ 
+ 
+@@ -16,17 +9,12 @@
+ #
+ # Tell Apache to load the module.
+ #
+-LoadModule radius_auth_module   libexec/mod_auth_radius.so
+-# the path to the module file will depend on your Apache installation, e.g.
+-#LoadModule radius_auth_module /usr/lib/apache2/modules/mod_auth_radius.so
++LoadModule radius_auth_module   modules/mod_auth_radius.so
+ 
+ ######################################################################
+ #
+ # With Apache 1.x, it is necessary to add an 'AddModule' statement.
+-#  The order of the modules listed by 'AddModule' can be important.
+-# This seems to work:
+-# just AFTER 'AddModule mod_auth.c' add:
+-# AddModule mod_auth_radius.c
++AddModule mod_auth_radius.c
+ 
+ 
+ ######################################################################
+@@ -106,13 +94,6 @@
+ #
+ #AuthRadiusAuthoritative on
+ 
+-# Apache 2.x specific setting:
+-#
+-# Set RADIUS to be the provider for this basic authentication
+-#
+-AuthBasicProvider radius
+-
+-
+ #
+ # Make a local variation of AddRadiusCookieValid.  The server will choose
+ # the MINIMUM of the two values.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache1-mod_auth_radius.git/commitdiff/95a623affe8ecef95d4153be82dc674b51f31c92



More information about the pld-cvs-commit mailing list