c44ce4
Name:		gssproxy
c44ce4
Version:	0.3.0
f77ce6
Release:	10%{?dist}
c44ce4
Summary:	GSSAPI Proxy
c44ce4
c44ce4
Group:		System Environment/Libraries
c44ce4
License:	MIT
c44ce4
URL:		http://fedorahosted.org/gss-proxy
c44ce4
Source0:	http://fedorahosted.org/released/gss-proxy/%{name}-%{version}.tar.gz
c44ce4
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
4c520e
Patch0:		gssproxy-0.3.0-gss_init_sec_context.patch
4c520e
Patch1:		gssproxy-0.3.0-gss_inquire_cred_by_mech.patch
4c520e
Patch2:		gssproxy-0.3.0-continuations.patch
4c520e
Patch3:		gssproxy-0.3.0-flags_handling.patch
4c520e
Patch4:		gssproxy-0.3.1-secure_getenv.patch
4c520e
Patch5:		gssproxy-0.3.1-strerror_r.patch
4c520e
Patch6:		gssproxy-0.3.1-nfsd_startup.patch
4c520e
Patch7:		gssproxy-0.3.1-deadlock_fix.patch
f77ce6
Patch8:		gssproxy-0.3.0-inquire-context.patch
c44ce4
c44ce4
%global servicename gssproxy
c44ce4
%global pubconfpath %{_sysconfdir}/gssproxy
c44ce4
%global gpstatedir %{_localstatedir}/lib/gssproxy
c44ce4
c44ce4
### Patches ###
c44ce4
c44ce4
### Dependencies ###
c44ce4
c44ce4
Requires: krb5-libs >= 1.11.3-27
c44ce4
Requires: keyutils-libs
c44ce4
Requires: libverto-tevent
c44ce4
Requires(post): systemd-units
c44ce4
Requires(preun): systemd-units
c44ce4
Requires(postun): systemd-units
c44ce4
c44ce4
### Build Dependencies ###
c44ce4
c44ce4
BuildRequires: autoconf
c44ce4
BuildRequires: automake
c44ce4
BuildRequires: libtool
c44ce4
BuildRequires: m4
c44ce4
BuildRequires: libxslt
c44ce4
BuildRequires: libxml2
c44ce4
BuildRequires: docbook-style-xsl
c44ce4
BuildRequires: doxygen
c44ce4
BuildRequires: gettext-devel
c44ce4
BuildRequires: pkgconfig
c44ce4
BuildRequires: krb5-devel >= 1.11.3-27
c44ce4
BuildRequires: libselinux-devel
c44ce4
BuildRequires: keyutils-libs-devel
c44ce4
BuildRequires: libini_config-devel >= 1.0.0.1
c44ce4
BuildRequires: libverto-devel
c44ce4
BuildRequires: popt-devel
c44ce4
BuildRequires: findutils
c44ce4
BuildRequires: systemd-units
c44ce4
c44ce4
c44ce4
%description
c44ce4
A proxy for GSSAPI credential handling
c44ce4
c44ce4
%prep
c44ce4
%setup -q
c44ce4
4c520e
%patch0 -p2 -b .gss_init_sec_context
4c520e
%patch1 -p2 -b .gss_inquire_cred_by_mech
4c520e
%patch2 -p2 -b .continuations
4c520e
%patch3 -p2 -b .flags_handling
4c520e
%patch4 -p2 -b .secure_getenv
4c520e
%patch5 -p2 -b .strerror_r
4c520e
%patch6 -p2 -b .nfsd_startup
4c520e
%patch7 -p2 -b .deadlock_fix
f77ce6
%patch8 -p2 -b .inq_context
4c520e
c44ce4
%build
c44ce4
autoreconf -f -i
c44ce4
%configure \
c44ce4
    --with-pubconf-path=%{pubconfpath} \
c44ce4
    --with-init-dir=%{_initrddir} \
c44ce4
    --disable-static \
c44ce4
    --disable-rpath \
c44ce4
    --with-gpp-default-behavior=REMOTE_FIRST
c44ce4
c44ce4
make %{?_smp_mflags} all
c44ce4
make test_proxymech
c44ce4
c44ce4
%install
c44ce4
rm -rf %{buildroot}
c44ce4
make install DESTDIR=%{buildroot}
c44ce4
rm -f %{buildroot}%{_libdir}/gssproxy/proxymech.la
c44ce4
install -d -m755 %{buildroot}%{_sysconfdir}/gssproxy
c44ce4
install -d -m755 %{buildroot}%{_unitdir}
c44ce4
install -m644 examples/gssproxy.conf %{buildroot}%{_sysconfdir}/gssproxy/gssproxy.conf
c44ce4
install -m644 examples/mech %{buildroot}%{_sysconfdir}/gss/mech
c44ce4
install -m644 systemd/gssproxy.service %{buildroot}%{_unitdir}/gssproxy.service
c44ce4
c44ce4
%clean
c44ce4
rm -rf %{buildroot}
c44ce4
c44ce4
c44ce4
%files
c44ce4
%defattr(-,root,root,-)
c44ce4
%doc COPYING
c44ce4
%{_unitdir}/gssproxy.service
c44ce4
%{_sbindir}/gssproxy
c44ce4
%attr(755,root,root) %dir %{pubconfpath}
c44ce4
%attr(755,root,root) %dir %{gpstatedir}
c44ce4
%attr(700,root,root) %dir %{gpstatedir}/clients
c44ce4
%attr(0600,root,root) %config(noreplace) /%{_sysconfdir}/gssproxy/gssproxy.conf
c44ce4
%attr(0644,root,root) %config(noreplace) /%{_sysconfdir}/gss/mech
c44ce4
%{_libdir}/gssproxy/proxymech.so
c44ce4
%{_mandir}/man5/gssproxy.conf.5*
c44ce4
%{_mandir}/man8/gssproxy.8*
c44ce4
%{_mandir}/man8/gssproxy-mech.8*
c44ce4
c44ce4
%post
c44ce4
%systemd_post gssproxy.service
c44ce4
c44ce4
%preun
c44ce4
%systemd_preun gssproxy.service
c44ce4
c44ce4
%postun
c44ce4
%systemd_postun_with_restart gssproxy.service
c44ce4
c44ce4
%changelog
f77ce6
* Fri Jan 23 2015 Simo Sorce <ssorce@redhat.com> 0.3.0-10
f77ce6
- Fix crash bug affecting updated rpc.gssd
f77ce6
- resolves: #1184531
f77ce6
4c520e
* Wed Mar 12 2014 Guenther Deschner <gdeschner@redhat.com> 0.3.0-9
4c520e
- Fix potential mutex deadlock
4c520e
- resolves: #1075268
4c520e
4c520e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.3.0-8
4c520e
- Mass rebuild 2014-01-24
4c520e
4c520e
* Thu Jan 16 2014 Guenther Deschner <gdeschner@redhat.com> 0.3.0-7
4c520e
- Fix nfsd startup
4c520e
- resolves: https://fedorahosted.org/gss-proxy/ticket/114
4c520e
- resolves: #1053710
4c520e
4c520e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.0-6
4c520e
- Mass rebuild 2013-12-27
4c520e
4c520e
* Tue Dec 17 2013 Guenther Deschner <gdeschner@redhat.com> 0.3.0-5
4c520e
- Fix flags handling.
4c520e
- resolves: https://fedorahosted.org/gss-proxy/ticket/112
4c520e
- related: #1031710
4c520e
4c520e
* Wed Nov 27 2013 Guenther Deschner <gdeschner@redhat.com> 0.3.0-4
4c520e
- Use secure_getenv
4c520e
- resolves: https://fedorahosted.org/gss-proxy/ticket/110
4c520e
- resolves: #1032684
4c520e
- Use strerror_r instead of strerror
4c520e
- resolves: https://fedorahosted.org/gss-proxy/ticket/111
4c520e
- resolves: #1033350
4c520e
4c520e
* Tue Nov 19 2013 Guenther Deschner <gdeschner@redhat.com> 0.3.0-3
4c520e
- Fix flags handling in gss_init_sec_context()
4c520e
- resolves: https://fedorahosted.org/gss-proxy/ticket/106
4c520e
- resolves: #1031713
4c520e
- Fix OID handling in gss_inquire_cred_by_mech()
4c520e
- resolves: https://fedorahosted.org/gss-proxy/ticket/107
4c520e
- resolves: #1031712
4c520e
- Fix continuation processing for not yet fully established contexts.
4c520e
- resolves: https://fedorahosted.org/gss-proxy/ticket/108
4c520e
- resolves: #1031711
4c520e
- Add flags filtering and flags enforcing.
4c520e
- resolves: https://fedorahosted.org/gss-proxy/ticket/109
4c520e
- resolves: #1031710
4c520e
c44ce4
* Wed Oct 23 2013 Guenther Deschner <gdeschner@redhat.com> 0.3.0-0
c44ce4
- New upstream release 0.3.0:
c44ce4
  * Add support for impersonation (depends on s4u2self/s4u2proxy on the KDC)
c44ce4
  * Add support for new rpc.gssd mode of operation that forks and changes uid
c44ce4
  * Add 2 new options allow_any_uid and cred_usage
c44ce4
c44ce4
* Fri Oct 18 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.3-8
c44ce4
- Fix default proxymech documentation and fix LOCAL_FIRST implementation
c44ce4
- resolves: https://fedorahosted.org/gss-proxy/ticket/105
c44ce4
c44ce4
* Wed Jul 24 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.3-6
c44ce4
- Add better default gssproxy.conf file for nfs client and server usage
c44ce4
c44ce4
* Thu Jun 06 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.3-5
c44ce4
- New upstream release
c44ce4
c44ce4
* Fri May 31 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.2-5
c44ce4
- Require libverto-tevent to make sure libverto initialization succeeds
c44ce4
c44ce4
* Wed May 29 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.2-4
c44ce4
- Modify systemd unit files for nfs-secure services
c44ce4
c44ce4
* Wed May 22 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.2-3
c44ce4
- Fix cred_store handling w/o client keytab
c44ce4
c44ce4
* Thu May 16 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.2-2
c44ce4
- New upstream release
c44ce4
c44ce4
* Tue May 07 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.1-2
c44ce4
- New upstream release
c44ce4
c44ce4
* Wed Apr 24 2013 Guenther Deschner <gdeschner@redhat.com> 0.2.0-1
c44ce4
- New upstream release
c44ce4
c44ce4
* Mon Apr 01 2013 Simo Sorce <simo@redhat.com> - 0.1.0-0
c44ce4
- New upstream release
c44ce4
c44ce4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-8
c44ce4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c44ce4
c44ce4
* Tue Nov 06 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.3-7
c44ce4
- Update to 0.0.3
c44ce4
c44ce4
* Wed Aug 22 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.2-6
c44ce4
- Use new systemd-rpm macros
c44ce4
- resolves: #850139
c44ce4
c44ce4
* Wed Jul 18 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.2-5
c44ce4
- More spec file fixes
c44ce4
c44ce4
* Mon Jul 16 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.2-4
c44ce4
- Fix systemd service file
c44ce4
c44ce4
* Fri Jul 13 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.2-3
c44ce4
- Fix various packaging issues
c44ce4
c44ce4
* Mon Jul 02 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.1-2
c44ce4
- Add systemd packaging
c44ce4
c44ce4
* Wed Mar 28 2012 Guenther Deschner <gdeschner@redhat.com> 0.0.1-1
c44ce4
- Various fixes
c44ce4
c44ce4
* Mon Dec 12 2011 Simo Sorce <simo@redhat.com> - 0.0.2-0
c44ce4
- Automated build of the gssproxy daemon