]> git.pld-linux.org Git - packages/apache1-mod_auth_radius.git/commitdiff
- initial master
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 1 Apr 2015 19:31:14 +0000 (21:31 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 1 Apr 2015 19:31:14 +0000 (21:31 +0200)
apache1-mod_auth_radius-conf.patch [new file with mode: 0644]
apache1-mod_auth_radius.spec [new file with mode: 0644]

diff --git a/apache1-mod_auth_radius-conf.patch b/apache1-mod_auth_radius-conf.patch
new file mode 100644 (file)
index 0000000..49ea742
--- /dev/null
@@ -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@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.
diff --git a/apache1-mod_auth_radius.spec b/apache1-mod_auth_radius.spec
new file mode 100644 (file)
index 0000000..b69b5b4
--- /dev/null
@@ -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
This page took 0.035789 seconds and 4 git commands to generate.