]>
Commit | Line | Data |
---|---|---|
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 | 4 | Summary: Common dirs for different PHP versions |
4ae65dc3 | 5 | Summary(pl.UTF-8): Wspólne katalogi dla różnych wersji PHP |
a8668484 | 6 | Name: php-dirs |
ebe84aa1 | 7 | Version: 1.4 |
b99de543 | 8 | Release: 4 |
a8668484 ER |
9 | License: GPL |
10 | Group: Base | |
ee96ae59 | 11 | Source0: php-session.sh |
56b17828 | 12 | Source1: %{name}.tmpfiles |
05ac7df2 | 13 | BuildRequires: rpmbuild(macros) >= 1.644 |
31b41079 ER |
14 | Requires(postun): /usr/sbin/groupdel |
15 | Requires(pre): /usr/bin/getgid | |
16 | Requires(pre): /usr/sbin/groupadd | |
c29d80f3 | 17 | Suggests: tmpwatch |
31b41079 | 18 | Provides: group(http) |
a8668484 ER |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
a8668484 ER |
22 | %description |
23 | Common directories for PHP version 4 and version 5. | |
24 | ||
f4cc5fb9 JR |
25 | %description -l pl.UTF-8 |
26 | Wspólne katalogi dla PHP w wersji 4 oraz 5. | |
cce45ac9 | 27 | |
a8668484 ER |
28 | %prep |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
ec175e53 | 32 | install -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 | 36 | install -p %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly |
05ac7df2 | 37 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
a8668484 ER |
38 | |
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
31b41079 ER |
42 | %pre |
43 | %groupadd -g 51 http | |
44 | ||
45 | %postun | |
46 | if [ "$1" = "0" ]; then | |
47 | %groupremove http | |
48 | fi | |
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 |