示例#1
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

# linker = "gold"
linker = "ld"
multilib = "--enable-multilib" if get.ARCH() == "x86_64" else ""

# WorkDir = "binutils-2.20.51"


def setup():
    # Build binutils with LD_SYMBOLIC_FUNCTIONS=1 and reduce PLT relocations in libfd.so by 84%.
    #shelltools.export("LD_SYMBOLIC_FUNCTIONS", "1")
    shelltools.system(
        'sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure')

    autotools.configure('--enable-shared \
                         --build=%s \
                         --enable-threads \
                         --enable-ld=default \
                         --enable-gold \
                         --enable-plugins \
                         --with-pkgversion="Pisi Linux" \
示例#2
0
# -*- coding: utf-8 -*-
#
# Copyright 2011 TUBITAK/BILGEM
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "chromium-%s" % get.srcVERSION()

shelltools.export("HOME", get.workDIR())

ARCH = "x64" if get.ARCH() == "x86_64" else "ia32"

def setup():
    #TODO use_system_ssl is disabled -->  https://bugzilla.mozilla.org/show_bug.cgi?id=547312
    #TODO use_system_hunspell has build problems, upstream changes needed
    #TODO use_system_sqlite has build problems, upstream changes needed
    shelltools.system("build/gyp_chromium -f make build/all.gyp --depth=. \
                        -Dgcc_version=45 \
                        -Dno_strict_aliasing=1 \
                        -Dwerror= \
                        -Dlinux_strip_binary=1 \
                        -Dlinux_sandbox_path=/usr/lib/chrome/chromium_sandbox \
                        -Dlinux_sandbox_chrome_path=/usr/lib/chromium-browser/chromium-browser \
                        -Drelease_extra_cflags=-fno-ipa-cp \
                        -Dproprietary_codecs=1 \
                        -Duse_system_bzip2=1 \
示例#3
0
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = get.ARCH()
NoStrip = "/"


def install():
    pisitools.doexe("libflashplayer.so", "/usr/lib/browser-plugins")
示例#4
0
from pisi.actionsapi import kerneltools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "."
KDIR = kerneltools.getKernelVersion()
NoStrip = ["/lib/modules"]

BuildDir = "common/lib/modules/fglrx/build_mod"

if get.buildTYPE() == 'emul32':
    Target = "x86"
    Libdir = "/usr/lib32"
else:
    Target = get.ARCH().replace("i686", "x86")
    Libdir = "/usr/lib"

XDir = "xpic" + ("_64a" if Target == "x86_64" else "")


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" %
示例#5
0
def setup():
    shelltools.copy(makefiles[get.ARCH()], "makefile.machine")
示例#6
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

arch = "i386" if get.ARCH() == "i686" else "x86_64"

WorkDir = "%s-%s-1074.%s.linux" % (get.srcNAME(), get.srcVERSION(), arch)


def install():
    shelltools.system("./install --prefix /usr --force --repackage %s/usr" %
                      get.installDIR())

    pisitools.dosym("/usr/lib/browser-plugins/libflashplayer.so",
                    "/usr/lib/opera/plugins/libflashplayer.so")
示例#7
0
#
# Copyright 2005-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

import os

WorkDir = "glibc-2.12-26-g9a98163"
#WorkDir = "glibc-2.12.1"

if get.ARCH() == "arm":
    defaultflags = "-g -U_FORTIFY_SOURCE -fno-strict-aliasing"
else:
    defaultflags = "-O3 -g -U_FORTIFY_SOURCE -fno-strict-aliasing -mno-tls-direct-seg-refs"

# this is getting ridiculous, also gdb3 breaks resulting binary
#sysflags = get.CFLAGS().replace("-fstack-protector", "").replace("-D_FORTIFY_SOURCE=2", "").replace("-funwind-tables", "").replace("-fasynchronous-unwind-tables", "")
if get.ARCH() == "arm":
    sysflags = "-U_FORTIFY_SOURCE \
                -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfpu=vfp -mfloat-abi=softfp \
                -fexpensive-optimizations -fomit-frame-pointer -O2"

else:
    sysflags = "-mtune=generic -march=x86-64" if get.ARCH(
    ) == "x86_64" else "-mtune=atom -march=i686"
示例#8
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

optimizationtype = "--enable-amd64" if get.ARCH() == "x86_64" else "--enable-mmx"

def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static \
                         --with-x \
                         --with-jpeg \
                         --with-png \
                         --with-tiff \
                         --with-gif \
                         --with-zlib \
                         --with-bzip2 \
                         --with-id3 \
                         %s \
                         --enable-visibility-hiding" % optimizationtype)

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
示例#9
0
def setup():
    shelltools.copy(makefiles[get.ARCH()], "makefile.machine")

    for i in shelltools.ls("makefile.*"):
        pisitools.dosed(i, "^CC=gcc ", "CC=%s " % get.CC())
        pisitools.dosed(i, "^CXX=g\+\+ ", "CXX=%s " % get.CXX())
示例#10
0
from pisi.actionsapi import autotools
from pisi.actionsapi import get

import os

# Source tarball is created by hand
# To get the source tarball:
# svn export svn://svn.icculus.org/tremulous/tags/RELEASE_GPP1/ tremulous-1.2.beta1
# rm -rf tremulous-1.2.beta1/src/tools/lcc/
# tar -czf tremulous-1.2.0_beta1.tar.gz tremulous-1.2.beta1

#WorkDir = "tremulous-%s-src" % get.srcVERSION()
WorkDir = "tremulous-1.2.beta1"
datadir = "/usr/share/tremulous"

arch = "x86_64" if get.ARCH() == "x86_64" else "x86"
builddir = "build/release-linux-%s" % arch
archparam = "ARCH=x86_64" if get.ARCH() == "x86_64" else ""


def setup():
    for i in ["SDL12", "AL", "libcurl", "libspeex", "libs"]:
        if shelltools.isDirectory("src/%s" % i):
            shelltools.unlinkDir("src/%s" % i)

    pisitools.dosed("misc/server.cfg", "set sv_hostname.*",
                    'set sv_hostname "Tremulous Server on Pardus"')


def build():
    autotools.make('BUILD_CLIENT=1 \
示例#11
0
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

shelltools.export("JAVAC", "/usr/lib/jvm/java-7-openjdk/bin/javac")
shelltools.export("JAVA_HOME", "/usr/lib/jvm/java-7-openjdk")
pisitools.flags.replace("-ggdb3", "-g")

WorkDir = "mozilla-release"

# Set object directory name correctly. This directory is specific to the build host, and its name is generated by
# value returned by config.guess script.
# config.guess returns 'x86_64-unknown-linux-gnu' on x86_64 machines, and 'i686-pc-linux-gnu' on x86 machines
ObjDir = "obj-%s-unknown-linux-gnu" % get.ARCH() if get.ARCH(
) == "x86_64" else "obj-%s-pc-linux-gnu" % get.ARCH()

locales = "az be  bs ca  da  de  el  en-US en-GB en-ZA  es-AR  es-CL  es-ES  fi  fr  hr  hu  it  lt nl  pl  pt-BR  pt-PT  ro  ru  sr  sv-SE  tr  uk".split(
)
xpidir = "%s/xpi" % get.workDIR()
arch = get.ARCH()
ver = ".".join(get.srcVERSION().split(".")[:3])


def setup():
    pisitools.ldflags.add("-Wl,-rpath,/usr/lib/firefox")
    # Google API key
    shelltools.echo("google_api_key",
                    "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y")
    pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR())
示例#12
0
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

import os

snapshot = False

if snapshot:
    verMajor, verMinor = get.srcVERSION().replace("pre", "").split("_", 1)
    WorkDir = "gcc-4.7-%s" % verMinor
else:
    verMajor = get.srcVERSION()

arch = get.ARCH().replace("x86_64", "x86-64")

#opt_unwind = "--with-system-libunwind" if get.ARCH() == "x86_64" else "--without-system-libunwind"
opt_arch = "--with-arch_32=i686" if get.ARCH(
) == "x86_64" else "--with-arch=i686"
opt_multilib = "--enable-multilib" if get.ARCH() == "x86_64" else ""

# WARNING: even -fomit-frame-pointer may break the build, stack protector, fortify source etc. are off limits
cflags = "-O2 -g"


def removePisiLinuxSection(_dir):
    for root, dirs, files in os.walk(_dir):
        for name in files:
            # FIXME: should we do this only on nonshared or all ?
            # if ("crt" in name and name.endswith(".o")) or name.endswith("nonshared.a"):
示例#13
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyleft 2012 Pardus ANKA Community
# Copyright 2005-2011 TUBITAK/UEAKE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

flags = "%s -fPIC" % get.CFLAGS() if get.ARCH() == "x86_64" else get.CFLAGS()


def setup():
    # shelltools.export("CFLAGS", flags)
    autotools.autoreconf("-vfi")
    autotools.configure("--enable-nls \
                         --with-xinerama")


def build():
    autotools.make()
    shelltools.cd("po")
    autotools.make("update-po")


def install():
    autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
示例#14
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2011 TUBITAK/BILGEM
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

if get.ARCH() == "i686":
    WorkDir = "bin-qt4pas-V2.1_Qt4.5.3"

    def install_lib():
        pisitools.dolib("libQt4Pas.so.5.2.1")
        pisitools.dosym("libQt4Pas.so.5.2.1", "/usr/lib/libQt4Pas.so")
        pisitools.dosym("libQt4Pas.so.5.2.1", "/usr/lib/libQt4Pas.so.5")
        pisitools.dosym("libQt4Pas.so.5.2.1", "/usr/lib/libQt4Pas.so.5.2")

else:

    def setup():
        shelltools.system("qmake PREFIX=%s/usr" % get.installDIR())

    def build():
        autotools.make()

    def install_lib():
        autotools.rawInstall("DESTDIR=%s INSTALL_ROOT=%s" %
示例#15
0
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "%s-%s.%s" % (get.srcNAME(), get.srcVERSION(), get.ARCH())


def install():
    pisitools.insinto("/", "usr")

    pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README")
示例#16
0
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import kerneltools
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

NoStrip = ["/lib", "/boot"]

shelltools.export("KBUILD_BUILD_USER", "pardus")
shelltools.export("KBUILD_BUILD_HOST", "buildfarm")
shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
shelltools.export("HOME", get.workDIR())

cpupower_arch = get.ARCH().replace("i686", "i386")


def setup():
    kerneltools.configure()


def build():
    kerneltools.build(debugSymbols=False)

    # When bumping major version build man files and put them into files/man
    autotools.make("V=1 WERROR=0 -C tools/perf perf HAVE_CPLUS_DEMANGLE=1")

    # Build cpupowertools
    autotools.make("-C tools/power/cpupower CPUFREQ_BENCH=false")
    autotools.make(
示例#17
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

flags = "-march=%s -O2 -pipe -fomit-frame-pointer" % get.ARCH().replace(
    "x86_64", "x86-64")


def exportFlags():
    shelltools.export("CFLAGS", flags)
    shelltools.export("CXXFLAGS", flags)

    shelltools.export("CC", "gcc")
    shelltools.export("CXX", "g++")
    shelltools.export("LC_ALL", "en_US.UTF-8")


def setup():
    exportFlags()
    shelltools.makedirs("build")
    shelltools.cd("build")

    shelltools.system('../configure \
示例#18
0
# Reset CFLAGS
CFLAGS = "%s -D__USE_GNU -fgnu89-inline -fno-stack-protector" % get.CFLAGS()

UCLIBC_ROOT = "/usr/lib/uClibc"

# Make parameters
MAKE_PARAMS = """\
TARGET_CPU="%(target_cpu)s"
TARGET_ARCH="%(target_arch)s"
GCC_BIN="%(cc)s"
HOSTCC="%(cc)s"
CC="%(cc)s"
HOSTCFLAGS="%(cflags)s %(ldflags)s"
OPTIMIZATION="%(cflags)s -Os"
""" % {
    "target_arch": get.ARCH().replace("i686", "i386"),
    "target_cpu": get.ARCH(),
    "cc": get.CC(),
    "cflags": CFLAGS,
    "ldflags": get.LDFLAGS(),
}


def remove_pardus_section(_dir):
    import os
    for k in shelltools.ls(_dir):
        # FIXME: should we do this only on nonshared or all ?
        # if ("crt" in k and k.endswith(".o")) or k.endswith("nonshared.a"):
        if ("crt" in k and k.endswith(".o")) or k.endswith(".a"):
            i = os.path.join(_dir, k)
            shelltools.system(
示例#19
0
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import kerneltools

WorkDir = "."
KDIR = kerneltools.getKernelVersion()
NoStrip = ["/lib/modules"]

version = get.srcVERSION()
driver_dir_name = "nvidia-current"
datadir = "/usr/share/%s" % driver_dir_name
libdir = "/usr/lib32" if get.buildTYPE() == 'emul32' else "/usr/lib"
arch = "x86" if get.buildTYPE() == 'emul32' else get.ARCH().replace("i6", "x")
nvlibdir = "%s/%s" % (libdir, driver_dir_name)
xorglibdir = "%s/xorg" % libdir


def setup():
    shelltools.system("sh NVIDIA-Linux-x86_64-%s.run -x --target tmp" %
                      get.srcVERSION())
    shelltools.move("tmp/*", ".")

    #5.5 patch icin
    shelltools.move("tmp/.manifest", ".")

    #shelltools.system("patch -p1 < NVIDIA-Linux-x86_64-430.64-work-around-mga-bug-25890.patch")
    #shelltools.system("patch -p1 < NVIDIA-Linux-x86_64-430.64-kernel-5.5.patch")
示例#20
0
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "gcc-3.3.6"

# Global Path Variables
BINPATH = "/usr/%s/gcc-bin/3.3.6" % get.HOST()
LIBPATH = "/usr/lib/gcc-lib/%s/3.3.6" % get.HOST()
DATAPATH = "/usr/share/gcc-data/%s/3.3.6" % get.HOST()
STDCXX_INCDIR = "/usr/lib/gcc-lib/%s/3.3.6/include/g++-v3" % get.HOST()

# FIXME: do this smarter
mcpu = "generic" if get.ARCH() == "x86_64" else "atom"
cflags = get.CFLAGS().replace("mtune", "mcpu").replace("-fstack-protector", "").replace("-D_FORTIFY_SOURCE=2", "").replace("-mcpu=%s" % mcpu, "-mcpu=%s" % get.ARCH().replace("_", "-"))
cxxflags =  get.CXXFLAGS().replace("mtune", "mcpu").replace("-fstack-protector", "").replace("-D_FORTIFY_SOURCE=2", "").replace("-mcpu=%s" % mcpu, "-mcpu=%s" % get.ARCH().replace("_", "-"))

def setup():
    shelltools.export("CFLAGS", cflags)
    shelltools.export("CXXFLAGS", cxxflags)

    # Misdesign in libstdc++ (Redhat)
    shelltools.copy("libstdc++-v3/config/cpu/i486/atomicity.h", "libstdc++-v3/config/cpu/i386/atomicity.h")

    shelltools.system("./contrib/gcc_update --touch &> /dev/null")

    conf = "--enable-nls \
            --without-included-gettext \
            --disable-multilib \
示例#21
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "john-%s" % get.srcVERSION()

arch = "linux-x86-64" if get.ARCH() == "x86_64" else "linux-x86-sse2"

conf = {
    "CC": get.CC(),
    "CXX": get.CXX(),
    "CFLAGS": get.CFLAGS(),
    "LDFLAGS": get.LDFLAGS(),
    "ARCH": arch
}
# "CFLAGS": "%s -fno-PIC -fno-PIE" % get.CFLAGS(),
# "LDFLAGS": "%s -nopie" % get.LDFLAGS(),


def setup():
    pisitools.dosed("src/params.h",
                    '#define.*JOHN_SYSTEMWIDE_HOME.*"/usr/share/john"',
                    '#define JOHN_SYSTEMWIDE_HOME "/etc/john"')
示例#22
0
def install():
    shelltools.system(
        "awk '$1 ~ /Version:/ { print gensub(/([0-9]+)\.([0-9]+).*/, \"\\\\1\\\\2\", \"g\", $2) }' /usr/lib/pkgconfig/xorg-server.pc > XorgVersion"
    )
    with open("XorgVersion", "r") as f:
        XorgVersion = f.readline().strip()
    pisitools.insinto("/etc/vbox", "vbox.cfg")
    shelltools.chmod("src/VBox/Additions/x11/Installer/98vboxadd-xclient",
                     0755)
    pisitools.insinto("/usr/bin",
                      "src/VBox/Additions/x11/Installer/98vboxadd-xclient",
                      "VBoxClient-all")
    #pisitools.insinto("/lib/udev/rules.d", "src/VBox/Additions/linux/installer/70-xorg-vboxmouse.rules")
    pisitools.insinto("/usr/share/X11/pci",
                      "src/VBox/Additions/x11/Installer/vboxvideo.ids")
    #pisitools.insinto("/usr/share/X11/xorg.conf.d", "src/VBox/Additions/x11/Installer/50-vboxmouse.conf")

    arch = "amd64" if get.ARCH() == "x86_64" else "x86"
    shelltools.cd("out/linux.%s/release/bin" % arch)

    # libraries installation. The files below are unnecessary files.
    # TODO: change loop and make it more discrete (i.e copying each single file)
    exclude = ("additions", "icons", "nls", "scm", "sdk", "src", "SUP",
               "vboxkeyboard", "VBox.sh", "VBoxSysInfo.sh",
               "VBoxCreateUSBNode.sh", "VBoxTunctl", "testcase", "tst",
               "xpidl")

    for _file in shelltools.ls("."):
        if _file.startswith(exclude):
            continue

        print "Installing %s ..." % _file
        pisitools.insinto(VBoxLibDir, _file)

    pisitools.dobin("VBox*.sh", VBoxDataDir)
    pisitools.insinto(VBoxDataDir, "nls")

    # TODO: Add vboxwebsrv when ready
    # Binaries and Wrapper with Launchers
    apps = ("VBoxHeadless", "VBoxManage", "VBoxSDL", "VBoxVRDP", "VirtualBox",
            "VBoxBalloonCtrl")
    for link in apps:
        pisitools.dosym("../share/virtualbox/VBox.sh", "/usr/bin/%s" % link)

    pisitools.dobin("VBoxTunctl")

    # Desktop file, mimetype file for xml and icon
    pisitools.domove("%s/*.desktop" % VBoxLibDir, "/usr/share/applications")
    pisitools.domove("%s/*.png" % VBoxLibDir, "/usr/share/pixmaps")
    pisitools.domove("%s/*.xml" % VBoxLibDir, "/usr/share/mime/packages")

    # Mimetypes icons
    for size in ["16", "20", "24", "32", "48", "64", "72", "96", "128", "256"]:
        pisitools.insinto(
            "/usr/share/icons/hicolor/%sx%s/mimetypes" % (size, size),
            "icons/%sx%s/*.png" % (size, size))

    # Guest additions
    pisitools.dobin("additions/VBoxClient")
    pisitools.dobin("additions/VBoxControl")

    pisitools.dosbin("additions/VBoxService")
    pisitools.dosbin("additions/mount.vboxsf", "/sbin")

    pisitools.insinto("/lib/security", "additions/pam_vbox.so")

    pisitools.dolib("additions/VBoxOGL*")
    pisitools.dosym("../../../VBoxOGL.so",
                    "/usr/lib/xorg/modules/dri/vboxvideo_dri.so")

    #pisitools.insinto("/usr/lib/xorg/modules/drivers", "additions/vboxvideo_drv_system.so", "vboxvideo.so")
    #pisitools.insinto("/usr/lib/xorg/modules/input",   "additions/vboxmouse_drv_%s.so" % XorgVersion, "vboxmouse_drv.so")

    # Python bindings
    pisitools.insinto("%s/sdk/bindings/xpcom" % VBoxLibDir,
                      "sdk/bindings/xpcom/python")

    shelltools.cd("sdk/installer")
    shelltools.copy("vboxapisetup.py", "setup.py")
    shelltools.export("VBOX_INSTALL_PATH", VBoxLibDir)
    pythonmodules.install()

    shelltools.cd("../..")
    mvb_name = "module-virtualbox-%s" % get.srcVERSION()
    mvbg_name = "module-virtualbox-guest-%s" % get.srcVERSION()

    shelltools.copy("src", "%s/%s" % (get.workDIR(), mvb_name))
    shelltools.copy("additions/src", "%s/%s" % (get.workDIR(), mvbg_name))
    shelltools.cd(get.workDIR())
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((mvb_name, ) * 2))
    shelltools.unlinkDir(mvb_name)
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((mvbg_name, ) * 2))
    shelltools.unlinkDir(mvbg_name)
示例#23
0
WorkDir = "."
KDIR = kerneltools.getKernelVersion()
NoStrip = ["/lib/modules"]

version = get.srcVERSION()
driver_dir_name = "nvidia-current"
datadir = "/usr/share/%s" % driver_dir_name

if get.buildTYPE() == 'emul32':
    arch = "x86"
    nvlibdir = "/usr/lib32/%s" % driver_dir_name
    libdir = "/usr/lib32"
    xlibdir = "/usr/lib32/xorg"
else:
    arch = get.ARCH().replace("i686", "x86")
    nvlibdir = "/usr/lib/%s" % driver_dir_name
    libdir = "/usr/lib"
    xlibdir = "/usr/lib/xorg"


def setup():
    shelltools.system("sh NVIDIA-Linux-%s-%s.run -x --target tmp" %
                      (arch, get.srcVERSION()))

    shelltools.move("tmp/*", ".")

    # Our libc is TLS enabled so use TLS library
    shelltools.unlink("*-tls.so*")
    shelltools.move("tls/*", ".")
示例#24
0
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

#WorkDir = "mozilla-release"
ObjDir = "build"
#locales = "en-US tr".split()
locales = "az bs ca  da  de  el  en-US en-GB en-ZA  es-AR  es-CL  es-ES  fi  fr  hr  hu  it  lt nl  pl  pt-BR  pt-PT  ro  ru  sr  sv-SE  tr  uk".split(
)
xpidir = "%s/xpi" % get.workDIR()
arch = get.ARCH()
ver = ".".join(get.srcVERSION().split(".")[:3])

shelltools.export("SHELL", "/bin/sh")


def setup():
    # Google API key
    shelltools.echo("google_api_key",
                    "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y")
    pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR())
    pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key")
    pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS())

    # LOCALE
    shelltools.system("rm -rf langpack-ff/*/browser/defaults")
示例#25
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyleft 2012 Pardus ANKA Community
# Copyright 2005-2011 TUBITAK/UEAKE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "tachyon"
buildtype = "linux-thr-ogl"
additionalflags = "-fPIC" if get.ARCH() == "x86_64" else ""


def setup():
    pisitools.dosed("unix/Make-arch", "pardusCC", get.CC())
    shelltools.unlinkDir("scenes/CVS")


def build():
    shelltools.export("CFLAGS", "%s %s" % (get.CFLAGS(), additionalflags))
    shelltools.cd("unix")
    autotools.make('USEJPEG=-DUSEJPEG JPEGLIB=-ljpeg\
                    USEPNG=-DUSEPNG PNGLIB="-lpng -lz" \
                    %s' % buildtype)

示例#26
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "%s/.dropbox-dist" % get.ARCH()
NoStrip = "/opt/dropbox/library.zip"

def install():
    #pisitools.dodir("/opt/dropbox")
    pisitools.insinto("/opt/dropbox", "*")

    # Arch removes this lib, Pardus libgcc package provides libstdc++.so.6
    #pisitools.remove("/opt/dropbox/libstdc++.so.6")

    pisitools.dodoc("VERSION")
    pisitools.remove("/opt/dropbox/VERSION")
    pisitools.dosym("opt/dropbox/dropboxd", "/usr/bin/dropboxd")

    # you can remove these lines if u don't like monochromatic systemtry icons
    # i'm going to try find a way to make this optional
    #pisitools.insinto("/opt/dropbox/icons/hicolor/16x16/status", "../../hede/*.png")
示例#27
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

arch = "i386" if get.ARCH() == "i686" else "x86_64"

WorkDir = get.ARCH()


def install():
    shelltools.cd(shelltools.ls("%s/%s" % (get.workDIR(), WorkDir))[0])
    shelltools.system("./install --prefix /usr --force --repackage %s/usr" %
                      get.installDIR())

    pisitools.dosym("/usr/lib/browser-plugins/libflashplayer.so",
                    "/usr/lib/opera/plugins/libflashplayer.so")
示例#28
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    for chost in ["", "%s-pc-linux-gnu-" % get.ARCH()]:
        for i in ["c++", "cc", "g++", "gcc"]:
            pisitools.dosym("icecc", "/opt/icecream/bin/%s%s" % (chost, i))
示例#29
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "./"
source = "source"
arch = "x86_64" if get.ARCH() == "x86_64" else "i386"

# this package is fragile to flags, you have been warned
cflags = get.CFLAGS().replace("-fomit-frame-pointer", "")
cxxflags = get.CXXFLAGS().replace("-fomit-frame-pointer", "")


def build():
    shelltools.export("AR", "ar")
    shelltools.export("RANLIB", "ranlib")

    shelltools.export("CFLAGS", cflags)
    shelltools.export("CXXFLAGS", cxxflags)

    shelltools.cd(source)
    autotools.make(
        "-C ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc")
示例#30
0
def __getKernelARCH():
    """i386 is relevant for our i686 architecture."""
    return get.ARCH().replace("i686", "i386")