commit
a0018ed841
8 changed files with 68 additions and 0 deletions
@ -0,0 +1,3 @@ |
||||
#!/usr/bin/perl -w |
||||
|
||||
use esmith::Build::CreateLinks qw(:all); |
@ -0,0 +1,6 @@ |
||||
TEMPLATE_PATH="/etc/php-fpm.conf" |
||||
MORE_DATA={ |
||||
PHP_VERSION => 56, |
||||
PID_DIR => "/opt/remi/php56/root/var/run/php-fpm", |
||||
FPM_POOL_DIR => "/opt/remi/php56/root/etc/php-fpm.d", |
||||
} |
@ -0,0 +1 @@ |
||||
include={ $FPM_POOL_DIR }/*.conf |
@ -0,0 +1 @@ |
||||
[global] |
@ -0,0 +1 @@ |
||||
pid = { $PID_DIR }/php-fpm.pid |
@ -0,0 +1,4 @@ |
||||
error_log = syslog |
||||
syslog.facility = daemon |
||||
syslog.ident = php{ $PHP_VERSION }-fpm |
||||
|
@ -0,0 +1 @@ |
||||
daemonize = yes |
@ -0,0 +1,51 @@ |
||||
%define version 0.0.1 |
||||
%define release 0.beta1 |
||||
%define name smeserver-php-fpm |
||||
|
||||
|
||||
Summary: PHP FPM pools on SME Server |
||||
Name: %{name} |
||||
Version: %{version} |
||||
Release: %{release}%{?dist} |
||||
License: MIT |
||||
Group: Applications/System |
||||
Source: %{name}-%{version}.tar.gz |
||||
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
||||
BuildArchitectures: noarch |
||||
BuildRequires: e-smith-devtools |
||||
|
||||
Requires: e-smith-base >= 5.6.0 |
||||
Requires: php56-fpm |
||||
|
||||
%description |
||||
Manage PHP FPM pools, and switch between PHP versions easily |
||||
|
||||
%prep |
||||
%setup -q -n %{name}-%{version} |
||||
|
||||
%build |
||||
perl createlinks |
||||
|
||||
%install |
||||
/bin/rm -rf $RPM_BUILD_ROOT |
||||
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
||||
/bin/rm -f %{name}-%{version}-filelist |
||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
||||
> %{name}-%{version}-filelist |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
||||
%files -f %{name}-%{version}-filelist |
||||
%defattr(-,root,root) |
||||
|
||||
%pre |
||||
|
||||
%post |
||||
|
||||
%preun |
||||
|
||||
%changelog |
||||
* Sun Jul 2 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.0.1-1.sme |
||||
- Initial release |
Loading…
Reference in new issue