Blame SPECS/mod_auth_kerb.spec

0e5650
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
0e5650
%{!?_httpd_mmn:        %{expand: %%global _httpd_mmn        %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo missing-httpd-devel)}}
0e5650
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
0e5650
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
0e5650
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
0e5650
%{!?_httpd_moddir:    %{expand: %%global _httpd_moddir    %%{_libdir}/httpd/modules}}
0e5650
0e5650
Summary: Kerberos authentication module for HTTP
0e5650
Name: mod_auth_kerb
0e5650
Version: 5.4
2127c3
Release: 28%{?dist}
0e5650
# src/mod_auth_kerb.c is under 3-clause BSD, ASL 2.0 code is patched in (-s4u2proxy.patch)
0e5650
# src/mit-internals.h contains MIT-licensed code.
0e5650
License: BSD and MIT and ASL 2.0
0e5650
Group: System Environment/Daemons
0e5650
URL: http://modauthkerb.sourceforge.net/
0e5650
Source0: http://downloads.sourceforge.net/modauthkerb/%{name}-%{version}.tar.gz
0e5650
Source1: auth_kerb.conf
0e5650
Source2: LICENSE.ASL
0e5650
Patch1: mod_auth_kerb-5.4-rcopshack.patch
0e5650
Patch2: mod_auth_kerb-5.4-fixes.patch
0e5650
Patch3: mod_auth_kerb-5.4-s4u2proxy.patch
0e5650
Patch4: mod_auth_kerb-5.4-httpd24.patch
0e5650
Patch5: mod_auth_kerb-5.4-delegation.patch
0e5650
Patch6: mod_auth_kerb-5.4-cachedir.patch
0e5650
Patch7: mod_auth_kerb-5.4-longuser.patch
0e5650
Patch8: mod_auth_kerb-5.4-expired.patch
0e5650
BuildRequires: httpd-devel, krb5-devel
0e5650
Requires: httpd-mmn = %{_httpd_mmn}
0e5650
Requires(pre): httpd
0e5650
0e5650
# Suppres auto-provides for module DSO
0e5650
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
0e5650
%{?filter_setup}
0e5650
0e5650
%description
0e5650
mod_auth_kerb is module for the Apache HTTP Server designed to
0e5650
provide Kerberos authentication over HTTP.  The module supports the
0e5650
Negotiate authentication method, which performs full Kerberos
0e5650
authentication based on ticket exchanges.
0e5650
0e5650
%prep
0e5650
%setup -q -n %{name}-%{version}
0e5650
%patch1 -p1 -b .rcopshack
0e5650
%patch2 -p1 -b .fixes
0e5650
%patch3 -p1 -b .s4u2proxy
0e5650
%patch4 -p1 -b .httpd24
0e5650
%patch5 -p1 -b .delegation
0e5650
%patch6 -p1 -b .cachedir
0e5650
%patch7 -p1 -b .longuser
0e5650
%patch8 -p1 -b .expired
0e5650
0e5650
%build
0e5650
export APXS=%{_httpd_apxs}
0e5650
%configure --without-krb4 --with-krb5=%{_prefix}
0e5650
make %{?_smp_mflags} 
0e5650
0e5650
%install
0e5650
rm -rf $RPM_BUILD_ROOT
0e5650
install -Dm 755 src/.libs/mod_auth_kerb.so \
0e5650
        $RPM_BUILD_ROOT%{_httpd_moddir}/mod_auth_kerb.so
0e5650
0e5650
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
0e5650
# httpd >= 2.4.x
0e5650
sed -n /^LoadModule/p %{SOURCE1} > 10-auth_kerb.conf
0e5650
sed '/LoadModule/d;/Location /,/Location>/s,^#,,' %{SOURCE1} > example.conf
0e5650
install -Dp -m 0644 10-auth_kerb.conf $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-auth_kerb.conf
0e5650
%else
0e5650
# httpd <= 2.2.x
0e5650
install -Dp -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_confdir}/auth_kerb.conf
0e5650
%endif
0e5650
0e5650
# Credentials cache
0e5650
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d
0e5650
echo 'd /run/httpd/krbcache 700 apache apache' \
0e5650
     > $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/httpd-krbcache.conf
0e5650
mkdir -p $RPM_BUILD_ROOT/run/httpd/krbcache
0e5650
0e5650
# Copy the license files here so we can include them in %doc
0e5650
cp -p %{SOURCE2} .
0e5650
0e5650
%files
0e5650
%doc README LICENSE LICENSE.ASL
0e5650
%config(noreplace) %{_httpd_modconfdir}/*.conf
0e5650
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
0e5650
%doc example.conf
0e5650
%endif
0e5650
%{_httpd_moddir}/*.so
0e5650
%{_prefix}/lib/tmpfiles.d/httpd-krbcache.conf
0e5650
%attr(0700,apache,apache) %dir /run/httpd/krbcache
0e5650
0e5650
%changelog
2127c3
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.4-28
2127c3
- Mass rebuild 2014-01-24
2127c3
2127c3
* Mon Jan 13 2014 Joe Orton <jorton@redhat.com> - 5.4-27
2127c3
- rebuild for #1029360
2127c3
2127c3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.4-26
2127c3
- Mass rebuild 2013-12-27
2127c3
0e5650
* Thu Oct 03 2013 Jan Kaluza <jkaluza@redhat.com> - 5.4-25
0e5650
- don't fail with error 500 when ticket is expired and Authorization header is
0e5650
  provided by client (#982521)
0e5650
0e5650
* Tue Jun 04 2013 Jan Kaluza <jkaluza@redhat.com> - 5.4-24
0e5650
- don't truncate translated names with KrbLocalUserMapping
0e5650
0e5650
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-23
0e5650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0e5650
0e5650
* Thu Nov 15 2012 Joe Orton <jorton@redhat.com> - 5.4-22
0e5650
- clarify licensing; clean up spec file
0e5650
0e5650
* Tue Nov 13 2012 Joe Orton <jorton@redhat.com> - 5.4-21
0e5650
- fix httpd_mmn stderr filter (thanks rcollet)
0e5650
0e5650
* Tue Nov 13 2012 Joe Orton <jorton@redhat.com> - 5.4-20
0e5650
- hide stderr if finding httpd_mmn 
0e5650
- package LICENSE
0e5650
- filter DSO auto provides
0e5650
0e5650
* Wed Aug  8 2012 Joe Orton <jorton@redhat.com> - 5.4-19
0e5650
- add Requires(pre) for httpd to ensure apache uid exists at install time
0e5650
0e5650
* Wed Aug  8 2012 Joe Orton <jorton@redhat.com> - 5.4-18
0e5650
- move ccache to /run/httpd/ccache
0e5650
0e5650
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-17
0e5650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0e5650
0e5650
* Wed Jun 13 2012 Joe Orton <jorton@redhat.com> - 5.4-16
0e5650
- hard-code use of /run/user/apache for cache dir
0e5650
- package /run/user/apache
0e5650
- move tmpfiles drop-in to /usr/lib
0e5650
0e5650
* Wed Jun 13 2012 Joe Orton <jorton@redhat.com> - 5.4-15
0e5650
- fix segfault in cache dir fix (#796430)
0e5650
0e5650
* Fri May 11 2012 Joe Orton <jorton@redhat.com> - 5.4-14
0e5650
- add tmpfile drop-in for cred cache (#796430)
0e5650
- really apply delegation fix
0e5650
0e5650
* Tue May  1 2012 Joe Orton <jorton@redhat.com> - 5.4-13
0e5650
- add delegation fix (Ben Kahn, mgbowman, #687975)
0e5650
0e5650
* Tue Mar 27 2012 Joe Orton <jorton@redhat.com> - 5.4-12
0e5650
- rebuild for httpd 2.4
0e5650
0e5650
* Fri Mar  9 2012 Joe Orton <jorton@redhat.com> - 5.4-11
0e5650
- adapt for 2.4 API
0e5650
0e5650
* Thu Mar  1 2012 Rob Crittenden <rcritten@redhat.com> - 5.4-10
0e5650
- Updated s4u2proxy patch to add missing braces around conditional.
0e5650
0e5650
* Tue Jan 31 2012 Rob Crittenden <rcritten@redhat.com> - 5.4-9
0e5650
- Add support for Constrained Delegation/s4u2proxy (#767740)
0e5650
0e5650
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-8
0e5650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0e5650
0e5650
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-7
0e5650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0e5650
0e5650
* Thu Dec  9 2010 Joe Orton <jorton@redhat.com> - 5.4-6
0e5650
- fix build (thanks to Mike Bonnet, #599754)
0e5650
0e5650
* Fri Aug 07 2009 Parag <paragn@fedoraproject.org> 5.4-5
0e5650
- Spec cleanup as suggested in review bug #226150
0e5650
0e5650
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-4
0e5650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0e5650
0e5650
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-3
0e5650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0e5650
0e5650
* Thu Dec 11 2008 Joe Orton <jorton@redhat.com> 5.4-2
0e5650
- update to 5.4
0e5650
0e5650
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.3-7
0e5650
- Autorebuild for GCC 4.3
0e5650
0e5650
* Tue Sep 25 2007 Joe Orton <jorton@redhat.com> 5.3-6
0e5650
- fix configure invocation (#301181)
0e5650
0e5650
* Sun Sep  2 2007 Joe Orton <jorton@redhat.com> 5.3-5
0e5650
- rebuild for fixed 32-bit APR
0e5650
0e5650
* Thu Aug 30 2007 Joe Orton <jorton@redhat.com> 5.3-4
0e5650
- clarify License tag
0e5650
0e5650
* Wed Nov 29 2006 Joe Orton <jorton@redhat.com> 5.3-3
0e5650
- fix r->user caching (Enrico Scholz, #214207)
0e5650
- update to 5.3 (CVE-2006-5989, #215443)
0e5650
0e5650
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 5.1-3
0e5650
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
0e5650
0e5650
* Tue Sep 19 2006 Joe Orton <jorton@redhat.com> 5.1-2
0e5650
- update to 5.1
0e5650
0e5650
* Thu Aug  3 2006 Joe Orton <jorton@redhat.com> 5.0-10
0e5650
- fix segfault at startup (#201145)
0e5650
0e5650
* Thu Jul 20 2006 Joe Orton <jorton@redhat.com> 5.0-9
0e5650
- add Russ Allbery's fix for disabling replay cache with krb15
0e5650
0e5650
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.0-8.2.2
0e5650
- rebuild
0e5650
0e5650
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0-8.2.1
0e5650
- bump again for double-long bug on ppc(64)
0e5650
0e5650
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0-8.2
0e5650
- rebuilt for new gcc4.1 snapshot and glibc changes
0e5650
0e5650
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
0e5650
- rebuilt
0e5650
0e5650
* Mon Dec  5 2005 Joe Orton <jorton@redhat.com> 5.0-8
0e5650
- rebuild for httpd 2.2
0e5650
0e5650
* Wed Sep 21 2005 Joe Orton <jorton@redhat.com> 5.0-7
0e5650
- fix build without /usr/sbin in $PATH (Roozbeh Pournader, #168212)
0e5650
0e5650
* Tue May 10 2005 Joe Orton <jorton@redhat.com> 5.0-6
0e5650
- update to 5.0rc6
0e5650
- don't force CC=gcc4
0e5650
0e5650
* Fri Mar  4 2005 Joe Orton <jorton@redhat.com> 5.0-3
0e5650
- fix build with GCC 4
0e5650
- only add "auth_kerb_module" symbol to dynamic symbol table
0e5650
0e5650
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
0e5650
- rebuilt
0e5650
0e5650
* Thu Apr  8 2004 Joe Orton <jorton@redhat.com> 5.0-0.rc4.5
0e5650
- remove static globals
0e5650
- add SSLRequireSSL
0e5650
0e5650
* Mon Mar 29 2004 Joe Orton <jorton@redhat.com> 5.0-0.rc4.3
0e5650
- support mutual authentication (Nalin Dahyabhai)
0e5650
- once authentication returns COMPLETE, cache name for the duration
0e5650
  of the connection
0e5650
0e5650
* Thu Mar 25 2004 Joe Orton <jorton@redhat.com> 5.0-0.rc4.2
0e5650
- add example config file
0e5650
0e5650
* Wed Mar 24 2004 Joe Orton <jorton@redhat.com> 5.0-0.rc4.1
0e5650
- update to mod_auth_kerb.c from HEAD to get workaround for
0e5650
  "Request is a replay" errors
0e5650
0e5650
* Tue Mar 23 2004 Joe Orton <jorton@redhat.com> 
0e5650
- Initial build.