diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2013-10-28 04:55:36 +0100 |
---|---|---|
committer | Jan Pazdziora <jpazdziora@redhat.com> | 2013-10-28 15:19:18 +0800 |
commit | c73c833f29774602c773a2de8c9e4b5d29a1879a (patch) | |
tree | e1b823f0fbb9bd193b3b4a3dac9e649209d0f6b5 /mod_lookup_identity.spec | |
parent | 5cf92d3b9cda27bef643e132f7eed35b6761f514 (diff) | |
download | mod_lookup_identity-c73c833f29774602c773a2de8c9e4b5d29a1879a.tar.gz mod_lookup_identity-c73c833f29774602c773a2de8c9e4b5d29a1879a.tar.xz mod_lookup_identity-c73c833f29774602c773a2de8c9e4b5d29a1879a.zip |
Adding a .spec file.mod_lookup_identity-0.5
Diffstat (limited to 'mod_lookup_identity.spec')
-rw-r--r-- | mod_lookup_identity.spec | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/mod_lookup_identity.spec b/mod_lookup_identity.spec new file mode 100644 index 0000000..2c1e97b --- /dev/null +++ b/mod_lookup_identity.spec @@ -0,0 +1,62 @@ +%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} +%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}} +# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 +%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}} +%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}} + +Summary: Apache module to retrieve additional information about the authenticated user. +Name: mod_lookup_identity +Version: 0.5 +Release: 1%{?dist} +License: ASL 2.0 +Group: System Environment/Daemons +URL: http://www.adelton.com/apache/mod_lookup_identity/ +Source0: http://www.adelton.com/apache/mod_lookup_identity/%{name}-%{version}.tar.gz +BuildRequires: httpd-devel +BuildRequires: dbus-devel +BuildRequires: pkgconfig +Requires(pre): httpd +Requires: httpd +Requires: dbus-libs + +# Suppres auto-provides for module DSO +%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$} +%{?filter_setup} + +%description +mod_lookup_identity can retrieve GECOS and group information about +user authenticated in Apache httpd server, as well as attributes +about the user provided by local sssd, and store these values +in notes/environment variables to be consumed by web applications. +Use of REMOTE_USER_* environment variables is recommended. + +%prep +%setup -q -n %{name}-%{version} + +%build +%{_httpd_apxs} -c $(pkg-config --cflags dbus-1) mod_lookup_identity.c $(pkg-config --libs dbus-1) -Wall -pedantic + +%install +rm -rf $RPM_BUILD_ROOT +install -Dm 755 .libs/mod_lookup_identity.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_lookup_identity.so + +%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" +# httpd >= 2.4.x +install -Dp -m 0644 lookup_identity.conf $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-lookup_identity.conf +%else +# httpd <= 2.2.x +install -Dp -m 0644 lookup_identity.conf $RPM_BUILD_ROOT%{_httpd_confdir}/lookup_identity.conf +%endif + +%files +%doc README LICENSE +%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" +%config(noreplace) %{_httpd_modconfdir}/*.conf +%else +%config(noreplace) %{_httpd_confdir}/lookup_identity.conf +%endif +%{_httpd_moddir}/*.so + +%changelog +* Mon Oct 28 2013 Jan Pazdziora - 0.5-1 +- Initial release. |