]> git.pld-linux.org Git - packages/apache1-mod_chroot.git/blame - apache1-mod_chroot.spec
- BR s@%{apxs}@apache1-apxs@g
[packages/apache1-mod_chroot.git] / apache1-mod_chroot.spec
CommitLineData
3586642b 1%define mod_name chroot
2%define apxs /usr/sbin/apxs1
31e2af17 3Summary: Apache module: makes running Apache in a secure chroot environment easy
60f7278b 4Summary(pl.UTF-8): Moduł Apache'a do uruchamiania serwera w bezpiecznym środowisku chroot
3586642b 5Name: apache1-mod_%{mod_name}
61e0db1b 6Version: 0.5
7Release: 0.4
3586642b 8License: GPL
9Group: Networking/Daemons
10Source0: http://core.segfault.pl/~hobbit/mod_chroot/dist/mod_chroot-%{version}.tar.gz
61e0db1b 11# Source0-md5: d72716052faa3bdd3371210f26b13f38
3586642b 12URL: http://core.segfault.pl/~hobbit/mod_chroot/
cf658dcb 13BuildRequires: apache1-apxs
01afa4e3 14BuildRequires: apache1-devel >= 1.3.33-2
666d609f 15BuildRequires: rpmbuild(macros) >= 1.268
01afa4e3 16Requires: apache1 >= 1.3.33-2
3586642b 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
01afa4e3
ER
19%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
20%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
3586642b 21
22%description
23mod_chroot makes running Apache in a secure chroot environment easy.
24You don't need to create a special directory hierarchy containing
25/dev, /lib, /etc...
26
82b2b678
JR
27%description -l pl.UTF-8
28mod_chroot ułatwia uruchamianie Apache'a w bezpiecznym środowisku
29chroot. Nie trzeba tworzyć specjalnej hierarchii katalogów /dev, /lib,
f0b659f6 30/etc, itp.
31e2af17 31
3586642b 32%prep
33%setup -q -n mod_%{mod_name}-%{version}
34
35%build
36%{apxs} -c mod_%{mod_name}.c
37
38%install
39rm -rf $RPM_BUILD_ROOT
40
01afa4e3
ER
41install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
42install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
43
44echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
45 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
3586642b 46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
01afa4e3 50%post
666d609f 51%service -q apache restart
01afa4e3 52
4bbb4213 53%postun
01afa4e3 54if [ "$1" = "0" ]; then
666d609f 55 %service -q apache restart
01afa4e3
ER
56fi
57
3586642b 58%files
59%defattr(644,root,root,755)
872b8ea8 60%doc CAVEATS ChangeLog INSTALL README
5b1a0125 61%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
3586642b 62%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.075695 seconds and 4 git commands to generate.