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