コード例 #1
0
ファイル: actions.py プロジェクト: seaside82/anka-stable
def setup():
    # create directories for apache and fcgi's Makefiles
    shelltools.makedirs("fcgi")
    shelltools.makedirs("apache")

    # link configure script
    shelltools.sym("../configure", "fcgi/configure")
    shelltools.sym("../configure", "apache/configure")

    shelltools.export("LC_ALL", "C")
    shelltools.export("CFLAGS", "%s -fwrapv" % get.CFLAGS())
    shelltools.export("NO_INTERACTION", "1")
    shelltools.export("EXTENSION_DIR", "/usr/lib/php/modules")

    pisitools.dosed("configure.in", "PHP_UNAME=.*",
                    'PHP_UNAME="%s"' % get.lsbINFO()["DISTRIB_DESCRIPTION"])
    pisitools.dosed("ext/pgsql/config.m4", "include/postgresql",
                    " include/postgresql/pgsql")

    # Don't touch apache.conf
    for i in pisitools.ls("sapi/*/config.m4"):
        pisitools.dosed(i, "\\-i \\-a \\-n php5", "-i -n php5")
        pisitools.dosed(i, "\\-i \\-A \\-n php5", "-i -n php5")

    autotools.autoconf()

    common_options = "--sysconfdir=/etc \
                      --cache-file=./config.cache \
                      --with-zlib-dir=/usr/lib \
                      --with-libxml-dir=/usr/lib \
                      --with-jpeg-dir=/usr/lib/ \
                      --with-png-dir=/usr/lib/ \
                      --with-freetype-dir=/usr \
                      --without-pear \
                      --with-zend-vm=GOTO \
                      --with-zend-vm=SWITCH \
                      --with-pic \
                      --with-gnu-ld \
                      --with-system-tzdata=/usr/share/zoneinfo \
                      --with-mcrypt=/usr/bin/mcrypt \
                      --with-imap=shared \
                      --with-imap-ssl"

    # Enable FastCGI, needs Apache disabled
    shelltools.cd("fcgi")
    autotools.configure("--enable-fastcgi \
                         --enable-force-cgi-redirect \
                         --with-config-file-path=/etc/php/cli \
                         --with-config-file-scan-dir=/etc/php/cli/ext \
                         %s \
                         %s" % (common_options, extensions()))

    # Now compile with Apache enabled
    shelltools.cd("../apache")
    autotools.configure("--with-apxs2=/usr/bin/apxs \
                         --disable-cli \
                         --with-config-file-path=/etc/php/apache2 \
                         --with-config-file-scan-dir=/etc/php/apache2/ext \
                         %s \
                         %s" % (common_options, extensions()))
コード例 #2
0
ファイル: actions.py プロジェクト: alihanozturk/kuller
def setup():
    # create directories for apache and fcgi's Makefiles
    shelltools.makedirs("fcgi")
    shelltools.makedirs("apache")

    # link configure script
    shelltools.sym("../configure", "fcgi/configure")
    shelltools.sym("../configure", "apache/configure")

    shelltools.export("LC_ALL", "C")
    shelltools.export("CFLAGS", "%s -fwrapv" % get.CFLAGS())
    shelltools.export("NO_INTERACTION", "1")
    shelltools.export("EXTENSION_DIR", "/usr/lib/php/modules")

    pisitools.dosed("configure.in", "PHP_UNAME=.*", get.lsbINFO()["DISTRIB_DESCRIPTION"])

    # Don't touch apache.conf
    for i in pisitools.ls("sapi/*/config.m4"):
        pisitools.dosed(i, "\\-i \\-a \\-n php5", "-i -n php5")
        pisitools.dosed(i, "\\-i \\-A \\-n php5", "-i -n php5")

    autotools.autoconf()

    common_options = "--sysconfdir=/etc \
                      --cache-file=./config.cache \
                      --with-zlib-dir=/usr/lib \
                      --with-libxml-dir=/usr/lib \
                      --with-jpeg-dir=/usr/lib/ \
                      --with-png-dir=/usr/lib/ \
                      --with-freetype-dir=/usr \
                      --without-pear \
                      --with-zend-vm=GOTO \
                      --with-zend-vm=SWITCH \
                      --with-pic \
                      --with-gnu-ld \
                      --with-libevent \
                      --with-system-tzdata=/usr/share/zoneinfo \
                      --with-mcrypt=/usr/bin/mcrypt \
                      --with-imap=shared \
                      --with-imap-ssl"

    # Enable FastCGI, needs Apache disabled
    shelltools.cd("fcgi")
    autotools.configure("--enable-fastcgi \
                         --enable-fpm \
                         --enable-force-cgi-redirect \
                         --with-config-file-path=/etc/php/cli \
                         --with-config-file-scan-dir=/etc/php/cli/ext \
                         %s \
                         %s" % (common_options, extensions()))

    # Now compile with Apache enabled
    shelltools.cd("../apache")
    autotools.configure("--with-apxs2=/usr/sbin/apxs \
                         --disable-cli \
                         --with-config-file-path=/etc/php/apache2 \
                         --with-config-file-scan-dir=/etc/php/apache2/ext \
                         %s \
                         %s" % (common_options, extensions()))
コード例 #3
0
ファイル: actions.py プロジェクト: aydemir/pisi-packages
def setup():
    # create directories for apache and fcgi's Makefiles
    shelltools.makedirs("fcgi")
    shelltools.makedirs("apache")
    # link configure script
    shelltools.sym("../configure", "fcgi/configure")
    shelltools.sym("../configure", "apache/configure")

    shelltools.export("LC_ALL", "C")
    shelltools.export("CFLAGS","%s -fwrapv" % get.CFLAGS())
    shelltools.export("NO_INTERACTION", "1")

    pisitools.dosed("configure.in", "PHP_UNAME=.*", 'PHP_UNAME="Pardus Linux 2009"')
    pisitools.dosed("ext/pgsql/config.m4", "include/postgresql", " include/postgresql/pgsql")


    # Don't touch apache.conf
    for i in pisitools.ls("sapi/*/config.m4"):
        pisitools.dosed(i, "\\-i \\-a \\-n php5", "-i -n php5")
        pisitools.dosed(i, "\\-i \\-A \\-n php5", "-i -n php5")


    autotools.autoconf()

    common_options = "--sysconfdir=/etc \
                      --cache-file=./config.cache \
                      --with-config-file-path=/etc/php \
                      --with-config-file-scan-dir=/etc/php/ext \
                      --with-zlib-dir=/usr/lib \
                      --with-libxml-dir=/usr/lib \
                      --with-jpeg-dir=/usr/lib/ \
                      --with-png-dir=/usr/lib/ \
                      --with-freetype-dir=/usr \
                      --without-pear \
                      --with-zend-vm=GOTO \
                      --with-zend-vm=SWITCH \
                      --with-pic \
                      --with-gnu-ld \
                      --with-openssl \
                      --with-system-tzdata=/usr/share/zoneinfo \
                      --with-mcrypt=/usr/bin/mcrypt"

    # Enable FastCGI, needs Apache disabled
    shelltools.cd("fcgi")
    autotools.configure("--enable-fastcgi \
                         --enable-force-cgi-redirect \
                         %s \
                         %s" % (common_options, extensions()))

    # Now compile with Apache enabled
    shelltools.cd("../apache")
    autotools.configure("--with-apxs2=/usr/sbin/apxs \
                         --disable-cli \
                         %s \
                         %s" % (common_options, extensions()))
コード例 #4
0
ファイル: actions.py プロジェクト: blue-devil/kuller
def setup():
    # create directories for apache and fcgi's Makefiles
    shelltools.makedirs("fcgi")
    shelltools.makedirs("apache")
    # link configure script
    shelltools.sym("../configure", "fcgi/configure")
    shelltools.sym("../configure", "apache/configure")

    shelltools.export("LC_ALL", "C")
    shelltools.export("CFLAGS","%s -fwrapv" % get.CFLAGS())
    shelltools.export("NO_INTERACTION", "1")

    pisitools.dosed("configure.in", "PHP_UNAME=.*", 'PHP_UNAME="Pardus Linux 2008"')
    pisitools.dosed("ext/pgsql/config.m4", "include/postgresql", " include/postgresql/pgsql")


    # Don't touch apache.conf
    for i in pisitools.ls("sapi/*/config.m4"):
        pisitools.dosed(i, "\\-i \\-a \\-n php5", "-i -n php5")
        pisitools.dosed(i, "\\-i \\-A \\-n php5", "-i -n php5")

    autotools.autoconf()

    # configure for fastcgi first. php-cgi and php-cli packages are installed in this stage
    # so, when we configure apache, we will disable building php-cli
    shelltools.cd("fcgi")
    autotools.configure("--sysconfdir=/etc \
                         --cache-file=./config.cache \
                         --with-config-file-path=/etc/php \
                         --with-config-file-scan-dir=/etc/php/ext \
                         --with-zlib-dir=/usr/lib \
                         --with-libxml-dir=/usr/lib \
                         --with-jpeg-dir=/usr/lib/ \
                         --with-png-dir=/usr/lib/ \
                         --with-freetype-dir=/usr \
                         --without-pear \
                         --with-zend-vm=GOTO \
                         --with-zend-vm=SWITCH \
                         --with-pic \
                         --with-gnu-ld \
                         --with-system-tzdata=/usr/share/zoneinfo \
                         --enable-fastcgi \
                         --enable-force-cgi-redirect \
                         --with-mcrypt=/usr/bin/mcrypt \
                         %s" % extensions())

    # re-configure stuff, I know it's ugly but it should be done in that way :(
    # it just adds "--with-apxs2=/usr/sbin/apxs" parameter and disables cli building
    shelltools.cd("../apache")
    autotools.configure("--sysconfdir=/etc \
                         --cache-file=./config.cache \
                         --with-config-file-path=/etc/php \
                         --with-config-file-scan-dir=/etc/php/ext \
                         --with-zlib-dir=/usr/lib \
                         --with-libxml-dir=/usr/lib \
                         --with-jpeg-dir=/usr/lib/ \
                         --with-png-dir=/usr/lib/ \
                         --with-freetype-dir=/usr \
                         --without-pear \
                         --with-zend-vm=GOTO \
                         --with-zend-vm=SWITCH \
                         --with-pic \
                         --with-gnu-ld \
                         --with-system-tzdata=/usr/share/zoneinfo \
                         --with-apxs2=/usr/sbin/apxs \
                         --with-mcrypt=/usr/bin/mcrypt \
                         --disable-cli \
                         %s" % extensions())
コード例 #5
0
ファイル: actions.py プロジェクト: AlpyDemirok/PisiLinux
def setup():
    shelltools.unlinkDir("ext/openssl")

    # create directories for apache, fcgi and fpm's Makefiles
    shelltools.makedirs("fcgi")
    shelltools.makedirs("apache")
    shelltools.makedirs("fpm")

    # link configure script
    shelltools.sym("../configure", "fcgi/configure")
    shelltools.sym("../configure", "apache/configure")
    shelltools.sym("../configure", "fpm/configure")

    shelltools.export("LC_ALL", "C")
    shelltools.export("CFLAGS", "%s -fwrapv -lkrb5 -lgssapi_krb5 -lpam" % get.CFLAGS())
    shelltools.export("NO_INTERACTION", "1")
    shelltools.export("EXTENSION_DIR", "/usr/lib/php/modules")

    pisitools.dosed("configure.in", "PHP_UNAME=.*", 'PHP_UNAME="%s"' % get.lsbINFO()["DISTRIB_DESCRIPTION"])
    pisitools.dosed("ext/pgsql/config.m4", "include/postgresql", " include/postgresql/pgsql")

    # Don't touch apache.conf
    for i in pisitools.ls("sapi/*/config.m4"):
        pisitools.dosed(i, "\\-i \\-a \\-n php5", "-i -n php5")
        pisitools.dosed(i, "\\-i \\-A \\-n php5", "-i -n php5")

    autotools.autoconf()

    # workaround for pkg-config 0.28
    pisitools.dosed("configure", " && test -n \"\$OPENSSL_INCS\"")

    common_options = "--sysconfdir=/etc \
                      --cache-file=./config.cache \
                      --with-zlib-dir=/usr/lib \
                      --with-libxml-dir=/usr/lib \
                      --with-jpeg-dir=/usr/lib/ \
                      --with-png-dir=/usr/lib/ \
                      --with-freetype-dir=/usr \
                      --without-pear \
                      --with-zend-vm=GOTO \
                      --with-zend-vm=SWITCH \
                      --with-pic \
                      --with-gnu-ld \
                      --with-system-tzdata=/usr/share/zoneinfo \
                      --with-mcrypt=/usr/bin/mcrypt \
                      --with-imap=shared \
                      --with-openssl=shared \
                      --with-imap-ssl \
                      --with-mysql-sock=/run/mysqld/mysqld.sock \
                      --disable-rpath \
                     "

    # Enable FastCGI and CGI
    shelltools.cd("fcgi")
    autotools.configure("--enable-cgi \
                         --disable-cli \
                         --with-config-file-path=/etc/php/cli \
                         --with-config-file-scan-dir=/etc/php/cli/ext \
                         %s \
                         %s" % (common_options, extensions()))

    # Enable Apache
    shelltools.cd("../apache")
    autotools.configure("--with-apxs2=/usr/bin/apxs \
                         --disable-cli \
                         --with-config-file-path=/etc/php/apache2 \
                         --with-config-file-scan-dir=/etc/php/apache2/ext \
                         %s \
                         %s" % (common_options, extensions()))
    # Enable FPM
    shelltools.cd("../fpm")
    autotools.configure("--enable-fpm \
                         --disable-cli \
                         --with-fpm-user=apache \
                         --with-fpm-group=apache \
                         --with-config-file-path=/etc/php/apache2 \
                         --with-config-file-scan-dir=/etc/php/apache2/ext \
                         %s \
                         %s" % (common_options, extensions()))
コード例 #6
0
def setup():
    shelltools.unlinkDir("ext/openssl")

    # create directories for apache, fcgi and fpm's Makefiles
    shelltools.makedirs("fcgi")
    shelltools.makedirs("apache")
    shelltools.makedirs("fpm")

    # link configure script
    shelltools.sym("../configure", "fcgi/configure")
    shelltools.sym("../configure", "apache/configure")
    shelltools.sym("../configure", "fpm/configure")

    shelltools.export("LC_ALL", "C")
    shelltools.export("CFLAGS",
                      "%s -fwrapv -lkrb5 -lgssapi_krb5 -lpam" % get.CFLAGS())
    shelltools.export("NO_INTERACTION", "1")
    shelltools.export("EXTENSION_DIR", "/usr/lib/php/modules")

    pisitools.dosed("configure.in", "PHP_UNAME=.*",
                    'PHP_UNAME="%s"' % get.lsbINFO()["DISTRIB_DESCRIPTION"])
    pisitools.dosed("ext/pgsql/config.m4", "include/postgresql",
                    " include/postgresql/pgsql")

    # Don't touch apache.conf
    for i in pisitools.ls("sapi/*/config.m4"):
        pisitools.dosed(i, "\\-i \\-a \\-n php5", "-i -n php5")
        pisitools.dosed(i, "\\-i \\-A \\-n php5", "-i -n php5")

    autotools.autoconf()

    # workaround for pkg-config 0.28
    pisitools.dosed("configure", " && test -n \"\$OPENSSL_INCS\"")

    common_options = "--sysconfdir=/etc \
                      --cache-file=./config.cache \
                      --with-zlib-dir=/usr/lib \
                      --with-libxml-dir=/usr/lib \
                      --with-jpeg-dir=/usr/lib/ \
                      --with-png-dir=/usr/lib/ \
                      --with-freetype-dir=/usr \
                      --without-pear \
                      --with-zend-vm=GOTO \
                      --with-zend-vm=SWITCH \
                      --with-pic \
                      --with-gnu-ld \
                      --with-system-tzdata=/usr/share/zoneinfo \
                      --with-mcrypt=/usr/bin/mcrypt \
                      --with-imap=shared \
                      --with-openssl=shared \
                      --with-imap-ssl \
                      --with-mysql-sock=/run/mysqld/mysqld.sock \
                      --disable-rpath \
                     "

    # Enable FastCGI and CGI
    shelltools.cd("fcgi")
    autotools.configure("--enable-cgi \
                         --disable-cli \
                         --with-config-file-path=/etc/php/cli \
                         --with-config-file-scan-dir=/etc/php/cli/ext \
                         %s \
                         %s" % (common_options, extensions()))

    # Enable Apache
    shelltools.cd("../apache")
    autotools.configure("--with-apxs2=/usr/bin/apxs \
                         --disable-cli \
                         --with-config-file-path=/etc/php/apache2 \
                         --with-config-file-scan-dir=/etc/php/apache2/ext \
                         %s \
                         %s" % (common_options, extensions()))
    # Enable FPM
    shelltools.cd("../fpm")
    autotools.configure("--enable-fpm \
                         --disable-cli \
                         --with-fpm-user=apache \
                         --with-fpm-group=apache \
                         --with-config-file-path=/etc/php/apache2 \
                         --with-config-file-scan-dir=/etc/php/apache2/ext \
                         %s \
                         %s" % (common_options, extensions()))
コード例 #7
0
def setup():
    # create directories for apache and fcgi's Makefiles
    shelltools.makedirs("fcgi")
    shelltools.makedirs("apache")
    # link configure script
    shelltools.sym("../configure", "fcgi/configure")
    shelltools.sym("../configure", "apache/configure")

    shelltools.export("LC_ALL", "C")
    shelltools.export("CFLAGS", "%s -fwrapv" % get.CFLAGS())
    shelltools.export("NO_INTERACTION", "1")

    pisitools.dosed("configure.in", "PHP_UNAME=.*",
                    'PHP_UNAME="Pardus Linux 2008"')
    pisitools.dosed("ext/pgsql/config.m4", "include/postgresql",
                    " include/postgresql/pgsql")

    # Don't touch apache.conf
    for i in pisitools.ls("sapi/*/config.m4"):
        pisitools.dosed(i, "\\-i \\-a \\-n php5", "-i -n php5")
        pisitools.dosed(i, "\\-i \\-A \\-n php5", "-i -n php5")

    autotools.autoconf()

    # configure for fastcgi first. php-cgi and php-cli packages are installed in this stage
    # so, when we configure apache, we will disable building php-cli
    shelltools.cd("fcgi")
    autotools.configure("--sysconfdir=/etc \
                         --cache-file=./config.cache \
                         --with-config-file-path=/etc/php \
                         --with-config-file-scan-dir=/etc/php/ext \
                         --with-zlib-dir=/usr/lib \
                         --with-libxml-dir=/usr/lib \
                         --with-jpeg-dir=/usr/lib/ \
                         --with-png-dir=/usr/lib/ \
                         --with-freetype-dir=/usr \
                         --without-pear \
                         --with-zend-vm=GOTO \
                         --with-zend-vm=SWITCH \
                         --with-pic \
                         --with-gnu-ld \
                         --with-system-tzdata=/usr/share/zoneinfo \
                         --enable-fastcgi \
                         --enable-force-cgi-redirect \
                         --with-mcrypt=/usr/bin/mcrypt \
                         %s" % extensions())

    # re-configure stuff, I know it's ugly but it should be done in that way :(
    # it just adds "--with-apxs2=/usr/sbin/apxs" parameter and disables cli building
    shelltools.cd("../apache")
    autotools.configure("--sysconfdir=/etc \
                         --cache-file=./config.cache \
                         --with-config-file-path=/etc/php \
                         --with-config-file-scan-dir=/etc/php/ext \
                         --with-zlib-dir=/usr/lib \
                         --with-libxml-dir=/usr/lib \
                         --with-jpeg-dir=/usr/lib/ \
                         --with-png-dir=/usr/lib/ \
                         --with-freetype-dir=/usr \
                         --without-pear \
                         --with-zend-vm=GOTO \
                         --with-zend-vm=SWITCH \
                         --with-pic \
                         --with-gnu-ld \
                         --with-system-tzdata=/usr/share/zoneinfo \
                         --with-apxs2=/usr/sbin/apxs \
                         --with-mcrypt=/usr/bin/mcrypt \
                         --disable-cli \
                         %s" % extensions())