]> git.pld-linux.org Git - packages/php-dirs.git/blame - php-dirs.spec
- rel 4
[packages/php-dirs.git] / php-dirs.spec
CommitLineData
0f165b1d
ER
1# TODO
2# - move tmpwatch S: to php-session package (as session files file storage no
3# longer can cleanup itself due dir perms)
a8668484 4Summary: Common dirs for different PHP versions
4ae65dc3 5Summary(pl.UTF-8): Wspólne katalogi dla różnych wersji PHP
a8668484 6Name: php-dirs
ebe84aa1 7Version: 1.4
b99de543 8Release: 4
a8668484
ER
9License: GPL
10Group: Base
ee96ae59 11Source0: php-session.sh
56b17828 12Source1: %{name}.tmpfiles
05ac7df2 13BuildRequires: rpmbuild(macros) >= 1.644
31b41079
ER
14Requires(postun): /usr/sbin/groupdel
15Requires(pre): /usr/bin/getgid
16Requires(pre): /usr/sbin/groupadd
c29d80f3 17Suggests: tmpwatch
31b41079 18Provides: group(http)
a8668484
ER
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
a8668484
ER
22%description
23Common directories for PHP version 4 and version 5.
24
f4cc5fb9
JR
25%description -l pl.UTF-8
26Wspólne katalogi dla PHP w wersji 4 oraz 5.
cce45ac9 27
a8668484
ER
28%prep
29
30%install
31rm -rf $RPM_BUILD_ROOT
ec175e53 32install -d $RPM_BUILD_ROOT{%{php_data_dir}/tests,/etc/cron.hourly,/var/{cache,log,run}/php,/var/log/archive/php} \
56b17828 33 $RPM_BUILD_ROOT%{_docdir}/phpdoc \
05ac7df2 34 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
56b17828 35
b6be0353 36install -p %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly
05ac7df2 37cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
a8668484
ER
38
39%clean
40rm -rf $RPM_BUILD_ROOT
41
31b41079
ER
42%pre
43%groupadd -g 51 http
44
45%postun
46if [ "$1" = "0" ]; then
47 %groupremove http
48fi
49
a8668484
ER
50%files
51%defattr(644,root,root,755)
05ac7df2 52%{systemdtmpfilesdir}/%{name}.conf
b6be0353 53%attr(755,root,root) %{_sysconfdir}/cron.hourly/php-session.sh
2f532184
ER
54%dir %{php_data_dir}
55%dir %{php_data_dir}/tests
dea06829 56%dir %{_docdir}/phpdoc
05ac7df2 57%attr(775,root,http) %dir %verify(not group mode) /var/log/php
ec175e53 58%attr(770,root,root) %dir %verify(not group mode) /var/log/archive/php
ebe84aa1
ER
59# no +r, so only predictable names can be used. currently php-soap wsdl cache is there
60%attr(730,root,http) %dir %verify(not group mode) /var/cache/php
7b9b770c
AM
61# http needs only x for directory (otherwise it knows session file
62# names and can read it contents)
4ce953dd
ER
63# keep o+x for fcgi.sock (lighttpd)
64%attr(731,root,http) %dir %verify(not group mode) /var/run/php
This page took 0.053045 seconds and 4 git commands to generate.