Blame SPECS/mod_lookup_identity.spec

736e1a
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
736e1a
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
736e1a
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
736e1a
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
736e1a
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
736e1a
%{!?_httpd_moddir:    %{expand: %%global _httpd_moddir    %%{_libdir}/httpd/modules}}
736e1a
736e1a
Summary: Apache module to retrieve additional information about the authenticated user
736e1a
Name: mod_lookup_identity
3acc61
Version: 1.0.0
736e1a
Release: 1%{?dist}
736e1a
License: ASL 2.0
736e1a
Group: System Environment/Daemons
736e1a
URL: http://www.adelton.com/apache/mod_lookup_identity/
736e1a
Source0: http://www.adelton.com/apache/mod_lookup_identity/%{name}-%{version}.tar.gz
736e1a
BuildRequires: httpd-devel
736e1a
BuildRequires: dbus-devel
736e1a
BuildRequires: pkgconfig
736e1a
Requires: httpd-mmn = %{_httpd_mmn}
736e1a
736e1a
# Suppres auto-provides for module DSO per
736e1a
# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Summary
736e1a
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
736e1a
%{?filter_setup}
736e1a
736e1a
%description
736e1a
mod_lookup_identity can retrieve additional pieces of information
736e1a
about user authenticated in Apache httpd server and store these values
736e1a
in notes/environment variables to be consumed by web applications.
736e1a
Use of REMOTE_USER_* environment variables is recommended.
736e1a
736e1a
%prep
736e1a
%setup -q -n %{name}-%{version}
736e1a
736e1a
%build
736e1a
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99 $(pkg-config --cflags dbus-1)" $(pkg-config --libs dbus-1) mod_lookup_identity.c
736e1a
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
736e1a
echo > lookup_identity.confx
736e1a
echo "# Load the module in %{_httpd_modconfdir}/55-lookup_identity.conf" >> lookup_identity.confx
736e1a
cat lookup_identity.conf >> lookup_identity.confx
736e1a
%else
736e1a
cat lookup_identity.module > lookup_identity.confx
736e1a
cat lookup_identity.conf >> lookup_identity.confx
736e1a
%endif
736e1a
736e1a
%install
736e1a
rm -rf $RPM_BUILD_ROOT
736e1a
install -Dm 755 .libs/mod_lookup_identity.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_lookup_identity.so
736e1a
736e1a
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
736e1a
# httpd >= 2.4.x
736e1a
install -Dp -m 0644 lookup_identity.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-lookup_identity.conf
736e1a
%endif
736e1a
install -Dp -m 0644 lookup_identity.confx $RPM_BUILD_ROOT%{_httpd_confdir}/lookup_identity.conf
736e1a
736e1a
%files
736e1a
%doc README LICENSE
736e1a
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
736e1a
%config(noreplace) %{_httpd_modconfdir}/55-lookup_identity.conf
736e1a
%endif
736e1a
%config(noreplace) %{_httpd_confdir}/lookup_identity.conf
736e1a
%{_httpd_moddir}/*.so
736e1a
736e1a
%changelog
3acc61
* Thu Apr 06 2017 Jan Pazdziora <jpazdziora@redhat.com> - 1.0.0-1
3acc61
- 1436733 - Rebase to upstream release 1.0.0 to get non-POSIX user support.
3acc61
3acc61
* Wed Mar 22 2017 Tibor Dudlák <tdudlak@redhat.com> - 0.9.9-1
3acc61
- Rebase to upstream release 0.9.9.
3acc61
3acc61
* Mon Mar 13 2017 Tibor Dudlák <tdudlak@redhat.com> - 0.9.8-1
3acc61
- Rebase to upstream release 0.9.8.
3acc61
278f51
* Wed Jan 20 2016 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.5-1
278f51
- Fix LookupUserByCertificate httpd-2.2 compatibility issue.
278f51
278f51
* Wed Jan 20 2016 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.4-1
278f51
- Added LookupUserOutput headers and headers-base64.
278f51
43740a
* Mon Aug 03 2015 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.3-1
43740a
- Added LookupUserByCertificate.
43740a
736e1a
* Fri Jun 27 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.2-1
736e1a
- Fix error handling and reporting.
736e1a
- Fix module loading/configuration for Apache 2.4.
736e1a
736e1a
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.1-1
736e1a
- Address code issues revealed by coverity scan.
736e1a
- Minor README fixes.
736e1a
736e1a
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.0-1
736e1a
- Add support for '+'-prefixed note/variable names.
736e1a
- Silence compile warnings by specifying C99.
736e1a
- Fix format of logs of dbus calls.
736e1a
736e1a
* Sat Feb 01 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.3-1
736e1a
- 1058812 - drop explicit dbus-libs dependency.
736e1a
736e1a
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.2-1
736e1a
- 1058812 - .spec changes for Fedora package review.
736e1a
736e1a
* Fri Jan 17 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.1-1
736e1a
- Ensure we run before mod_headers so that our result can be put to
736e1a
  request headers for mod_proxy.
736e1a
736e1a
* Thu Jan 09 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8-1
736e1a
- Declare all functions static for proper isolation.
736e1a
736e1a
* Thu Nov 21 2013 Jan Pazdziora <jpazdziora@redhat.com> - 0.7.1-1
736e1a
- Address segfault when no LookupUserAttrIter is set.
736e1a
736e1a
* Tue Nov 19 2013 Jan Pazdziora <jpazdziora@redhat.com> - 0.7-1
736e1a
- Define lookup_identity_hook as optional function, callable from
736e1a
  other modules.
736e1a
736e1a
* Mon Nov 18 2013 Jan Pazdziora <jpazdziora@redhat.com> - 0.6-1
736e1a
- Use org.freedesktop.sssd.infopipe.GetUserGroups for group lists.
736e1a
- Support new org.freedesktop.sssd.infopipe.GetUserAttr parameters /
736e1a
  return values.
736e1a
- Removed LookupOutputGroupsSeparator.
736e1a
- LookupOutputGroups and LookupUserAttr now support separator as
736e1a
  optional second parameter.
736e1a
- Added LookupUserGroupsIter and LookupUserAttrIter.
736e1a
- Added LookupDbusTimeout.
736e1a
736e1a
* Mon Oct 28 2013 Jan Pazdziora <jpazdziora@redhat.com> - 0.5-1
736e1a
- Initial release.