View | Details | Raw Unified | Return to bug 28145
Collapse All | Expand All

(-)a/.gear-rules (+1 lines)
Lines 2-4 copy: *.ini Link Here
2
copy?: *.patch
2
copy?: *.patch
3
copy: *.init
3
copy: *.init
4
copy: *.logrotate
4
copy: *.logrotate
5
copy: *.service
(-)a/php-fpm.service (+13 lines)
Line 0 Link Here
1
[Unit]
2
Description=The PHP FastCGI Process Manager
3
After=syslog.target network.target
4
5
[Service]
6
Type=forking
7
PIDFile=/var/run/php5-fpm/php5-fpm.pid
8
ExecStart=/usr/sbin/php-fpm -g /var/run/php5-fpm/php5-fpm.pid -y /etc/fpm/php5-fpm.conf
9
ExecReload=/bin/kill -USR2 $MAINPID
10
ExecStop=kill $MAINPID
11
12
[Install]
13
WantedBy=multi-user.target
(-)a/php5-fpm-fcgi.spec (+5 lines)
Lines 16-21 Source1: php.ini Link Here
16
Source2: %name-browscap.ini
16
Source2: %name-browscap.ini
17
Source3: php5-fpm.init
17
Source3: php5-fpm.init
18
Source4: php5-fpm.logrotate
18
Source4: php5-fpm.logrotate
19
Source5: php-fpm.service
19
20
20
Patch0: php5-fpm-fcgi-5.3.3.20100722-config.m4.patch
21
Patch0: php5-fpm-fcgi-5.3.3.20100722-config.m4.patch
21
Patch2: php5-fpm-fcgi-5.3.3.20100722-build.patch
22
Patch2: php5-fpm-fcgi-5.3.3.20100722-build.patch
Lines 121-126 mkdir -p %buildroot/%_runtimedir/php5-fpm Link Here
121
# config for logrotate
122
# config for logrotate
122
install -pD -m644 %SOURCE4 %buildroot%_sysconfdir/logrotate.d/php5-fpm
123
install -pD -m644 %SOURCE4 %buildroot%_sysconfdir/logrotate.d/php5-fpm
123
124
125
mkdir -p  %buildroot%_sysconfdir/systemd/system/multi-user.target.wants
126
install -m 644 %SOURCE5 %buildroot%_sysconfdir/systemd/system/multi-user.target.wants/php-fpm.service
127
124
%pre
128
%pre
125
/usr/sbin/groupadd -r -f _php_fpm 2>/dev/null ||:
129
/usr/sbin/groupadd -r -f _php_fpm 2>/dev/null ||:
126
/usr/sbin/groupadd -r -f _webserver 2>/dev/null ||:
130
/usr/sbin/groupadd -r -f _webserver 2>/dev/null ||:
Lines 153-158 install -pD -m644 %SOURCE4 %buildroot%_sysconfdir/logrotate.d/php5-fpm Link Here
153
%config(noreplace) %_sysconfdir/logrotate.d/php5-fpm
157
%config(noreplace) %_sysconfdir/logrotate.d/php5-fpm
154
%php5_servicedir/%php5_sapi
158
%php5_servicedir/%php5_sapi
155
%_man8dir/*
159
%_man8dir/*
160
%_sysconfdir/systemd/system/multi-user.target.wants/php-fpm.service
156
161
157
%changelog
162
%changelog
158
* Wed Nov 14 2012 Anton Farygin <rider@altlinux.ru> 5.3.18.20121017-alt1
163
* Wed Nov 14 2012 Anton Farygin <rider@altlinux.ru> 5.3.18.20121017-alt1

Return to bug 28145