summaryrefslogtreecommitdiffstats
path: root/mod_authnz_external.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-13 18:43:31 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-13 18:43:31 +0200
commitb729092c0fb9f7313bfe8c6898940cf97910f218 (patch)
treeb4ff8062b89a06853c957c019bb14338712d53df /mod_authnz_external.spec
reorg repoHEADmaster
Diffstat (limited to 'mod_authnz_external.spec')
-rw-r--r--mod_authnz_external.spec60
1 files changed, 60 insertions, 0 deletions
diff --git a/mod_authnz_external.spec b/mod_authnz_external.spec
new file mode 100644
index 0000000..2146442
--- /dev/null
+++ b/mod_authnz_external.spec
@@ -0,0 +1,60 @@
+%global modsuffix authnz_external
+%global conffile %{modsuffix}.conf
+
+Summary: An Apache module used for authentication
+Name: mod_%{modsuffix}
+Version: 3.3.1
+Release: 1%{?dist}
+License: ASL 1.0
+Group: System Environment/Libraries
+URL: http://code.google.com/p/mod-auth-external/
+Source: http://mod-auth-external.googlecode.com/files/%{name}-%{version}.tar.gz
+Source1: %{conffile}
+Patch1: mod_authnz_external-3.3.1-remote_ip.patch
+Requires: pwauth, httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing)
+BuildRequires: httpd-devel
+
+%description
+Mod_Auth_External can be used to quickly construct secure, reliable
+authentication systems. It can also be mis-used to quickly open gaping
+holes in your security. Read the documentation, and use with extreme
+caution.
+
+%global modulesdir %{_libdir}/httpd/modules
+%global confdir %{_sysconfdir}/httpd/conf
+
+
+%prep
+%setup -q
+%patch1 -p1 -b .remote_ip
+
+%build
+apxs -c -I . %{name}.c
+
+
+%install
+mkdir -p %{buildroot}%{modulesdir} %{buildroot}%{confdir}.d
+apxs -i -S LIBEXECDIR=%{buildroot}%{modulesdir} -n %{name} %{name}.la
+install -p -m 644 -t %{buildroot}%{confdir}.d/ %{SOURCE1}
+
+# in case we're on a 64-bit machine, otherwise a no-op
+sed -i \
+ -e 's@/usr/lib/@%{_libdir}/@' \
+ %{buildroot}%{confdir}.d/%{conffile}
+
+
+%files
+%{modulesdir}/%{name}.so
+%config(noreplace) %lang(en) %{confdir}.d/%{conffile}
+%doc AUTHENTICATORS CHANGES README TODO UPGRADE
+
+
+%changelog
+* Sun May 20 2012 Remi Collet <RPMS@FamilleCollet.com> - 3.3.1-1
+- sync with rawhide, build for remi-dev repo.
+
+* Fri May 05 2012 Philip Prindeville <philipp@fedoraproject.org> 3.2.6-1
+- Initial version post packaging review.
+
+* Tue Apr 17 2012 Philip Prindeville <philipp@fedoraproject.org> 3.2.6-0
+- Initial RPM packaging.