From e61ba6c324a50e92f9164c81fc0b40b9356ae2a3 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sun, 5 Jan 2020 21:55:00 +0100 Subject: [PATCH] php-fpm: add termux-services script --- packages/php/build.sh | 3 ++- packages/php/php-fpm.subpackage.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/php/build.sh b/packages/php/build.sh index 7d4842a01..ee7084d2a 100644 --- a/packages/php/build.sh +++ b/packages/php/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://php.net TERMUX_PKG_DESCRIPTION="Server-side, HTML-embedded scripting language" TERMUX_PKG_LICENSE="PHP-3.0" TERMUX_PKG_VERSION=7.4.1 -TERMUX_PKG_REVISION=6 +TERMUX_PKG_REVISION=7 TERMUX_PKG_SRCURL=https://secure.php.net/distributions/php-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=561bb866bdd509094be00f4ece7c3543ec971c4d878645ee81437e291cffc762 # Build native php for phar to build (see pear-Makefile.frag.patch): @@ -13,6 +13,7 @@ TERMUX_PKG_DEPENDS="freetype, libandroid-glob, libandroid-support, libbz2, libcr TERMUX_PKG_CONFLICTS="php-mysql, php-dev" TERMUX_PKG_REPLACES="php-mysql, php-dev" TERMUX_PKG_RM_AFTER_INSTALL="php/php/fpm" +TERMUX_PKG_SERVICE_SCRIPT=("php-fpm" 'mkdir -p ~/.php\nif [ -f "$HOME/.php/php-fpm.conf" ]; then CONFIG="$HOME/.php/php-fpm.conf"; else CONFIG="$PREFIX/etc/php-fpm.conf"; fi\nexec php-fpm -F -y $CONFIG -c ~/.php/php.ini 2>&1') TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" ac_cv_func_res_nsearch=no diff --git a/packages/php/php-fpm.subpackage.sh b/packages/php/php-fpm.subpackage.sh index 7f5159abc..bdceb05e1 100644 --- a/packages/php/php-fpm.subpackage.sh +++ b/packages/php/php-fpm.subpackage.sh @@ -1,3 +1,3 @@ -TERMUX_SUBPKG_INCLUDE="bin/php-fpm etc/php-fpm.conf etc/php-fpm.d/www.conf share/man/man8/php-fpm.8.gz" +TERMUX_SUBPKG_INCLUDE="bin/php-fpm etc/php-fpm.conf etc/php-fpm.d/www.conf share/man/man8/php-fpm.8.gz var/service/php-fpm" TERMUX_SUBPKG_CONFFILES="etc/php-fpm.conf etc/php-fpm.d/www.conf" TERMUX_SUBPKG_DESCRIPTION="FastCGI Process Manager for PHP"