From 6a30d02c2a3009fa3e0d2bd3e08b9c785f2ac312 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 21 Aug 2018 18:35:29 +0000 Subject: [PATCH] - merged 1.10 from PLD --- crontab | 2 +- php-dirs.spec | 17 +++++++++++++---- php-session.sh | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/crontab b/crontab index c5d1969..503d36a 100644 --- a/crontab +++ b/crontab @@ -1,3 +1,3 @@ MAILTO=root -01 * * * * root /usr/lib/php-session.sh +01 * * * * root @libexecdir@/php-session.sh diff --git a/php-dirs.spec b/php-dirs.spec index ce88831..f5730f1 100644 --- a/php-dirs.spec +++ b/php-dirs.spec @@ -1,11 +1,11 @@ # TODO -# - move tmpwatch S: to php-session package (as session files file storage no +# - move tmpwatch R: to php-session package (as session files file storage no # longer can cleanup itself due dir perms) # - https://fedorahosted.org/tmpwatch/ticket/7 is implemented in tmpwatch-2.9.16, see 3467603 todo Summary: Common dirs for PHP Summary(pl.UTF-8): Wspólne katalogi dla PHP Name: php-dirs -Version: 1.7 +Version: 1.10 Release: 1 License: GPL Group: Base @@ -15,7 +15,7 @@ BuildRequires: rpmbuild(macros) >= 1.644 Requires(postun): /usr/sbin/groupdel Requires(pre): /usr/bin/getgid Requires(pre): /usr/sbin/groupadd -Suggests: tmpwatch +Requires: tmpwatch Conflicts: php-pear < 4:1.4-2 Provides: group(http) BuildArch: noarch @@ -38,7 +38,15 @@ install -d $RPM_BUILD_ROOT{/etc/cron.d,/var/{cache,log,run}/php,/var/log/archive $RPM_BUILD_ROOT%{_libexecdir} $RPM_BUILD_ROOT%{php_data_dir} install -p %{SOURCE0} $RPM_BUILD_ROOT%{_libexecdir} -cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/php-session +sed -e 's,@libexecdir@,%{_libexecdir},' %{SOURCE1} >$RPM_BUILD_ROOT/etc/cron.d/php-session + +while read dir; do + install -d $RPM_BUILD_ROOT$dir +done < /dev/null); do gc= if [ -x /usr/bin/$php ]; then gc=$($php -r 'echo max(round(ini_get("session.gc_maxlifetime")/3600), 1);' 2> /dev/null) -- 2.37.3