Exemple #1
0
def setup():
    shelltools.makedirs(buildDir)
    shelltools.cd(buildDir)
    shelltools.sym("../configure", "configure")
    autotools.configure("--prefix=/usr \
                         --sysconfdir=/etc \
                         --datarootdir=/usr/share \
                         --datadir=/usr/share \
                         --mandir=/usr/share/man \
                         --disable-native-texlive-build \
                         --bindir=/usr/bin \
                         --with-banner-add=/PisiLinux \
                         --disable-psutils \
                         --disable-t1utils \
                         --enable-multiplatform \
                         --disable-static \
                         --enable-ipc \
                         --with-x \
                         --disable-xindy \
                         --with-system-zlib \
                         --with-system-pnglib \
                         --with-system-ncurses \
                         --with-system-t1lib \
                         --with-system-gd \
                         --without-system-xpdf \
                         --with-system-graphite2 \
                         --with-system-freetype2 \
                         --disable-luatex")
Exemple #2
0
def setup():
    shelltools.makedirs("build-ansi")
    shelltools.makedirs("build-unicode")
    shelltools.sym("../configure", "build-ansi/configure")
    shelltools.sym("../configure", "build-unicode/configure")
    shelltools.cd("build-ansi")
    autotools.configure("--with-png \
                         --with-jpeg \
                         --with-tiff \
                         --with-odbc \
                         --with-expat \
                         --with-opengl \
                         --with-sdl \
                         --enable-sound \
                         --enable-joystick \
                         --with-gtk=2")
    
    shelltools.cd("../build-unicode")
    # it fails if ODBC is enabled when using unicode
    autotools.configure("--with-png \
                         --with-jpeg \
                         --with-tiff \
                         --with-expat \
                         --with-opengl \
                         --with-sdl \
                         --enable-sound \
                         --enable-joystick \
                         --enable-unicode \
                         --with-gtk=2")
Exemple #3
0
def install():
    installdir = get.installDIR() + datadir
    pisitools.dodir(datadir)
    pisitools.dodir("%s/applications" % datadir)

    shelltools.copytree("%s/playonlinux" % get.workDIR(), "%s/" % installdir)

    pisitools.dobin("%s/playonlinux/playonlinux" % installdir)

    pisitools.domo("%s/playonlinux/lang/po/tr.po" % installdir, "tr", "pol.mo")

    #    pisitools.domove("usr/share/locale/tr/LC_MESSAGES", "/usr/share/playonlinux/lang/locale/tr")

    pisitools.dodoc("%s/playonlinux/LICENCE" % installdir, "%s/playonlinux/CHANGELOG" % installdir)

    shelltools.move(
        "%s/etc/PlayOnLinux.desktop" % (get.installDIR() + "/usr/share/playonlinux"),
        "%s/usr/share/applications/PlayOnLinux.desktop" % get.installDIR(),
    )

    shelltools.unlink("%s/usr/bin/playonlinux" % get.installDIR())

    shelltools.sym(
        "%s/usr/share/playonlinux/playonlinux" % get.installDIR(), "%s/usr/bin/playonlinux" % get.installDIR()
    )
def setup():
    for f in shelltools.ls("docs"):
        if f.endswith("ptxt"): shelltools.sym(f, "docs/%s" % f.replace("ptxt", "txt"))

    with open("Makefile.local", 'w') as file:
        for line in lines:
            file.write("%s\n" % line)
Exemple #5
0
def setup():
    shelltools.makedirs("%s/common" % get.workDIR())
    shelltools.move("lib", "%s/common/" % get.workDIR())
    shelltools.move("usr", "%s/common/" % get.workDIR())
    shelltools.move("etc", "%s/common/" % get.workDIR())
    #shelltools.export("SETUP_NOCHECK", "1")
    #shelltools.system("sh amd-driver-installer-*-x86.x86_64.run --extract .")

    if get.buildTYPE() == "emul32":
        return

    # Needed during kernel module compiling
    shelltools.sym("../../../../../arch/%s/lib/modules/fglrx/build_mod/libfglrx_ip.a" % Target, "%s/libfglrx_ip.a" % BuildDir)

    pisitools.dosed("%s/make.sh" % BuildDir, r"^linuxincludes=.*", "linuxincludes=/lib/modules/%s/build/include" % KDIR)
    pisitools.dosed("%s/make.sh" % BuildDir, r"^uname_r=.*", "uname_r=%s" % KDIR)
    pisitools.dosed("common/etc/ati/authatieventsd.sh", "/var/lib/xdm/authdir/authfiles", "/var/run/xauth")


    shelltools.system("patch -p1 < desktop-files.patch")
    
    #shelltools.system("patch -p1 < fglrx_gpl_symbol.patch")
    #shelltools.system("patch -p1 < kolasa_4.0-cr4-strn.patch")
    #shelltools.system("patch -p1 < lano1106_fglrx_intel_iommu.patch")
    #shelltools.system("patch -p1 < lano1106_kcl_agp_13_4.patch")
    shelltools.system("patch -p1 < makefile_compat.patch")
Exemple #6
0
    def testIsLink(self):
        from pisi.actionsapi.shelltools import sym
        from pisi.actionsapi.shelltools import isLink

        sym('tests/database','tests/history')
        assert isLink('tests/history')
        assert not isLink('tests/runtests.py')
Exemple #7
0
    def testShelltoolsSym(self):
        from pisi.actionsapi.shelltools import sym

        sym("tests/actionsapitests/file", "tests/actionsapitests/filelnk")
        self.assert_(os.path.islink("tests/actionsapitests/filelnk"))
        self.assertEqual(os.readlink("tests/actionsapitests/filelnk"), "tests/actionsapitests/file")
        os.remove("tests/actionsapitests/filelnk")
Exemple #8
0
def setup():
    install_dir = get.installDIR()
    pisitools.dodir("/usr/share/texmf")
    # Why is this needed?
    shelltools.sym("/usr/share/texmf-dist", "%s/usr/share/texmf-dist" % install_dir)

    autotools.rawConfigure(
        "--prefix=%s/usr \
                            --bindir=%s/usr/bin \
                            --datadir=%s/usr/share \
                            --disable-multiplatform \
                            --with-xdvi-x-toolkit=xaw3d \
                            --with-system-ncurses \
                            --with-system-pnglib \
                            --with-system-zlib \
                            --with-system-t1lib \
                            --with-system-gd \
                            --without-texinfo \
                            --without-dialog \
                            --without-texi2html \
                            --with-ps=gs \
                            --enable-ipc \
                            --with-etex \
                            --with-x"
        % (install_dir, install_dir, install_dir)
    )
Exemple #9
0
def install():
    shelltools.cd("out/Release")

    shelltools.makedirs("%s/usr/lib/chromium-browser" % get.installDIR())

    pisitools.insinto("/usr/lib/chromium-browser", "chrome.pak")
    pisitools.insinto("/usr/lib/chromium-browser", "resources.pak")
    pisitools.insinto("/usr/lib/chromium-browser", "chrome", "chromium-browser")
    pisitools.insinto("/usr/lib/chromium-browser", "chrome_sandbox", "chromium_sandbox")
    pisitools.insinto("/usr/lib/chromium-browser", "locales")
    pisitools.insinto("/usr/lib/chromium-browser", "resources")

    # Nacl plugin
    pisitools.insinto("/usr/lib/chromium-browser", "libppGoogleNaClPluginChrome.so")

    pisitools.dosym("/usr/lib/nsbrowser/plugins", "/usr/lib/chromium-browser/plugins")

    pisitools.newman("chrome.1", "chromium-browser.1")

    # Chromium looks for these in its folder
    # See media_posix.cc and base_paths_linux.cc
    for lib in ["libavcodec.so.52" , "libavformat.so.52", "libavutil.so.50"]:
        shelltools.sym("/usr/lib/%s" % lib, "%s/usr/lib/chromium-browser/%s" % (get.installDIR(), lib))


    shelltools.cd("../..")
    for size in ["16", "22", "24", "32", "48", "64", "128", "256"]:
        pisitools.insinto("/usr/share/icons/hicolor/%sx%s/apps" %(size, size), "chrome/app/theme/chromium/product_logo_%s.png" % size, "chromium-browser.png")

    pisitools.dosym("/usr/share/icons/hicolor/256x256/apps/chromium-browser.png", "/usr/share/pixmaps/chromium-browser.png")
Exemple #10
0
def setup():
    shelltools.sym(".", "m4")
    shelltools.export("CFLAGS", "%s -DDRV_RAW" % get.CFLAGS())

    autotools.autoreconf("-vfi -Im4")
    libtools.gnuconfig_update()

    options = "--disable-esd \
               --disable-af \
               --disable-alsa \
               --enable-oss \
               --disable-static"

    if get.buildTYPE() == "emul32":
        options += " --prefix=/emul32 \
                     --libdir=/usr/lib32 \
                     --bindir=/emul32/bin"

        shelltools.export("CC", "%s -m32" % get.CC())
        shelltools.export("CXX", "%s -m32" % get.CXX())
        shelltools.export("CFLAGS", "%s -DDRV_RAW -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    autotools.configure(options)
Exemple #11
0
def setup():
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())
    autotools.configure("--prefix=/usr \
		--sysconfdir=/etc \
		--disable-schemas-compile \
		--disable-gtk-doc \
                PYTHON=/usr/bin/python")
Exemple #12
0
def setup():
    shelltools.export("SETUP_NOCHECK", "1")
    shelltools.system("sh amd-driver-installer-*-x86.x86_64.run --extract .")

    if get.buildTYPE() == "emul32":
        return

    # Needed during kernel module compiling
    shelltools.sym("../../../../../arch/%s/lib/modules/fglrx/build_mod/libfglrx_ip.a" % Target, "%s/libfglrx_ip.a" % BuildDir)

    pisitools.dosed("%s/make.sh" % BuildDir, r"^linuxincludes=.*", "linuxincludes=/lib/modules/%s/build/include" % KDIR)
    pisitools.dosed("%s/make.sh" % BuildDir, r"^uname_r=.*", "uname_r=%s" % KDIR)
    pisitools.dosed("common/etc/ati/authatieventsd.sh", "/var/lib/xdm/authdir/authfiles", "/var/run/xauth")

    shelltools.system("patch -p1 < ati-powermode.patch")
    shelltools.system("patch -p1 < 3.5-do_mmap.patch")
    shelltools.system("patch -p1 < arch-fglrx-3.7.patch")
    shelltools.system("patch -p1 < arch-fglrx-3.8.patch")
    shelltools.system("patch -l -p1 < kolasa_foutrelis_fglrx_3.10.patch")
    shelltools.system("patch -p1 < lano1106_fglrx_intel_iommu.patch")
    shelltools.system("patch -p1 < lano1106_kcl_agp_13_4.patch")
    shelltools.system("patch -p1 < makefile_compat.patch")

    pisitools.dosed("./", "linux/version.h", "generated/uapi/linux/version.h", namePattern = ".*\.(c|h|sh)$")
    pisitools.dosed("common/lib/modules/fglrx/build_mod/firegl_public.c", "(#define __AGP__BUILTIN__)", r"\1\n#ifndef VM_RESERVED\n#define VM_RESERVED (VM_DONTEXPAND | VM_DONTDUMP)\n#endif")
Exemple #13
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()))
Exemple #14
0
def setup():
    shelltools.sym("makefiles/configure.in","configure.in")
    shelltools.sym("makefiles/Makefile.am","Makefile.am")

    autotools.autoreconf("-fi")
    autotools.configure("--with-jpeg \
                         --with-lcms \
                         --disable-static")
Exemple #15
0
def setup():
    shelltools.makedirs("%s/lib" % get.workDIR())

    jarlist = ["dbus", "mina-core", "zemberek-cekirdek", "zemberek-tr"]

    for jars in jarlist:
        print ("%s/%s.jar" % ("/usr/share/java", jars))
        shelltools.sym("%s/%s.jar" % ("/usr/share/java", jars), "%s/lib/%s.jar" % (get.workDIR(), jars))
Exemple #16
0
def setup():
    shelltools.unlink("py-compile")
    shelltools.sym("/bin/true", "py-compile")

    autotools.configure(
        "--disable-mime-install \
                         --enable-packager-mode"
    )
Exemple #17
0
def build():
    cur_dir = get.curDIR()
    src = "%s/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC3" % (cur_dir)
    build_dir = "%s/common/lib/modules/fglrx/build_mod" % (cur_dir)
    shelltools.sym(src, "%s/%s" %(build_dir, "libfglrx_ip.a.GCC3"))

    shelltools.cd(build_dir)
    shelltools.system("sh make.sh")
Exemple #18
0
def setup():
    shelltools.export("SETUP_NOCHECK", "1")
    shelltools.system("sh ati-driver-installer-%s-x86.x86_64.run --extract ." % get.srcVERSION().replace(".", "-"))

    shelltools.sym("../../../../../arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4", "%s/libfglrx_ip.a.GCC4" % BuildDir)

    pisitools.dosed("%s/make.sh" % BuildDir, r"^linuxincludes=.*", "linuxincludes=/lib/modules/%s/build/include" % KDIR)
    pisitools.dosed("%s/make.sh" % BuildDir, r"^uname_r=.*", "uname_r=%s" % KDIR)
    pisitools.dosed("%s/2.6.x/Makefile" % BuildDir, r"^(GCC_VER_MAJ *=).*$", r"\1 4")
Exemple #19
0
def build():
    # fix import config
    shelltools.sym("config-scripts/config", "./cbang/config")
    shelltools.sym("cbang/config-scripts/config", "./config")

    pisitools.dosed("src/openscam/view/GLFreeType.cpp", "freetype\/(.*\.h)", r"\1")

    scons.make("-C cbang compiler=gnu")
    scons.make("compiler=gnu")
Exemple #20
0
def setup():
    shelltools.unlink("py-compile" )
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())

    autotools.configure("--enable-thread \
                         --disable-docs")

    shelltools.touch("%s/style.css" % get.curDIR())
    pisitools.dosed("docs/Makefile", "CSS_FILES = .*", "CSS_FILES = %s/style.css" % get.curDIR())
Exemple #21
0
def build():
    CommonDir = getCommonDir()

    shelltools.cd(CommonDir + "/lib/modules/fglrx/build_mod")

    src = "%s/x690/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC3" % get.workDIR()
    shelltools.sym(src, "libfglrx_ip.a.GCC3")
    
    shelltools.system("sh make.sh")
Exemple #22
0
def setup():
    shelltools.unlink("py-compile")
    shelltools.sym("/bin/true", "py-compile")

    autotools.configure("--with-xml=libxml \
                         --localstatedir=/var \
                         --disable-doxygen-docs \
                         --disable-static \
                         --disable-xml-docs")
Exemple #23
0
def setup():
    shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS())
    shelltools.export("CXXFLAGS", "%s -fPIC" % get.CXXFLAGS())
    
    #shelltools.system("tar -xzvf biber-linux_x86_64.tar.gz")
    
    for tar_file in shelltools.ls(get.workDIR()):
        if tar_file.endswith("gz"):
            shelltools.system("tar -xzvf %s" % tar_file)

    shelltools.system('sed -i -e "s/SELFAUTOPARENT/TEXMFROOT/" source/texk/tex4htk/t4ht.c')
    shelltools.system("sed -i -e 's|-lXp ||' source/texk/xdvik/configure")
    shelltools.makedirs("%s/source/build" % get.workDIR())
    shelltools.cd("%s/source/build" % get.workDIR())
    
    shelltools.sym("../configure", "configure")
    autotools.configure("--prefix=/usr \
                         --sysconfdir=/etc \
                         --datarootdir=/usr/share \
                         --datadir=/usr/share \
                         --mandir=/usr/share/man \
                         --disable-native-texlive-build \
                         --with-banner-add=/PisiLinux \
                         --disable-multiplatform \
                         --disable-dialog \
                         --disable-psutils \
                         --disable-t1utils \
                         --disable-bibtexu \
                         --disable-xz \
                         --disable-web2c \
                         --enable-shared \
                         --disable-static \
                         --with-system-zlib \
                         --with-system-zziplib \
                         --with-system-pnglib \
                         --with-system-ncurses \
                         --with-system-t1lib \
                         --with-system-gd \
                         --with-system-poppler \
                         --with-system-xpdf \
                         --with-system-freetype2 \
                         --with-system-pixman \
                         --with-system-cairo \
                         --with-system-harfbuzz \
                         --with-system-graphite \
                         --with-system-icu \
                         --with-freetype2-libdir=/usr/lib \
                         --with-freetype2-include=/usr/include/freetype2 \
                         --with-xdvi-x-toolkit=xaw \
                         --disable-dump-share \
                         --disable-aleph \
                         --enable-luatex \
                         --with-clisp-runtime=default \
                         --enable-xindy \
                         --disable-xindy-rules \
                         --disable-xindy-docs ")
Exemple #24
0
def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Replace removed bundled font them with symlinks
    shelltools.sym("/usr/share/fonts/dejavu/DejaVuSans.ttf", "%s/usr/share/stellarium/data/DejaVuSans.ttf" % get.installDIR())
    shelltools.sym("/usr/share/fonts/dejavu/DejaVuSansMono.ttf", "%s/usr/share/stellarium/data/DeJaVuSansMono.ttf" % get.installDIR())

    pisitools.insinto("/usr/share/pixmaps", "doc/images/stellarium-logo.png")

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")
Exemple #25
0
def setup():
    libtools.gnuconfig_update()
    shelltools.export("ALLOWED_FLAGS", "-O -O1 -O2 -pipe -g")
    shelltools.sym("config/configure.in", "configure.in")
    shelltools.export("SGML_PREFIX", "/usr/share/sgml")
    autotools.configure("--enable-http \
                         --enable-default-catalog=/etc/sgml/catalog \
                         --enable-default-search-path=/usr/share/sgml \
                         --libdir=/usr/lib \
                         --datadir=/usr/share/sgml/%s" % openjade)
Exemple #26
0
def setup():
    shelltools.sym("/lib/modules/%s/build" % KDIR, "linux")

    # set the build directory
    shelltools.echo("MCONFIG", "KRNLOBJ = /lib/modules/%s/build" % KDIR)

    # Workaround for prelink warnings
    shelltools.echo("70klibc", 'PRELINK_PATH_MASK="/usr/lib/klibc"')

    pisitools.dosed("Makefile", "/man", "/share/man")
Exemple #27
0
    def testUnlinkDir(self):
        from pisi.actionsapi.shelltools import makedirs
        from pisi.actionsapi.shelltools import sym
        from pisi.actionsapi.shelltools import unlinkDir

        makedirs('tests/testdirectory/sample')
        sym('tests/testdirectory/sample','tests/history')
        self.assertEqual(os.path.islink('tests/history'),True)
        unlinkDir('tests/testdirectory/sample')
        self.assertEqual(os.path.islink('tests/testdirectory/sample'),False)
Exemple #28
0
def build():
    autotools.make("%s -j1 all" % MAKE_FLAGS)

    # Build tests
    autotools.make("%s -C test all DIET=\"%s/bin-*/diet\" -k" % (MAKE_FLAGS, get.curDIR()))
    autotools.make("%s -C test/inet all DIET=\"%s/bin-*/diet\"" % (MAKE_FLAGS, get.curDIR()))

    # Symlink all to the fedora wrapper test script
    for t in ("test", "test/stdio", "test/inet", "test/stdlib", "test/dirent", "test/string", "test/time"):
        shelltools.sym("%s/runtests-X.sh" % get.curDIR(), "%s/%s/runtests-X.sh" % (get.curDIR(), t))
Exemple #29
0
def setup():
    pisitools.dosed("Dbus/interfaces/python/PythonInstall.cmake.in",  "\@ROOT_PREFIX\@",  get.installDIR())
    pisitools.dosed("Dbus/interfaces/bash/BashInstall.cmake.in",  "\@ROOT_PREFIX\@",  get.installDIR())
    cmaketools.configure()
    if not shelltools.isDirectory("weblets/src/webkit"):
        shelltools.makedirs("weblets/src/webkit")
        shelltools.sym("%s/weblets/src/webkit" % get.curDIR(), "weblets/src/webkit/webkit")
        for file in shelltools.ls("/usr/include/webkit-1.0/webkit"):
            shelltools.sym("/usr/include/webkit-1.0/webkit/%s" % file,  "weblets/src/webkit/%s" % file)
        pisitools.dosed("weblets/src/applet-struct.h",  "<webkit\/webkit.h>",  '"webkit/webkit.h"')
Exemple #30
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 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()))
Exemple #31
0
def setup():
    if get.ARCH() == "x86_64":
        shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS())

    shelltools.cd("/%s/source/" % get.workDIR())

    # prevent compiling Xdvi with libXp
    # it's a workaround should be fixed with a better regex pattern
    pisitools.dosed("texk/xdvik/configure","-lXp ")

    shelltools.makedirs("%s/source/build" % get.workDIR())
    shelltools.cd("%s/source/build" % get.workDIR())

    shelltools.sym("../configure", "configure")
    autotools.configure("--disable-native-texlive-build \
                         --with-banner-add=\"/PisiLinux\" \
                         --disable-multiplatform \
                         --disable-chktex \
                         --disable-dialog \
                         --disable-dialog \
                         --disable-detex \
                         --disable-dvipng \
                         --disable-dvi2tty \
                         --disable-dvipdfmx \
                         --disable-lcdf-typetools \
                         --disable-ps2eps \
                         --disable-psutils \
                         --disable-t1utils \
                         --disable-bibtexu \
                         --disable-xz \
                         --disable-xdvik \
                         --with-system-zlib \
                         --with-system-pnglib \
                         --with-system-ncurses \
                         --with-system-t1lib \
                         --with-system-gd \
                         --with-system-xpdf \
                         --with-system-freetype2 \
                         --with-freetype2-libdir=/usr/lib \
                         --with-freetype2-include=/usr/include/freetype2 \
                         --with-xdvi-x-toolkit=xaw \
                         --disable-dump-share \
                         --disable-aleph \
                         --disable-luatex \
                         --with-clisp-runtime=default \
                         --enable-xindy --disable-xindy-rules --disable-xindy-docs")
Exemple #32
0
def setup():
    shelltools.system(
        "sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/xsane-save.c")
    shelltools.system("sed -i -e 's/netscape/xdg-open/' src/xsane.h")
    shelltools.unlink("include/config.h")

    shelltools.makedirs("withgimp")
    shelltools.makedirs("withoutgimp")

    shelltools.cd("withgimp")
    shelltools.sym("../configure", "configure")

    autotools.configure("--enable-gimp")

    shelltools.cd("../withoutgimp")
    shelltools.sym("../configure", "configure")
    autotools.configure("--disable-gimp")
Exemple #33
0
def setup():
    autotools.configure("--with-oss \
                         --with-kernel=/lib/modules/%s/build \
                         --with-build=/lib/modules/%s/build \
                         --with-isapnp=yes \
                         --with-sequencer=yes \
                         --with-card-options=all,hda-input-beep-mode=0,hda-prealloc-size=4096 \
                         --disable-verbose-printk \
                         --enable-dynamic-minors \
                         --with-cards=all" % (KDIR, KDIR))

    # Needed for V4L stuff
    shelltools.sym("../../include/config.h", "sound/include/config.h")
    shelltools.sym("../../include/config1.h", "sound/include/config1.h")

    # Configure hda-emu
    """
Exemple #34
0
def setup():
    shelltools.export("SETUP_NOCHECK", "1")
    shelltools.system("sh ati-driver-installer-%s-x86.x86_64.run --extract ." %
                      get.srcVERSION().replace(".", "-"))

    shelltools.sym(
        "../../../../../arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4",
        "%s/libfglrx_ip.a.GCC4" % BuildDir)

    pisitools.dosed("%s/make.sh" % BuildDir, r"^linuxincludes=.*",
                    "linuxincludes=/lib/modules/%s/build/include" % KDIR)
    pisitools.dosed("%s/make.sh" % BuildDir, r"^uname_r=.*",
                    "uname_r=%s" % KDIR)
    pisitools.dosed("%s/2.6.x/Makefile" % BuildDir, r"^(GCC_VER_MAJ *=).*$",
                    r"\1 4")
    pisitools.dosed("common/etc/ati/authatieventsd.sh",
                    "/var/lib/xdm/authdir/authfiles", "/var/run/xauth")
Exemple #35
0
def setup():
    # Skip ether tests
    shelltools.unlink("test/inet/tst-ethers-line.c")
    shelltools.unlink("test/inet/tst-ethers.c")

    pisitools.dodir("kernel-include")
    for d in ("asm", "asm-generic", "linux"):
        shelltools.copytree("/usr/include/%s" % d, "kernel-include/%s" % d)
        shelltools.sym("../kernel-include/%s" % d, "test/%s" % d)

    pisitools.dosed(".config", "^(TARGET_ARCH=).*$", '\\1"%s"' % get.ARCH())
    pisitools.dosed(".config", "^(UCLIBC_EXTRA_CFLAGS=).*$",
                    '\\1"%s"' % CFLAGS)
    pisitools.dosed(".config", "^(RUNTIME_PREFIX=).*$",
                    '\\1"%s"' % UCLIBC_ROOT)
    pisitools.dosed(".config", "^(DEVEL_PREFIX=).*$",
                    '\\1"%s/usr"' % UCLIBC_ROOT)
Exemple #36
0
def setup():
    shelltools.export("SETUP_NOCHECK", "1")
    shelltools.system("sh amd-driver-installer-*-x86.x86_64.run --extract .")

    if get.buildTYPE() == "emul32":
        return

    # Needed during kernel module compiling
    shelltools.sym("../../../../../arch/%s/lib/modules/fglrx/build_mod/libfglrx_ip.a" % Target, "%s/libfglrx_ip.a" % BuildDir)

    pisitools.dosed("%s/make.sh" % BuildDir, r"^linuxincludes=.*", "linuxincludes=/lib/modules/%s/build/include" % KDIR)
    pisitools.dosed("%s/make.sh" % BuildDir, r"^uname_r=.*", "uname_r=%s" % KDIR)
    pisitools.dosed("common/etc/ati/authatieventsd.sh", "/var/lib/xdm/authdir/authfiles", "/var/run/xauth")

    shelltools.system("patch -p1 < do_mmap.patch")
    shelltools.system("patch -p1 < desktop-files.patch")
    shelltools.system("patch -p1 < ati-powermode.patch")
Exemple #37
0
def setup():
    
    shelltools.makedirs("%s/source/build" % get.workDIR())
    shelltools.cd("%s/source/build" % get.workDIR())
    shelltools.sym("../configure", "configure")
    autotools.configure("--prefix=/usr \
                         --sysconfdir=/etc \
                         --datarootdir=/usr/share \
                         --datadir=/usr/share \
                         --mandir=/usr/share/man \
                         --disable-native-texlive-build \
                         --with-banner-add=/PisiLinux \
                         --disable-multiplatform \
                         --disable-dialog \
                         --disable-psutils \
                         --disable-t1utils \
                         --disable-bibtexu \
                         --disable-xz \
                         --disable-web2c \
                         --enable-shared \
                         --disable-static \
                         --with-system-zlib \
                         --with-system-zziplib \
                         --with-system-pnglib \
                         --with-system-ncurses \
                         --with-system-t1lib \
                         --with-system-gd \
                         --with-system-poppler \
                         --with-system-xpdf \
                         --with-system-freetype2 \
                         --with-system-pixman \
                         --with-system-cairo \
                         --with-system-harfbuzz \
                         --with-system-graphite \
                         --with-system-icu \
                         --with-freetype2-libdir=/usr/lib \
                         --with-freetype2-include=/usr/include/freetype2 \
                         --with-xdvi-x-toolkit=xaw \
                         --disable-dump-share \
                         --disable-aleph \
                         --enable-luatex \
                         --with-clisp-runtime=default \
                         --enable-xindy \
                         --disable-xindy-rules \
                         --disable-xindy-docs ")
Exemple #38
0
def install():
    autotools.rawInstall('prefix=%(installdir)s/usr \
                          LIB_PREFIX=%(installdir)s/usr/lib/clanlib-%(version)s \
                          INC_PREFIX=%(installdir)s/usr/include/clanlib-%(version)s' % conf)

    # No static libs
    pisitools.remove("/usr/lib/clanlib-%(version)s/*.a" % conf)

    pisitools.rename("/usr/bin/clanlib-config", "clanlib0.6-config")

    fixfiles("Documentation/Examples")
    pisitools.insinto(conf["docdir"], "Documentation/Examples")

    pisitools.dodoc("BUGS", "CODING_STYLE", "HARDWARE", "NEWS", "PATCHES", "PORTING", "README*", "ROADMAP")

    shelltools.cd("%(installdir)s/usr/lib/clanlib-%(version)s" % conf)
    for f in shelltools.ls("*.2"):
        shelltools.sym("clanlib-%s/%s" % (conf["version"], f), "../%s" % f)
Exemple #39
0
def install():
    autotools.rawInstall('prefix="%(i)s"/usr \
                          LIB_PREFIX="%(i)s"/usr/lib/clanlib-0.6.5 \
                          INC_PREFIX="%(i)s"/usr/include/clanlib-0.6.5' %
                         {"i": get.installDIR()})

    pisitools.rename("/usr/bin/clanlib-config", "clanlib0.6-config")

    pisitools.dodoc("BUGS", "CODING_STYLE", "HARDWARE", "NEWS", "PATCHES",
                    "PORTING", "README*", "ROADMAP", "INSTALL.linux")

    fixfiles("Documentation/Examples")
    shelltools.copytree(
        "Documentation/Examples",
        "%s/%s/%s/Examples" % (get.installDIR(), get.docDIR(), get.srcTAG()))

    shelltools.cd("%s/usr/lib/clanlib-0.6.5" % get.installDIR())
    for f in shelltools.ls("*.2"):
        shelltools.sym("clanlib-0.6.5/" + f, "../" + f)
Exemple #40
0
def setup():
    autotools.configure("--with-oss \
                         --with-kernel=/lib/modules/%s/build \
                         --with-build=/lib/modules/%s/build \
                         --with-isapnp=yes \
                         --with-sequencer=yes \
                         --with-card-options=all \
                         --disable-verbose-printk \
                         --enable-dynamic-minors \
                         --with-cards=all" % (KDIR, KDIR))

    # Needed for V4L stuff
    shelltools.sym("%s/alsa-driver/include/config.h" % get.workDIR(),
                   "%s/alsa-driver/sound/include/config.h" % get.workDIR())
    shelltools.sym("%s/alsa-driver/include/config1.h" % get.workDIR(),
                   "%s/alsa-driver/sound/include/config1.h" % get.workDIR())

    # Configure hda-emu
    """
Exemple #41
0
def setup():
    install_dir = get.installDIR()
    pisitools.dodir("/usr/share/texmf")
    shelltools.sym("/usr/share/texmf-dist", "%s/usr/share/texmf-dist" % install_dir)
    autotools.rawConfigure("--prefix=%s/usr \
                            --bindir=%s/usr/bin \
                            --datadir=%s/usr/share \
                            --disable-multiplatform \
                            --with-system-ncurses \
                            --with-system-pnglib \
                            --with-system-zlib \
                            --with-system-gd \
                            --without-texinfo \
                            --without-dialog \
                            --without-texi2html \
                            --with-ps=gs \
                            --enable-ipc \
                            --with-etex \
                            --with-x" % (install_dir,install_dir,install_dir))
Exemple #42
0
def install():
    installdir = get.installDIR()+ datadir
    pisitools.dodir(datadir)
    pisitools.dodir("%s/applications" % datadir)

    shelltools.copytree("%s/playonlinux" % get.workDIR(), "%s/" % installdir)

    pisitools.dobin("%s/playonlinux/playonlinux" % installdir)

    pisitools.domo("%s/playonlinux/lang/po/tr.po" % installdir, "tr", "pol.mo")

#    pisitools.domove("usr/share/locale/tr/LC_MESSAGES", "/usr/share/playonlinux/lang/locale/tr")

    pisitools.dodoc("%s/playonlinux/LICENCE" % installdir, "%s/playonlinux/CHANGELOG" % installdir)

    shelltools.move("%s/etc/PlayOnLinux.desktop" % (get.installDIR() + "/usr/share/playonlinux"), "%s/usr/share/applications/PlayOnLinux.desktop" % get.installDIR())

    shelltools.unlink("%s/usr/bin/playonlinux" % get.installDIR())

    shelltools.sym("%s/usr/share/playonlinux/playonlinux" % get.installDIR(), "%s/usr/bin/playonlinux" % get.installDIR() )
Exemple #43
0
def setup():
    pisitools.dosed("source/texk/tex4htk/t4ht.c", "SELFAUTOPARENT",
                    "TEXMFROOT")

    shelltools.makedirs("source/build")
    shelltools.cd("source/build")
    shelltools.sym("../configure", "configure")
    autotools.configure('--datarootdir=/usr/share \
                         --datadir=/usr/share \
                         --disable-native-texlive-build \
                         --with-banner-add="/Pisi Linux" \
                         --disable-multiplatform \
                         --disable-dialog \
                         --disable-psutils \
                         --disable-t1utils \
                         --disable-bibtexu \
                         --disable-xz \
                         --enable-shared \
                         --disable-static \
                         --with-system-zlib \
                         --with-system-zziplib \
                         --with-system-pnglib \
                         --with-system-ncurses \
                         --with-system-t1lib \
                         --with-system-gd \
                         --with-system-poppler \
                         --with-system-freetype2 \
                         --with-system-pixman \
                         --with-system-cairo \
                         --with-system-harfbuzz \
                         --with-system-graphite \
                         --with-system-icu \
                         --with-freetype2-libdir=/usr/lib \
                         --with-freetype2-include=/usr/include/freetype2 \
                         --with-xdvi-x-toolkit=xaw \
                         --disable-dump-share \
                         --disable-aleph \
                         --enable-luatex \
                         --with-clisp-runtime=default \
                         --enable-xindy --disable-xindy-rules --disable-xindy-docs'
                        )
Exemple #44
0
def setup():
    shelltools.export("CFLAGS", "%s -DNDEBUG" % get.CFLAGS())

    shelltools.sym("../../../../gallium/drivers/nouveau/nouveau_class.h",
                   "src/mesa/drivers/dri/nouveau/nouveau_class.h")

    autotools.autoreconf("-vif")
    autotools.configure("--enable-pic \
                         --disable-xcb \
                         --enable-glx-tls \
                         --disable-gl-osmesa \
                         --disable-egl \
                         --disable-glw \
                         --disable-glut \
                         --enable-gallium \
                         --enable-gallium-nouveau \
                         --with-driver=dri \
                         --without-demos \
                         --with-dri-driverdir=/usr/lib/xorg/modules/dri \
                         --with-dri-drivers=i810,i915,i965,mach64,nouveau,r128,r200,r300,r600,radeon,sis,tdfx,swrast \
                         --with-state-trackers=dri,glx")
Exemple #45
0
def setup():
    shelltools.sym(".", "m4")
    shelltools.export("CFLAGS", "%s -DDRV_RAW" % get.CFLAGS())

    autotools.autoreconf("-vfi -Im4")
    libtools.gnuconfig_update()

    options = "--disable-esd \
               --disable-af \
               --disable-alsa \
               --enable-oss \
               --disable-static"

    if get.buildTYPE() == "emul32":
        options += " --bindir=/emul32/bin"

        shelltools.export("CFLAGS", "%s -DDRV_RAW -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    autotools.configure(options)
Exemple #46
0
def install():
    pisitools.dobin("pokerth")
    pisitools.dobin("bin/*")

    pisitools.insinto("/usr/share/pokerth", "data")
    pisitools.insinto("/usr/share/pixmaps", "pokerth.png")
    pisitools.insinto("/usr/share/applications", "pokerth.desktop")

    # Remove bundled fonts
    #pisitools.remove("/usr/share/pokerth/data/fonts/VeraBd.ttf")
    #pisitools.remove("/usr/share/pokerth/data/fonts/c059013l.pfb")
    #pisitools.remove("/usr/share/pokerth/data/fonts/n019003l.pfb")

    # and replace them with symlinks
    shelltools.sym(
        "/usr/share/fonts/Type1/c059013l.pfb",
        "%s/usr/share/pokerth/data/fonts/c059013l.pfb" % get.installDIR())
    shelltools.sym(
        "/usr/share/fonts/Type1/n019003l.pfb",
        "%s/usr/share/pokerth/data/fonts/n019003l.pfb" % get.installDIR())
    shelltools.sym(
        "/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf",
        "%s/usr/share/pokerth/data/fonts/VeraBd.ttf" % get.installDIR())

    pisitools.dodoc("ChangeLog", "COPYING", "TODO")
Exemple #47
0
def setup():
    shelltools.export("SETUP_NOCHECK", "1")
    shelltools.system("sh amd-driver-installer-*-x86.x86_64.run --extract .")

    if get.buildTYPE() == "emul32":
        return

    # Needed during kernel module compiling
    shelltools.sym(
        "../../../../../arch/%s/lib/modules/fglrx/build_mod/libfglrx_ip.a" %
        Target, "%s/libfglrx_ip.a" % BuildDir)

    pisitools.dosed("%s/make.sh" % BuildDir, r"^linuxincludes=.*",
                    "linuxincludes=/lib/modules/%s/build/include" % KDIR)
    pisitools.dosed("%s/make.sh" % BuildDir, r"^uname_r=.*",
                    "uname_r=%s" % KDIR)
    pisitools.dosed("common/etc/ati/authatieventsd.sh",
                    "/var/lib/xdm/authdir/authfiles", "/var/run/xauth")

    shelltools.system("patch -p1 < ati-powermode.patch")
    shelltools.system("patch -p1 < 3.5-do_mmap.patch")
    shelltools.system("patch -p1 < arch-fglrx-3.7.patch")
    shelltools.system("patch -p1 < arch-fglrx-3.8.patch")
    shelltools.system("patch -l -p1 < kolasa_foutrelis_fglrx_3.10.patch")
    shelltools.system("patch -p1 < lano1106_fglrx_intel_iommu.patch")
    shelltools.system("patch -p1 < lano1106_kcl_agp_13_4.patch")
    shelltools.system("patch -p1 < makefile_compat.patch")

    pisitools.dosed("./",
                    "linux/version.h",
                    "generated/uapi/linux/version.h",
                    namePattern=".*\.(c|h|sh)$")
    pisitools.dosed(
        "common/lib/modules/fglrx/build_mod/firegl_public.c",
        "(#define __AGP__BUILTIN__)",
        r"\1\n#ifndef VM_RESERVED\n#define VM_RESERVED (VM_DONTEXPAND | VM_DONTDUMP)\n#endif"
    )
Exemple #48
0
def install():
    shelltools.cd("out/Release")

    shelltools.makedirs("%s/usr/lib/chromium-browser" % get.installDIR())

    pisitools.insinto("/usr/lib/chromium-browser", "chrome.pak")
    pisitools.insinto("/usr/lib/chromium-browser", "resources.pak")
    pisitools.insinto("/usr/lib/chromium-browser", "chrome",
                      "chromium-browser")
    pisitools.insinto("/usr/lib/chromium-browser", "chrome_sandbox",
                      "chromium_sandbox")
    pisitools.insinto("/usr/lib/chromium-browser", "locales")
    pisitools.insinto("/usr/lib/chromium-browser", "resources")

    # Nacl plugin
    pisitools.insinto("/usr/lib/chromium-browser",
                      "libppGoogleNaClPluginChrome.so")

    pisitools.newman("chrome.1", "chromium-browser.1")

    # Chromium looks for these in its folder
    # See media_posix.cc and base_paths_linux.cc
    for lib in ["libavcodec.so.52", "libavformat.so.52", "libavutil.so.50"]:
        shelltools.sym(
            "/usr/lib/%s" % lib,
            "%s/usr/lib/chromium-browser/%s" % (get.installDIR(), lib))

    shelltools.cd("../..")
    for size in ["16", "22", "24", "32", "48", "64", "128", "256"]:
        pisitools.insinto(
            "/usr/share/icons/hicolor/%sx%s/apps" % (size, size),
            "chrome/app/theme/chromium/product_logo_%s.png" % size,
            "chromium-browser.png")

    pisitools.dosym(
        "/usr/share/icons/hicolor/256x256/apps/chromium-browser.png",
        "/usr/share/pixmaps/chromium-browser.png")
Exemple #49
0
def setup():
    autotools.autoconf()

    shelltools.makedirs("build-ansi")
    shelltools.makedirs("build-unicode")
    shelltools.sym("../configure", "build-ansi/configure")
    shelltools.sym("../configure", "build-unicode/configure")

    shelltools.cd("build-ansi")
    autotools.configure("--with-png \
                         --with-jpeg \
                         --with-tiff \
                         --with-odbc \
                         --with-expat \
                         --with-opengl \
                         --with-sdl \
                         --enable-sound \
                         --enable-joystick \
                         --disable-unicode \
                         --enable-shared \
                         --with-gtk=2")

    shelltools.cd("../build-unicode")
    # it fails if ODBC is enabled when using unicode
    autotools.configure("--with-png \
                         --with-jpeg \
                         --with-tiff \
                         --with-expat \
                         --with-opengl \
                         --with-sdl \
                         --enable-sound \
                         --enable-joystick \
                         --enable-unicode \
                         --enable-xrc \
                         --enable-shared \
                         --with-gtk=2")
Exemple #50
0
def setup():
    shelltools.sym("makefiles/configure.in", "configure.in")
    shelltools.sym("makefiles/Makefile.am", "Makefile.am")
    shelltools.sym("makefiles/makefile.linux", "Makefile")
    #shelltools.sym("contrib/gcc/sdl-mngplay/acinclude.m4", "acinclude.m4")
    
    shelltools.system("sed -i -e 's/unroll-loops/& -fPIC/' Makefile ")

    autotools.autoreconf("-fiv")
    autotools.configure("--with-jpeg \
                         --with-lcms \
                         --disable-static \
                         --disable-dependency-tracking")

    if get.buildTYPE() == "emul32":
        options = " --libdir=/usr/lib32 \
                    --with-jpeg \
                    --disable-static \
                    --disable-dependency-tracking"
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        autotools.configure(options)
Exemple #51
0
def setup():
    shelltools.makedirs(sd)
    shelltools.cd(sd)
    shelltools.sym("libcompface.so", "libcompface.so.1")
    shelltools.sym("libcompface.so.1.0.0", "libcompface.so")
Exemple #52
0
def setup():
    shelltools.unlink("py-compile")
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())

    crosstools.configure("--disable-static")
Exemple #53
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()))
Exemple #54
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())
Exemple #55
0
def setup():
    shelltools.sym("Makeconfig.in", "Makeconfig")
    shelltools.echo("config.mk", configTemplate % configVars)
Exemple #56
0
def build():
    shelltools.sym("Makefile.sharedlibrary", "Makefile")
    autotools.make("INSTALL_PREFIX=/usr")
Exemple #57
0
def check():
    #symlink libperl.so.x.y.z to libperl.so
    #so we can pass /lib/ExtUtils/t/Embed.t test
    shelltools.sym("libperl.so.%s" % get.srcVERSION(),"libperl.so")
    autotools.make("-j1 test")
Exemple #58
0
def setup():
    shelltools.unlink("py-compile")
    shelltools.sym("/bin/true", "py-compile")

    autotools.configure("--disable-mime-install \
                         --enable-packager-mode")
Exemple #59
0
def setup():
    shelltools.sym(".", "m4")
    autotools.autoreconf("-fvi")
    autotools.configure("--enable-shared --disable-static")
Exemple #60
0
def setup():
    shelltools.unlink("py-compile")
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())

    autotools.configure()