#variables SRC_DIR=/data/src SVN_DIR=/data/svn PHP_VER=php-7.0.31 LIBDIR=lib EISFAIR_VER=1 export CFLAGS='-O2 -march=i486' if [ "`cat /etc/eisfair-system`" = "eisfair-64" ] then LIBDIR=lib64 EISFAIR_VER=64 export CFLAGS='-O2 -march=x86-64' fi export CXXFLAGS="${CFLAGS} -std=c++11" # goto src directory cd ${SRC_DIR} #-------------- # php #-------------- #wget #tar xjvf php-5.6.26.tar.bz2 cd $PHP_VER # rebuild configure script mv configure configure.orig ./buildconf --force # configure ./configure --prefix=/usr \ --exec-prefix=/usr \ --with-apxs2=/usr/local/apache2/bin/apxs \ --program-prefix= \ --bindir=/usr/bin \ --sysconfdir=/etc/php7 \ --libdir=/usr/${LIBDIR}/php7 \ --datadir=/usr/${LIBDIR}/php7 \ --with-libdir=${LIBDIR} \ --includedir=/usr/include/php7 \ --with-pear=/usr/share/php7 \ --disable-debug \ --enable-bcmath \ --enable-calendar \ --enable-dba \ --enable-exif \ --enable-ftp \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --enable-inline-optimization \ --enable-ipv6 \ --enable-mbstring \ --enable-mbregex \ --enable-session \ --enable-shmop \ --enable-sigchild \ --enable-sockets \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --enable-zip \ --with-bz2=/usr \ --with-curl=/usr \ --with-db4=/usr \ --with-gettext=/usr \ --with-gd \ --with-freetype-dir \ --with-interbase=/usr \ --with-jpeg-dir \ --with-layout=GNU \ --with-ldap=/usr \ --with-ldap-sasl \ --with-libmbfl \ --with-mhash=/usr \ --with-mcrypt=/usr \ --with-pdo-dblib=/usr \ --with-pdo-mysql=/usr \ --with-pgsql=/usr \ --with-pdo-pgsql=/usr \ --with-pdo-firebird=/usr \ --with-openssl=/usr \ --with-png-dir \ --with-zlib=/usr \ --with-imap=/usr \ --with-imap-ssl=/usr \ --with-config-file-scan-dir=/etc/php7/cli \ --with-config-file-path=/etc/php7/cli \ --enable-soap \ --enable-sigchild \ --enable-pdo \ --with-sqlite3=/usr \ --with-pdo-sqlite=/usr \ --enable-embedded-mysqli \ --enable-libxml \ --with-iconv \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-xpm-dir=/usr \ --enable-fpm \ --with-fpm-user=wwwrun \ --with-fpm-group=nogroup \ --enable-intl \ --with-openssl-dir=/usr # compile php7 make clean make make install # strip -R .note -R .comment /usr/bin/php* # /var/install/bin/php7_ccpp.package.install update /var/install/bin/php7_ccpp.package.install upgrade #-------------- # copy to svn #-------------- cd ${SVN_DIR}/trunk/plang/php7_ccpp/eisfair-${EISFAIR_VER} cp /usr/bin/pear* usr/bin/ cp /usr/bin/pecl usr/bin/ cp /usr/bin/php* usr/bin/ cp -R /usr/include/php7/* usr/include/php7/ cp -R /usr/${LIBDIR}/php7/build/* usr/${LIBDIR}/php7/build/ cp -R /usr/share/php7/* usr/share/php7/