Пример #1
0
def setup():
    shelltools.chmod(AUTOCONF, 0755)

    pisitools.dosed(".pardus-default-prefs.js", "LAUNCHER", "%s/open-browser.sh" % MOZAPPDIR)

    pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_ID", get.lsbINFO()["DISTRIB_ID"])
    pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_RELEASE", get.lsbINFO()["DISTRIB_RELEASE"])
Пример #2
0
def setup():
    pisitools.flags.sub("-ggdb3", "-g")
    pisitools.ldflags.add("-Wl,-rpath,/usr/lib/thunderbird")

    # configure script misdetects the preprocessor without an optimization level
    # https://bugs.archlinux.org/task/34644
    shelltools.system("sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' mozilla/configure")

    # LOCALE
    shelltools.system("rm -rf langpack-tb/*/browser/defaults")
    if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir)
    for locale in locales:
        shelltools.system(
            "wget -c -P %s ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%s/linux-%s/xpi/%s.xpi"
            % (xpidir, ver, arch, locale))
        shelltools.makedirs("langpack-tb/langpack-%[email protected]" %
                            locale)
        shelltools.system(
            "unzip -uo %s/%s.xpi -d langpack-tb/langpack-%[email protected]"
            % (xpidir, locale, locale))

    pisitools.dosed(".pisilinux-default-prefs.js", "DISTRIB_ID",
                    get.lsbINFO()["DISTRIB_ID"])
    pisitools.dosed(".pisilinux-default-prefs.js", "DISTRIB_RELEASE",
                    get.lsbINFO()["DISTRIB_RELEASE"])
Пример #3
0
def setup():
    shelltools.chmod("autoconf-213/autoconf-2.13", 0755)

    # Set job count for make
    pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS())

    pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_ID", get.lsbINFO()["DISTRIB_ID"])
    pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_RELEASE", get.lsbINFO()["DISTRIB_RELEASE"])
Пример #4
0
def setup():
    # Use autoconf 2.13, pff
    shelltools.chmod("autoconf-213/autoconf-2.13", 0755)

    # Set job count for make
    pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS())

    pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_ID", get.lsbINFO()["DISTRIB_ID"])
    pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_RELEASE", get.lsbINFO()["DISTRIB_RELEASE"])
Пример #5
0
def setup():
    shelltools.chmod(AUTOCONF, 0755)

    pisitools.dosed(".pardus-default-prefs.js", "LAUNCHER",
                    "%s/open-browser.sh" % MOZAPPDIR)

    pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_ID",
                    get.lsbINFO()["DISTRIB_ID"])
    pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_RELEASE",
                    get.lsbINFO()["DISTRIB_RELEASE"])
Пример #6
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")
    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()))
Пример #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")
    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()))
Пример #8
0
def setup():
    pisitools.flags.sub("-ggdb3", "-g")
    pisitools.ldflags.add("-Wl,-rpath,/usr/lib/thunderbird")
    
    # configure script misdetects the preprocessor without an optimization level
    # https://bugs.archlinux.org/task/34644
    shelltools.system("sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' mozilla/configure")
  
    # LOCALE
    shelltools.system("rm -rf langpack-tb/*/browser/defaults")
    if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir)
    for locale in locales:
        shelltools.system("wget -c -P %s ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale))
        shelltools.makedirs("langpack-tb/langpack-%[email protected]" % locale)
        shelltools.system("unzip -uo %s/%s.xpi -d langpack-tb/langpack-%[email protected]" % (xpidir, locale, locale))

    pisitools.dosed(".pisilinux-default-prefs.js", "DISTRIB_ID", get.lsbINFO()["DISTRIB_ID"])
    pisitools.dosed(".pisilinux-default-prefs.js", "DISTRIB_RELEASE", get.lsbINFO()["DISTRIB_RELEASE"])
Пример #9
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()))
Пример #10
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()))