Skip to content

Instantly share code, notes, and snippets.

@gergoerdosi
Created February 19, 2013 22:56
Show Gist options
  • Save gergoerdosi/4991012 to your computer and use it in GitHub Desktop.
Save gergoerdosi/4991012 to your computer and use it in GitHub Desktop.
class php::params {
$short_version = $version ? {
/^5\.3/ => '53',
/^5\.4/ => '54',
}
$url = "http://www.php.net/get/php-${version}.tar.gz/from/hu1.php.net/mirror"
$configure = "\
--prefix=/usr/share/php${short_version}\
--datadir=/usr/share/php${short_version}\
--mandir=/usr/share/man\
--bindir=/usr/bin/php${short_version}\
--with-libdir=lib64\
--includedir=/usr/include\
--sysconfdir=/etc/php/${short_version}\
--with-config-file-path=/etc/php/${short_version}/cli\
--with-config-file-scan-dir=/etc/php/${short_version}/conf.d\
--localstatedir=/var\
--disable-debug\
--with-regex=php\
--disable-rpath\
--disable-static\
--disable-posix\
--with-pic\
--with-layout=GNU\
--with-pear=/usr/share/php${short_version}\
--enable-calendar\
--enable-sysvsem\
--enable-sysvshm\
--enable-sysvmsg\
--enable-bcmath\
--with-bz2\
--enable-ctype\
--without-gdbm\
--with-iconv\
--enable-exif\
--enable-ftp\
--enable-cli\
--with-gettext\
--enable-mbstring\
--with-pcre-regex=/usr\
--enable-shmop\
--enable-sockets\
--enable-wddx\
--with-libxml-dir=/usr\
--with-zlib\
--with-kerberos=/usr\
--with-openssl=/usr\
--enable-soap\
--enable-zip\
--with-mhash\
--with-exec-dir=/usr/lib/php5/libexec\
--without-mm\
--with-curl=shared,/usr\
--with-zlib-dir=/usr\
--with-gd=shared,/usr\
--enable-gd-native-ttf\
--with-gmp=shared,/usr\
--with-jpeg-dir=shared,/usr\
--with-xpm-dir=shared,/usr/X11R6\
--with-png-dir=shared,/usr\
--with-freetype-dir=shared,/usr\
--with-ttf=shared,/usr\
--with-t1lib=shared,/usr\
--with-ldap=shared,/usr\
--with-mysql=shared,/usr\
--with-mysqli=shared,/usr/bin/mysql_config\
--with-pspell=shared,/usr\
--with-xsl=shared,/usr\
--with-snmp=shared,/usr\
--with-sqlite=shared,/usr\
--with-tidy=shared,/usr\
--with-xmlrpc=shared\
--enable-pdo=shared\
--with-pdo-mysql=shared,/usr\
--enable-force-cgi-redirect --enable-fastcgi\
--with-libdir=/lib/x86_64-linux-gnu\
--with-pdo-sqlite=shared\
--with-sqlite=shared\
--enable-ipv6\
--with-mcrypt\
--with-imap-ssl"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment