pakur.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. cd ${SRC}/build
  2. make -j1 INSTALL_ROOT=${PKG} PHP_SAPI=embed install-{modules,cli,cgi,build,headers,programs,pharcmd,fpm,sapi}
  3. install -D -m644 ${SRC}/${isim}-${surum}/php.ini-production ${PKG}/etc/php/php.ini
  4. install -d -m755 ${PKG}/etc/php/conf.d/
  5. install -D -m755 ${SRC}/build-apache/libs/libphp7.so ${PKG}/usr/lib/httpd/modules/libphp7.so
  6. install -D -m644 ${SRC}/apache.conf ${PKG}/etc/httpd/conf/extra/php7_module.conf
  7. install -D -m755 ${SRC}/build/modules/enchant.so ${PKG}/usr/lib/php/modules/enchant.so
  8. install -D -m755 ${SRC}/build/modules/sodium.so ${PKG}/usr/lib/php/modules/sodium.so
  9. install -D -m755 ${SRC}/build/modules/odbc.so ${PKG}/usr/lib/php/modules/odbc.so
  10. install -D -m755 ${SRC}/build/modules/pdo_odbc.so ${PKG}/usr/lib/php/modules/pdo_odbc.so
  11. install -D -m755 ${SRC}/build/modules/pgsql.so ${PKG}/usr/lib/php/modules/pgsql.so
  12. install -D -m755 ${SRC}/build/modules/pdo_pgsql.so ${PKG}/usr/lib/php/modules/pdo_pgsql.so
  13. install -D -m755 ${SRC}/build/modules/snmp.so ${PKG}/usr/lib/php/modules/snmp.so
  14. install -D -m755 ${SRC}/build/modules/sqlite3.so ${PKG}/usr/lib/php/modules/sqlite3.so
  15. install -D -m755 ${SRC}/build/modules/pdo_sqlite.so ${PKG}/usr/lib/php/modules/pdo_sqlite.so
  16. install -D -m755 ${SRC}/build/modules/xsl.so ${PKG}/usr/lib/php/modules/xsl.so
  17. install -D -m755 ${SRC}/build/modules/tidy.so ${PKG}/usr/lib/php/modules/tidy.so
  18. mkdir -p $PKG/var/www/
  19. cp -f $SRC/info.php $PKG/var/www/
  20. sed -i 's/^listen =.*/listen=127.0.0.1:9000/g' $PKG/etc/php/php-fpm.d/www.conf