summaryrefslogtreecommitdiff
path: root/pam_radius_auth.spec
diff options
context:
space:
mode:
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>2012-10-24 08:18:01 +0100
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>2012-10-24 08:18:01 +0100
commitc2c2b9c4b0571f4e6050de78ae8fd813d1be7431 (patch)
tree12d9d04d58daec7558ab0ae63c7c52ac7d14642f /pam_radius_auth.spec
downloadlibpam-radius-auth-c2c2b9c4b0571f4e6050de78ae8fd813d1be7431.tar.gz
libpam-radius-auth-c2c2b9c4b0571f4e6050de78ae8fd813d1be7431.zip
Commit of version 1.3.17
Diffstat (limited to 'pam_radius_auth.spec')
-rw-r--r--pam_radius_auth.spec51
1 files changed, 51 insertions, 0 deletions
diff --git a/pam_radius_auth.spec b/pam_radius_auth.spec
new file mode 100644
index 0000000..4251c10
--- /dev/null
+++ b/pam_radius_auth.spec
@@ -0,0 +1,51 @@
+%define name pam_radius_auth
+%define version 1.3.15
+%define release 0
+
+Name: %{name}
+Summary: PAM Module for RADIUS Authentication
+Version: %{version}
+Release: %{release}
+Source: ftp://ftp.freeradius.org/pub/radius/pam_radius_auth-%{version}.tar
+URL: http://www.freeradius.org/pam_radius_auth/
+Group: System Environment/Libraries
+BuildRoot: %{_tmppath}/%{name}-buildroot
+License: BSD-like or GNU GPL
+Requires: pam
+
+%description
+This is the PAM to RADIUS authentication module. It allows any PAM-capable
+machine to become a RADIUS client for authentication and accounting
+requests. You will need a RADIUS server to perform the actual
+authentication.
+
+%prep
+%setup -q -n pam_radius-%{version}
+
+%build
+make
+
+%install
+mkdir -p %{buildroot}/lib/security
+cp -p pam_radius_auth.so %{buildroot}/lib/security
+mkdir -p %{buildroot}/etc/raddb
+[ -f %{buildroot}/etc/raddb/server ] || cp -p pam_radius_auth.conf %{buildroot}/etc/raddb/server
+chown root %{buildroot}/etc/raddb/server
+chgrp root %{buildroot}/etc/raddb/server
+chmod 0600 %{buildroot}/etc/raddb/server
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+
+%postun
+rmdir /etc/raddb || true
+
+%files
+%defattr(-,root,root,0755)
+%doc README INSTALL USAGE Changelog
+%config /etc/raddb/server
+/lib/security/pam_radius_auth.so
+
+%changelog
+* Mon Jun 03 2002 Richie Laager <rlaager@wiktel.com> 1.3.15-0
+- Inital RPM Version