Adding RHEL build support for mod_auth_gssapi
authorStefan Paetow <stefan.paetow@jisc.ac.uk>
Tue, 27 Jan 2015 12:12:22 +0000 (12:12 +0000)
committerSam Hartman <hartmans@debian.org>
Thu, 21 May 2015 18:37:16 +0000 (14:37 -0400)
[Sam Hartman]
* Let make dist handle running autoreconf for us
* Clean up whitespace

mod_auth_gssapi.conf [new file with mode: 0644]
mod_auth_gssapi.spec [new file with mode: 0644]

diff --git a/mod_auth_gssapi.conf b/mod_auth_gssapi.conf
new file mode 100644 (file)
index 0000000..efa7459
--- /dev/null
@@ -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.
+#
+
+<IfModule mod_auth_gssapi.c>
+
+#   <Location /secure>
+#
+#      AuthType Negotiate
+#      require valid-user
+#
+#   </Location>
+
+</IfModule>
diff --git a/mod_auth_gssapi.spec b/mod_auth_gssapi.spec
new file mode 100644 (file)
index 0000000..fcb13b1
--- /dev/null
@@ -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 <stefan.paetow@jisc.ac.uk> 1.0-1
+- Initial build.