]> git.pld-linux.org Git - packages/apache1-mod_auth_checkpasswd.git/blame - apache1-mod_auth_checkpasswd.spec
- apxs1 in apache1-devel now
[packages/apache1-mod_auth_checkpasswd.git] / apache1-mod_auth_checkpasswd.spec
CommitLineData
15307016 1%define mod_name auth_checkpasswd
49051a58 2%define apxs /usr/sbin/apxs1
15307016 3Summary: This is the CHECKPASSWD authentication module for Apache
ef2bf33f 4Summary(pl.UTF-8): To jest moduł Apache uwierzytelniający przez CHECKPASSWD
49051a58 5Name: apache1-mod_%{mod_name}
15307016 6Version: 1.0
4d99782f 7Release: 3
15307016
SZ
8License: GPL
9Group: Networking/Daemons
15307016 10Source0: mod_%{mod_name}-%{version}.tar.gz
022761e3 11# Source0-md5: 7f699981ada026656affe2e35409bdf2
9127a38d 12Patch0: %{name}-aplog.patch
bfdfb160 13BuildRequires: apache1-devel >= 1.3.39
21e5aaae 14BuildRequires: rpmbuild(macros) >= 1.268
c3103146 15Requires(triggerpostun): %{apxs}
4d99782f 16Requires: apache1(EAPI)
21e5aaae 17Obsoletes: apache-mod_auth_checkpasswd <= 1.0
15307016
SZ
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
c3103146
ER
20%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
21%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
15307016
SZ
22
23%description
24This is an authentication module for Apache that uses an external
509e2239 25application compatible with DJB's "checkpasswd". The application may
620d03a3 26be setuid, which gives you a possibility to verify passwords using
27regular /etc/shadow.
15307016 28
9756cd36
JR
29%description -l pl.UTF-8
30To jest moduł uwierzytelniający dla Apache który wykorzystuje
31zewnętrzną aplikację kompatybilną z "checkpasswd" DJB. Aplikacja może
32być suidowana, co daje możliwość weryfikowania haseł wykorzystując
33zwykły plik /etc/shadow.
15307016 34
ddbdb620 35%prep
15307016 36%setup -q -c -n "mod_%{mod_name}-%{version}"
a3c81902 37%patch0 -p1
15307016
SZ
38
39%build
49051a58 40%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so
15307016
SZ
41
42%install
43rm -rf $RPM_BUILD_ROOT
c3103146 44install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
15307016
SZ
45
46install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
47
c3103146
ER
48echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
49 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
50
1e4b16af
JB
51%clean
52rm -rf $RPM_BUILD_ROOT
53
15307016 54%post
21e5aaae 55%service -q apache restart
15307016 56
091a1b94 57%postun
15307016 58if [ "$1" = "0" ]; then
21e5aaae 59 %service -q apache restart
15307016
SZ
60fi
61
c3103146
ER
62%triggerpostun -- apache1-mod_%{mod_name} < 1.0-1.1
63# check that they're not using old apache.conf
64if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
65 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
66fi
67
15307016
SZ
68%files
69%defattr(644,root,root,755)
11fcafbf 70%doc README
03966505 71%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
15307016 72%attr(755,root,root) %{_pkglibdir}/*
This page took 0.077784 seconds and 4 git commands to generate.