--- /usr/portage/dev-lang/php/php-5.4.17.ebuild 2013-07-31 16:31:09.000000000 +0200 +++ /usr/local/portage/dev-lang/php/php-5.4.17.ebuild 2013-08-05 11:46:07.992438817 +0200 @@ -81,7 +81,7 @@ oci8-instant-client odbc pcntl pdo +phar +posix postgres qdbm readline recode selinux +session sharedmem +simplexml snmp soap sockets spell sqlite ssl - sybase-ct sysvipc tidy +tokenizer truetype unicode wddx + sybase-ct systemd sysvipc tidy +tokenizer truetype unicode wddx +xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib" DEPEND=" @@ -135,6 +135,7 @@ spell? ( >=app-text/aspell-0.50 ) sqlite? ( >=dev-db/sqlite-3.7.6.3 ) ssl? ( >=dev-libs/openssl-0.9.7 ) + systemd? ( sys-apps/systemd ) sybase-ct? ( dev-db/freetds ) tidy? ( app-text/htmltidy ) truetype? ( @@ -189,6 +190,8 @@ recode? ( !imap !mysql !mysqli ) sharedmem? ( !threads ) + systemd? ( fpm ) + !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )" RDEPEND="${DEPEND}" @@ -566,6 +569,10 @@ else sapi_conf="${sapi_conf} --disable-${sapi}" fi + + if [[ ${sapi} == "fpm" ]] && use systemd ; then + sapi_conf+=" --with-fpm-systemd" + fi ;; apache2)