commit
ef30d1294a
BIN
mod_lookup_identity-1.0.0.tar.gz
Normal file
BIN
mod_lookup_identity-1.0.0.tar.gz
Normal file
Binary file not shown.
48
mod_lookup_identity.spec
Normal file
48
mod_lookup_identity.spec
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
|
||||||
|
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
|
||||||
|
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}}
|
||||||
|
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
||||||
|
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
|
||||||
|
|
||||||
|
Name: mod_lookup_identity
|
||||||
|
Summary: Used to retrieve additional information about the authenticated user
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 8
|
||||||
|
License: ASL 2.0
|
||||||
|
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 dbus-devel pkgconfig
|
||||||
|
Requires: httpd-mmn = %{_httpd_mmn}
|
||||||
|
|
||||||
|
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
|
||||||
|
%{?filter_setup}
|
||||||
|
|
||||||
|
%description
|
||||||
|
mod_lookup_identity is a module to lookup user identifier and retrieves
|
||||||
|
additional information about the authenticated users.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99 $(pkg-config --cflags dbus-1)" $(pkg-config --libs dbus-1) mod_lookup_identity.c
|
||||||
|
cat << EOF > lookup_identity.confx
|
||||||
|
|
||||||
|
# Load the module in %{_httpd_modconfdir}/55-lookup_identity.conf
|
||||||
|
EOF
|
||||||
|
cat lookup_identity.conf >> lookup_identity.confx
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -Dm 755 .libs/mod_lookup_identity.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_lookup_identity.so
|
||||||
|
install -Dp -m 0644 lookup_identity.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-lookup_identity.conf
|
||||||
|
install -Dp -m 0644 lookup_identity.confx $RPM_BUILD_ROOT%{_httpd_confdir}/lookup_identity.conf
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README LICENSE
|
||||||
|
%config(noreplace) %{_httpd_modconfdir}/55-lookup_identity.conf
|
||||||
|
%config(noreplace) %{_httpd_confdir}/lookup_identity.conf
|
||||||
|
%{_httpd_moddir}/*.so
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Apr 17 2020 lizhenhua <lizhenhua21@huawei.com> - 1.0.0-8
|
||||||
|
- Package init
|
||||||
4
mod_lookup_identity.yaml
Normal file
4
mod_lookup_identity.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: adelton/mod_lookup_identity
|
||||||
|
tag_prefix: mod_lookup_identity-
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user