]>
Commit | Line | Data |
---|---|---|
7b3d0a69 | 1 | %define mod_name become |
3ee189aa | 2 | %define apxs /usr/sbin/apxs1 |
7b3d0a69 | 3 | Summary: Apache module: Become Somebody |
e3d1eda0 | 4 | Summary(pl.UTF-8): Moduł Apache'a: stawanie się kimś |
3ee189aa | 5 | Name: apache1-mod_%{mod_name} |
7b3d0a69 | 6 | Version: 1.3 |
076f2385 | 7 | Release: 3 |
7b3d0a69 AM |
8 | License: ? |
9 | Group: Networking/Daemons | |
10 | Source0: http://www.snert.com/Software/mod_become/mod_become103.tgz | |
11 | # Source0-md5: 7bb1607587687dabc711b3b1903947e5 | |
12 | URL: http://www.snert.com/Software/mod_become/ | |
8a5c4c22 | 13 | BuildRequires: apache1-devel >= 1.3.39 |
08bd75fb | 14 | BuildRequires: rpmbuild(macros) >= 1.268 |
631df190 | 15 | Requires(triggerpostun): %{apxs} |
076f2385 | 16 | Requires: apache1(EAPI) |
04410307 | 17 | Obsoletes: apache-mod_become <= 1.3 |
7b3d0a69 AM |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
631df190 ER |
20 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
21 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
7b3d0a69 AM |
22 | |
23 | %description | |
24 | This module enables the web server to take on the access rights of a | |
28abe21d | 25 | user & group, so that users can make available files to the web |
7b3d0a69 AM |
26 | without having to make them readable by the world on the local file |
27 | system. This can be useful for sites with a large number of users who | |
28 | want to apply file access controls among themselves. This module can | |
29 | also be applied to virtual hosts, directories, and locations. | |
30 | ||
734da101 JR |
31 | %description -l pl.UTF-8 |
32 | Ten moduł pozwala serwerowi WWW przejąć prawa dostępu użytkownika i | |
33 | grupy, dzięki czemu użytkownicy mogą udostępnić pliki na WWW bez | |
34 | czynienia ich globalnie czytelnymi w lokalnym systemie plików. Może to | |
35 | być przydatne na dla serwerów z dużą liczbą użytkowników, którzy chcą | |
36 | kontrolować dostęp do plików między sobą. Ten moduł może być używany | |
37 | także z serwerami wirtualnymi, katalogami i miejscami. | |
28abe21d | 38 | |
7b3d0a69 AM |
39 | %prep |
40 | %setup -q -n mod_%{mod_name}-%{version} | |
41 | ||
42 | %build | |
43 | PATH=$PATH:%{_sbindir} | |
3ee189aa | 44 | %{__make} build-dynamic \ |
45 | APXS=%{apxs} | |
7b3d0a69 AM |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
631df190 | 49 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} |
7b3d0a69 AM |
50 | |
51 | install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} | |
52 | ||
631df190 ER |
53 | echo '#LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ |
54 | $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf | |
55 | ||
7b3d0a69 AM |
56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post | |
631df190 ER |
60 | echo "mod_%{mod_name}: This module is not turned on by default; if you're sure," |
61 | echo "mod_%{mod_name}: uncomment the appropriate line in Apache's config file." | |
7b3d0a69 | 62 | |
f765b1ee | 63 | %postun |
7b3d0a69 | 64 | if [ "$1" = "0" ]; then |
08bd75fb | 65 | %service -q apache restart |
7b3d0a69 AM |
66 | fi |
67 | ||
631df190 ER |
68 | %triggerpostun -- apache1-mod_%{mod_name} < 1.3-1.1 |
69 | # check that they're not using old apache.conf | |
70 | if grep -q '^Include conf\.d' /etc/apache/apache.conf; then | |
71 | %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 | |
72 | fi | |
73 | ||
7b3d0a69 AM |
74 | %files |
75 | %defattr(644,root,root,755) | |
76 | %doc CHANGES.txt LICENSE.txt SECURITY.txt index.shtml notes-conf.txt | |
c7c911aa | 77 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf |
7b3d0a69 | 78 | %attr(755,root,root) %{_pkglibdir}/* |