First commit

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 years ago
commit a0018ed841
  1. 3
      createlinks
  2. 6
      root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/php-fpm.conf
  3. 1
      root/etc/e-smith/templates/etc/php-fpm.conf/010Include
  4. 1
      root/etc/e-smith/templates/etc/php-fpm.conf/020Global
  5. 1
      root/etc/e-smith/templates/etc/php-fpm.conf/030Pid
  6. 4
      root/etc/e-smith/templates/etc/php-fpm.conf/040Log
  7. 1
      root/etc/e-smith/templates/etc/php-fpm.conf/050Daemon
  8. 51
      smeserver-php-fpm.spec

@ -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 @@
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,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…
Cancel
Save