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