]> git.pld-linux.org Git - packages/apache1-mod_access_identd.git/blame - apache1-mod_access_identd.spec
- use apache1(EAPI) for runtime dep
[packages/apache1-mod_access_identd.git] / apache1-mod_access_identd.spec
CommitLineData
07257a6f 1%define mod_name access_identd
cfb342ad 2%define apxs /usr/sbin/apxs1
07257a6f 3Summary: Apache module: access based on ident (RFC1413)
96ce0694 4Summary(pl.UTF-8): Moduł do apache: dostęp na podstawie protokołu ident (RFC1413)
07257a6f 5Name: apache1-mod_%{mod_name}
6Version: 1.2.0
6685123a 7Release: 0.5
07257a6f 8License: MeepZor Consulting Public Licence (MCPL)
9Group: Networking/Daemons
10Source0: http://meepzor.com/packages/mod_%{mod_name}/mod_%{mod_name}-%{version}.tar.gz
11# Source0-md5: 67a5a1b9d5862eeaf2ba812f6dca98d9
12Source1: http://meepzor.com/packages/mod_access_identd/LICENCE.txt
13URL: http://meepzor.com/packages/mod_access_identd/
859326ff 14BuildRequires: apache1-devel >= 1.3.39
d8ff3cf3 15BuildRequires: rpmbuild(macros) >= 1.268
6685123a 16Requires: apache1(EAPI)
07257a6f 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
ca565740
ER
19%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
20%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
07257a6f 21
22%description
23A security module for the Apache Web server, supplying mandatory
24access control based upon the client username and host. The
25credentials are obtained using the identd (RFC1413) mechanism, so this
26is of limited usefulness if document access is through a proxy or by
27clients not running an RFC1413 server daemon. As a result, this module
28is best suited for intranets.
29
867ac3da
JR
30%description -l pl.UTF-8
31Moduł zabezpieczający dla serwera apache dostarczający obowiązkową
32kontrolę dostępu bazującą na nazwie użytkownika i hoście klienta.
33Listy dostępu uzyskiwane są przy pomocy protokołu ident (RFC1413),
34zatem użyteczność jest ograniczona jeśli dostęp następuje przez proxy
35lub klienci nie posiadają serwera identd. Moduł przeznaczony jest do
36użytku głównie w intranetach.
07257a6f 37
38%prep
39%setup -q -n mod_%{mod_name}
40
41%build
42%{apxs} -c mod_%{mod_name}.c
43
44%install
45rm -rf $RPM_BUILD_ROOT
ca565740 46install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
07257a6f 47
48install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
49cp %{SOURCE1} .
50
ca565740
ER
51echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
52 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
53
07257a6f 54%clean
3f3e6995 55rm -rf $RPM_BUILD_ROOT
07257a6f 56
57%post
d8ff3cf3 58%service -q apache restart
07257a6f 59
22b69631 60%postun
07257a6f 61if [ "$1" = "0" ]; then
d8ff3cf3 62 %service -q apache restart
07257a6f 63fi
64
65%files
66%defattr(644,root,root,755)
67%doc README CHANGELOG mod_access_identd.html LICENCE.txt
a407c948 68%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
07257a6f 69%attr(755,root,root) %{_pkglibdir}/*
This page took 0.09977 seconds and 4 git commands to generate.