########################################### EXTENSION_NAME="__extension_name__" EXTENSION_DIR=__extension_dir__ EXTENSION_EXTRA_CONFIG="__extension_extra_config__" ########################################### echo "" echo "==============================================" main_msg "Start building ${EXTENSION_NAME} Extension" echo "==============================================" echo `date` echo "" main_msg "Changing to build directory ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR}" cd ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR} check_errs $? "Could not get into build directory" main_msg "Running PHPize for ${EXTENSION_NAME} extension" ${INSTALL_DIR}/bin/phpize check_errs $? "Could not run PHPize for ${EXTENSION_NAME}" main_msg "Configuring ${EXTENSION_NAME} extension build" ./configure ${EXTENSION_EXTRA_CONFIG} --with-php-config=${INSTALL_DIR}/bin/php-config check_errs $? "Could not configure ${EXTENSION_NAME} extension build" main_msg "Compiling ${EXTENSION_NAME} extension" make check_errs $? "Could not compile ${EXTENSION_NAME} extension" main_msg "Installing ${EXTENSION_NAME} extension" make install check_errs $? "Could not install ${EXTENSION_NAME} extension" if [ "${INST_USER}" = "root" ]; then echo "chown -R ${PHP_USR}:${PHP_USRGROUP} ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR} " chown -R ${PHP_USR}:${PHP_USRGROUP} ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR} check_errs $? "Could not chown to ${PHP_USR}:${PHP_USRGROUP} for direcotry ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR}" fi echo "" echo "==============================================" main_msg "${EXTENSION_NAME} extension build complete" echo "==============================================" echo `date` echo ""
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
buildPHP.php | File | 567 B | 0644 |
|
buildProgress.php | File | 367 B | 0644 |
|
buildStep1.php | File | 1.45 KB | 0644 |
|
buildStep2.php | File | 9.35 KB | 0644 |
|
buildStep3.php | File | 3.46 KB | 0644 |
|
buildStep4.php | File | 4.22 KB | 0644 |
|
build_common.template | File | 565 B | 0644 |
|
build_install.template | File | 4 KB | 0644 |
|
build_install_ext.template | File | 1.72 KB | 0644 |
|
build_manual_run.template | File | 1.05 KB | 0644 |
|
build_prepare.template | File | 5.29 KB | 0644 |
|
build_prepare_ext.template | File | 2.6 KB | 0644 |
|
buildconf.inc.php | File | 1.96 KB | 0644 |
|
buildfunc.inc.php | File | 26.81 KB | 0644 |
|