From 92918ae9ff4fd0a8108b9414f1edc98d477cf019 Mon Sep 17 00:00:00 2001 From: Stefan Paetow Date: Tue, 27 Jan 2015 12:12:22 +0000 Subject: [PATCH] Adding RHEL build support for mod_auth_gssapi [Sam Hartman] * Let make dist handle running autoreconf for us * Clean up whitespace --- mod_auth_gssapi.conf | 31 +++++++++++++++++++++++++++++++ mod_auth_gssapi.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 mod_auth_gssapi.conf create mode 100644 mod_auth_gssapi.spec diff --git a/mod_auth_gssapi.conf b/mod_auth_gssapi.conf new file mode 100644 index 0000000..efa7459 --- /dev/null +++ b/mod_auth_gssapi.conf @@ -0,0 +1,31 @@ +# RPM installations on platforms with a conf.d directory will +# result in this file being copied into that directory for you +# and preserved across upgrades. + +# For non-RPM installs, you should copy the relevant contents of +# this file to a configuration location you control. + +LoadModule auth_gssapi_module modules/mod_auth_gssapi.so + +# +# This module requires KeepAlive to be switched On to allow GSSAPI +# to perform multiple round-trips during authentication. +# +# To use this module, client browsers must have SPNEGO switched on. +# See browser documentation for details. +# + +# +# Configure the module for content. +# + + + +# +# +# AuthType Negotiate +# require valid-user +# +# + + diff --git a/mod_auth_gssapi.spec b/mod_auth_gssapi.spec new file mode 100644 index 0000000..fcb13b1 --- /dev/null +++ b/mod_auth_gssapi.spec @@ -0,0 +1,47 @@ +Summary: GSSAPI authentication module for the Apache HTTP Server +Name: mod_auth_gssapi +Version: 1.0 +Release: 1%{?dist +License: BSD +Group: System Environment/Daemons +URL: http://wiki.moonshot.ja.net/ +Source0: %{name}-%{version}.tar.gz +BuildRequires: httpd-devel, krb5-devel, libtool + +%description +The mod_auth_gssapi package provides support for authenticating +users of the Apache HTTP server using the SPNEGO-based HTTP +Authentication protocol defined in RFC4559. + +%prep +%setup -q -n mod_auth_kerb-moonshot + +%build +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT + +# install the DSO +mkdir -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules +install -m 755 .libs/mod_auth_gssapi.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules + +# install the conf.d fragment +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d +install -m 644 $RPM_SOURCE_DIR/mod_auth_gssapi.conf \ + $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/auth_gssapi.conf + +rm -f $RPM_BUILD_ROOT%{_libdir}/httpd/modules/{*.la,*.so.*} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_sysconfdir}/httpd/conf.d/auth_gssapi.conf +%{_libdir}/httpd/modules/*.so + +%changelog +* Fri Jan 16 2015 Stefan Paetow 1.0-1 +- Initial build. -- 2.1.4