-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_auth_eon.spec
67 lines (53 loc) · 2.53 KB
/
mod_auth_eon.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Summary: Apache2 EoN Authorization
Name: mod_auth_eon
Version: 5.0
Release: 2.eon
Group: System Environment/Daemons
License: Apache Software License
URL: http://www.eyesofnetwork.com/
Source: https://github.com/EyesOfNetworkCommunity/%{name}/archive/master.tar.gz#/%{name}-%{version}.tar.gz
Source1: auth_eon.conf
Source2: 10-auth_eon.conf
BuildRoot: %{_tmppath}/%{name}-root
Requires: httpd, mariadb
%description
This module is herited from mod_auth_form as implemented in Apache 2.2. As so it is based on 'mod_auth_mysql' and 'mod_auth_sim'.
It is used to place access restrictions on a per-directory, per-user-request basis using session management.
The module uses a MySQL database to retrieve users' group membership, maintain and validate users' sessions, and optionally user activity.
This version has ported the initial module to be compliant with the new Apache 2.4 API.
%prep
%setup -q -n %{name}-master
%build
%configure MYSQLCLIENT_LIBPATH=/usr/lib64 APACHE2_INCLUDE=/usr/include/httpd/ CFLAGS="`apr-1-config --cppflags --cflags`"
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules
install -m755 src/.libs/%{name}.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
# Install the config file
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d
install -m 644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
install -m 644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
%{_libdir}/httpd/modules/*.so
%config(noreplace) %{_sysconfdir}/httpd/conf.d/auth_eon.conf
%config(noreplace) %{_sysconfdir}/httpd/conf.modules.d/10-auth_eon.conf
%changelog
* Tue Sep 27 2016 Jean-Philippe Levy <[email protected]> - 5.0-2.eon
- user_name at the end of cookie chain fix
* Wed May 18 2016 Jean-Philippe Levy <[email protected]> - 5.0-1.eon
- AuthEonDefaultUser : set default remote user for all websites
- AuthEonRemoteUser : set remote user by location or directory
- user_name size fix
* Wed May 04 2016 Michael Aubertin <[email protected]> - 5.0-0.eon
- Build against 5.0 to align version. Asked by JP Levy ;)
* Mon Apr 04 2016 Jeremie Bernard <[email protected]> - 4.2-3.eon
- ported mod_auth_form for EyesOfNetwork appliance using now Apache 2.4
- renamed mod_auth_form to mod_auth_eon
* Mon Sep 08 2008 Jean-Philippe Levy <[email protected]> - 2.05-0.eon
- packaged for EyesOfNetwork appliance