Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated php52-fpm service files

  • Loading branch information...
commit 36a964f75e843396172741951fcc593799cedf99 1 parent bb071bc
@mtorromeo authored
View
83 php52/PKGBUILD
@@ -22,7 +22,7 @@ pkgname=('php52'
pkgname=php52
pkgver=5.2.17
-pkgrel=7
+pkgrel=8
_suhosinver=5.2.16-0.9.7
_fpmversion=0.5.14
pkgdesc='A high-level scripting language with FastCGI Process Manager'
@@ -42,18 +42,9 @@ source=("http://www.php.net/distributions/php-${pkgver}.tar.bz2"
'apache.conf'
'libpng14.patch'
'php-fpm.conf.in.patch'
- 'logrotate.d.php-fpm')
-
-md5sums=('b27947f3045220faf16e4d9158cbfe13'
- 'd815fc99a0c25c21f5df28551fcbb001'
- '5339a2a9c6a0b015b7ce5fcb8d90de84'
- '18c1fb8f6db4d298ff0e21a759acaa12'
- '144539b73a233b84fe3682e9853cda25'
- '4e811ea12bb9169350a9238c0b3c1337'
- '96ca078be6729b665be8a865535a97bf'
- '77ea0756996df0932fce472ff3ec2693'
- '3540260689459ec69f13524790f90e03'
- '07c4e412909ac65a44ec90e7a2c4bade')
+ 'logrotate.d.php-fpm'
+ 'php-fpm.service'
+ 'php-fpm.tmpfiles')
build() {
phpconfig="--srcdir=../php-${pkgver} \
@@ -114,7 +105,7 @@ build() {
--with-mysqli=shared \
--with-mysql=shared \
--with-mysql=shared \
- --with-mysql-sock=/var/run/mysqld/mysqld.sock \
+ --with-mysql-sock=/run/mysqld/mysqld.sock \
--with-ncurses=shared \
--with-openssl=shared \
--with-pcre-regex=/usr \
@@ -256,6 +247,9 @@ package_php52-cgi() {
package_php52-apache() {
pkgdesc='Apache SAPI for PHP'
depends=('php52' 'apache' 'pcre' 'libxml2')
+ conflicts=('php-apache')
+ replaces=('php-apache')
+ provides=('php-apache')
backup=('etc/httpd/conf/extra/php5_module.conf')
install -D -m755 "${srcdir}/build-apache/libs/libphp5.so" "${pkgdir}/usr/lib/httpd/modules/libphp5.so"
@@ -265,17 +259,26 @@ package_php52-apache() {
package_php52-fpm() {
pkgdesc='FastCGI Process Manager for PHP'
depends=('php52-cgi')
+ conflicts=('php-fpm')
+ replaces=('php-fpm')
+ provides=('php-fpm')
backup=('etc/php/php-fpm.conf')
+ install='php-fpm.install'
install -D -m644 "${srcdir}/build-cgi/sapi/cgi/fpm/php-fpm.conf" "${pkgdir}/etc/php/php-fpm.conf"
install -D -m755 "${srcdir}/rc.d.php-fpm" "${pkgdir}/etc/rc.d/php-fpm"
install -D -m644 "${srcdir}/logrotate.d.php-fpm" "${pkgdir}/etc/logrotate.d/php-fpm"
install -d -m755 "${pkgdir}/etc/php/fpm.d"
+ install -D -m644 "${srcdir}/php-fpm.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/php-fpm.conf"
+ install -D -m644 "${srcdir}/php-fpm.service" "${pkgdir}/usr/lib/systemd/system/php-fpm.service"
}
package_php52-embed() {
pkgdesc='Embed SAPI for PHP'
depends=('php52' 'pcre' 'libxml2')
+ conflicts=('php-embed')
+ replaces=('php-embed')
+ provides=('php-embed')
install -D -m755 "${srcdir}/build-embed/libs/libphp5.so" "${pkgdir}/usr/lib/libphp5.so"
install -D -m644 "${srcdir}/php-${pkgver}/sapi/embed/php_embed.h" "${pkgdir}/usr/include/php/sapi/embed/php_embed.h"
@@ -284,6 +287,9 @@ package_php52-embed() {
package_php52-pear() {
pkgdesc='PHP Extension and Application Repository'
depends=('php52' 'bash')
+ conflicts=('php-pear')
+ replaces=('php-pear')
+ provides=('php-pear')
backup=('etc/php/pear.conf')
cd "${srcdir}/build-pear"
@@ -296,36 +302,54 @@ package_php52-pear() {
package_php52-curl() {
depends=('php52' 'curl')
+ conflicts=('php-curl')
+ replaces=('php-curl')
+ provides=('php-curl')
pkgdesc='curl module for PHP'
install -D -m755 "${srcdir}/build-php/modules/curl.so" "${pkgdir}/usr/lib/php/modules/curl.so"
}
package_php52-gd() {
depends=('php52' 'libpng' 'libjpeg' 'freetype2')
+ conflicts=('php-gd')
+ replaces=('php-gd')
+ provides=('php-gd')
pkgdesc='gd module for PHP'
install -D -m755 "${srcdir}/build-php/modules/gd.so" "${pkgdir}/usr/lib/php/modules/gd.so"
}
package_php52-gmp() {
depends=('php52' 'gmp')
+ conflicts=('php-gmp')
+ replaces=('php-gmp')
+ provides=('php-gmp')
pkgdesc='gmp module for PHP'
install -D -m755 "${srcdir}/build-php/modules/gmp.so" "${pkgdir}/usr/lib/php/modules/gmp.so"
}
package_php52-ldap() {
depends=('php52' 'libldap')
+ conflicts=('php-ldap')
+ replaces=('php-ldap')
+ provides=('php-ldap')
pkgdesc='ldap module for PHP'
install -D -m755 "${srcdir}/build-php/modules/ldap.so" "${pkgdir}/usr/lib/php/modules/ldap.so"
}
package_php52-mcrypt() {
depends=('php52' 'libmcrypt' 'libtool')
+ conflicts=('php-mcrypt')
+ replaces=('php-mcrypt')
+ provides=('php-mcrypt')
pkgdesc='mcrypt module for PHP'
install -D -m755 "${srcdir}/build-php/modules/mcrypt.so" "${pkgdir}/usr/lib/php/modules/mcrypt.so"
}
package_php52-odbc() {
depends=('php52' 'unixodbc')
+ conflicts=('php-odbc')
+ replaces=('php-odbc')
+ provides=('php-odbc')
pkgdesc='ODBC modules for PHP'
install -D -m755 "${srcdir}/build-php/modules/odbc.so" "${pkgdir}/usr/lib/php/modules/odbc.so"
install -D -m755 "${srcdir}/build-php/modules/pdo_odbc.so" "${pkgdir}/usr/lib/php/modules/pdo_odbc.so"
@@ -333,6 +357,9 @@ package_php52-odbc() {
package_php52-pgsql() {
depends=('php52' 'postgresql-libs')
+ conflicts=('php-pgsql')
+ replaces=('php-pgsql')
+ provides=('php-pgsql')
pkgdesc='PostgreSQL modules for PHP'
install -D -m755 "${srcdir}/build-php/modules/pgsql.so" "${pkgdir}/usr/lib/php/modules/pgsql.so"
install -D -m755 "${srcdir}/build-php/modules/pdo_pgsql.so" "${pkgdir}/usr/lib/php/modules/pdo_pgsql.so"
@@ -340,18 +367,27 @@ package_php52-pgsql() {
package_php52-pspell() {
depends=('php52' 'aspell')
+ conflicts=('php-pspell')
+ replaces=('php-pspell')
+ provides=('php-pspell')
pkgdesc='pspell module for PHP'
install -D -m755 "${srcdir}/build-php/modules/pspell.so" "${pkgdir}/usr/lib/php/modules/pspell.so"
}
package_php52-snmp() {
depends=('php52' 'net-snmp')
+ conflicts=('php-snmp')
+ replaces=('php-snmp')
+ provides=('php-snmp')
pkgdesc='snmp module for PHP'
install -D -m755 "${srcdir}/build-php/modules/snmp.so" "${pkgdir}/usr/lib/php/modules/snmp.so"
}
package_php52-sqlite() {
depends=('php52' 'sqlite3')
+ conflicts=('php-sqlite')
+ replaces=('php-sqlite')
+ provides=('php-sqlite')
pkgdesc='sqlite3 module for PHP'
install -D -m755 "${srcdir}/build-php/modules/sqlite.so" "${pkgdir}/usr/lib/php/modules/sqlite.so"
install -D -m755 "${srcdir}/build-php/modules/pdo_sqlite.so" "${pkgdir}/usr/lib/php/modules/pdo_sqlite.so"
@@ -359,12 +395,31 @@ package_php52-sqlite() {
package_php52-tidy() {
depends=('php52' 'tidyhtml')
+ conflicts=('php-tidy')
+ replaces=('php-tidy')
+ provides=('php-tidy')
pkgdesc='tidy module for PHP'
install -D -m755 "${srcdir}/build-php/modules/tidy.so" "${pkgdir}/usr/lib/php/modules/tidy.so"
}
package_php52-xsl() {
depends=('php52' 'libxslt')
+ conflicts=('php-xsl')
+ replaces=('php-xsl')
+ provides=('php-xsl')
pkgdesc='xsl module for PHP'
install -D -m755 "${srcdir}/build-php/modules/xsl.so" "${pkgdir}/usr/lib/php/modules/xsl.so"
}
+
+sha256sums=('e81beb13ec242ab700e56f366e9da52fd6cf18961d155b23304ca870e53f116c'
+ 'aae115a318d80b3f32cedf876e7a8e4b932febb1b0c743c0b398003ebe122f91'
+ '4f3442588138705bd4f8a2b976c4240b24e9d3d2644f202d2d3ea1ee62e46eec'
+ '450280d8ae38ccfbb4fd66a2c0557f424015aae48e0b46163fde0b9c6a5c3727'
+ '0a2c4dfc9dd481ac141809e0ddd80bb43f078056efa16933f53de5f76f3e5c6c'
+ '5b480c6fb9df0eebfc9b05f0b56bfb520af38e65379d94ac134ca7b9a8c9f6f9'
+ 'bb49e6a3b221807b53846ace550e37a8917efee594a4df1e73b8a4ed5dc86a47'
+ '1c468e728aa09f2856756e797cf2ab475c9c9740a77ba122993532b94c60898d'
+ '05b58dfc5784c7d39ee8d82d976a60a5e5d0536fa25d96291206723d1b48348d'
+ 'ee42c4ac9ed2bbd82f417843e00ad2d2b6dfeb3a5ceca4fc5ae0f548d7759d16'
+ 'aa4836da95f8678856704c385693465c39d02f86a0edcdbe42a49033c729bbd8'
+ '640dba0d960bfeaae9ad38d2826d3f6b5d6c175a4d3e16664eefff29141faad5')
View
9 php52/php-fpm.install
@@ -0,0 +1,9 @@
+post_install() {
+ if [[ ! -d run/php-fpm ]]; then
+ usr/bin/systemd-tmpfiles --create usr/lib/tmpfiles.d/php-fpm.conf
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
View
13 php52/php-fpm.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=The PHP FastCGI Process Manager
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/run/php-fpm/php-fpm.pid
+PrivateTmp=true
+ExecStart=/usr/bin/php-cgi --fpm --fpm-config /etc/php/php-fpm.conf
+ExecReload=/bin/kill -USR2 $MAINPID
+
+[Install]
+WantedBy=multi-user.target
View
1  php52/php-fpm.tmpfiles
@@ -0,0 +1 @@
+d /run/php-fpm 755 root root
Please sign in to comment.
Something went wrong with that request. Please try again.