Example #1
0
def setup():
    # filter-flags -Wl,-O1
    pisitools.dosed("configure", "-O2 -g", get.CFLAGS())
    pisitools.dosed("configure.in", "-O2 -g", get.CFLAGS())

    # fix bz878 compilation
    pisitools.dosed("configure", "lircd.conf.pixelview_bt878", "lircd.conf.playtv_bt878")
    pisitools.dosed("configure.in", "lircd.conf.pixelview_bt878", "lircd.conf.playtv_bt878")

   
    # Patch bad configure for /usr/src/linux
    libtools.libtoolize("--copy --force")
    
    pisitools.dosed("acinclude.m4", "/usr/src/kernel\-source\-\`uname \-r\` /usr/src/linux\-\`uname \-r\`")
    pisitools.dosed("aclocal.m4", "/usr/src/kernel\-source\-\`uname \-r\` /usr/src/linux\-\`uname \-r\`")
    pisitools.dosed("configure", "/usr/src/kernel\-source\-\`uname \-r\` /usr/src/linux\-\`uname \-r\`")

    pisitools.dosed("configure", "\`uname \-r\`", get.curKERNEL())
    pisitools.dosed("configure.in", "\`uname \-r\`", get.curKERNEL())
    pisitools.dosed("setup.sh", "\`uname \-r\`", get.curKERNEL())

    shelltools.export("WANT_AUTOCONF", "2.5")
    autotools.configure("--disable-manage-devices \
                         --localstatedir=/var \
                         --with-syslog=LOG_DAEMON \
                         --enable-sandboxed \
                         --with-x \
                         --with-driver=any \
                         --with-kerneldir=%s/usr/src/linux \
                         --with-moduledir=%s/lib/modules/linux-%s/extra" % (get.installDIR(), get.installDIR(), get.curKERNEL()))
Example #2
0
def build():
    shelltools.export("KERNELPATH", "/lib/modules/%s/build" % get.curKERNEL())
    shelltools.export("TARGET", "i386-elf")
    shelltools.export("TOOLPREFIX", "/usr/bin/")
    shelltools.export("KERNELRELEASE", get.curKERNEL())

    autotools.make("all")
Example #3
0
def setup():
    fixperms("./")
    pisitools.dosed("Makefile", "SUBDIRS=", "M=")
    pisitools.dosed("Makefile", "BUILD_KERNEL=.*",
                    "BUILD_KERNEL = %s" % get.curKERNEL())
    pisitools.dosed("Makefile", "shell uname -r",
                    "shell echo %s" % get.curKERNEL())
Example #4
0
def install():
    shelltools.cd(getCommonDir())

    install_dir = get.installDIR()

    DIRS = {"etc": "etc",
            "usr/X11R6/include": "usr/include",
            "usr/X11R6/bin": "usr/bin",
            "usr/X11R6/lib": "usr/lib",
            "usr/include/GL/": "usr/include/GL/",
            "usr/share": "usr/share"}

    pisitools.dodir("/usr")
    for source in DIRS:
        target = DIRS[source]
        shelltools.copy(source, "%s/%s" %(install_dir, target))

    pisitools.insinto("/usr/bin", "../x690/usr/X11R6/bin/*")
    pisitools.insinto("/usr/lib", "../x690/usr/X11R6/lib/*")


    pisitools.dosym("/usr/lib/libfglrx_pp.so.1.0", "/usr/lib/libfglrx_pp.1")
    pisitools.dosym("/usr/lib/libfglrx_gamma.so.1.0", "/usr/lib/libfglrx_gamma.1")


    # copy compiled kernel module
    pisitools.dodir("/lib/modules/%s/kernel/drivers/char/drm" % get.curKERNEL())
    pisitools.dodir("/lib/modules/%s/video" % get.curKERNEL())

    import os
    print os.getcwd()
    shelltools.copy("lib/modules/fglrx/fglrx.%s.ko" % get.curKERNEL(),
                    "%s/lib/modules/%s/kernel/drivers/char/drm/fglrx.ko" %(install_dir, get.curKERNEL()))
    shelltools.copy("lib/modules/fglrx/fglrx_agp.%s.ko" % get.curKERNEL(),
                    "%s/lib/modules/%s/video/fglrx_agp.ko" %(install_dir, get.curKERNEL()))
Example #5
0
def build():
    shelltools.export("KERNELPATH", "/lib/modules/%s/build" % get.curKERNEL())
    shelltools.export("TARGET", "i386-elf")
    shelltools.export("TOOLPREFIX", "/usr/bin/")
    shelltools.export("KERNELRELEASE", get.curKERNEL())
    
    autotools.make("all")
Example #6
0
def install():
    for file in ["VirtualBox","VBoxSVC","VBoxXPCOMIPCD","VBoxBFE","VBoxManage","VBoxSDL",\
                 "VBoxTunctl","VBoxHeadless","*.so","*.r0","*.gc","components","nls"]:
        pisitools.insinto("/usr/share/VirtualBox",
                          "out/linux.x86/release/bin/%s" % file)

    # Kernel module
    pisitools.insinto("/lib/modules/%s/misc" % get.curKERNEL(),
                      "out/linux.x86/release/bin/src/vboxdrv.ko")
    pisitools.insinto("/lib/modules/%s/misc" % get.curKERNEL(),
                      "out/linux.x86/release/bin/src/vboxnetflt.ko")

    # Symlinks
    pisitools.dosym("/usr/bin/VBox.sh", "/usr/bin/VirtualBox")
    pisitools.dosym("/usr/bin/VBox.sh", "/usr/bin/VBoxManage")
    pisitools.dosym("/usr/bin/VBox.sh", "/usr/bin/VBoxSDL")
    pisitools.dosym("/usr/bin/VBox.sh", "/usr/bin/vditool")

    # Remove tests
    pisitools.remove("/usr/share/VirtualBox/tst*")

    # Desktop file
    pisitools.insinto("/usr/share/applications/",
                      "out/linux.x86/release/bin/VirtualBox.desktop")
    pisitools.insinto("/usr/share/pixmaps/",
                      "out/linux.x86/release/bin/VBox.png")
Example #7
0
def setup():
    shelltools.export("CFLAGS", get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", ""))
    shelltools.export("CXXFLAGS", get.CXXFLAGS().replace("-D_FORTIFY_SOURCE=2", ""))

    pisitools.dosed("drivers/Makefile", "SUBDIRS=\$(shell pwd)", "SUBDIRS=%s/drivers" % get.srcDIR())
    pisitools.dosed("drivers/Makefile", "SUBDIRS=", "M=")
    pisitools.dosed("drivers/Makefile", "\$\(shell uname -r\)", get.curKERNEL())
    pisitools.dosed("Makefile", "\$\(shell uname -r\)", get.curKERNEL())
Example #8
0
def install():
    pisitools.doexe("comedi/drivers/*.ko",
                    "/lib/modules/%s/extra/comedi/" % get.curKERNEL())
    pisitools.doexe("comedi/comedi.ko",
                    "/lib/modules/%s/extra/comedi/" % get.curKERNEL())
    pisitools.doexe("comedi/kcomedilib/kcomedilib.ko",
                    "/lib/modules/%s/extra/comedi/" % get.curKERNEL())

    pisitools.dodoc("README", "COPYING", "NEWS", "TODO", "AUTHORS")
Example #9
0
def setup():
    shelltools.sym("/lib/modules/%s/source" % get.curKERNEL(), "linux")

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

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

    pisitools.dosed("Makefile", "/man", "/share/man")
Example #10
0
def setup():
    shelltools.sym("/lib/modules/%s/source" % get.curKERNEL(), "linux")

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

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

    pisitools.dosed("Makefile", "/man", "/share/man")
Example #11
0
def setup():
    shelltools.export("CFLAGS",
                      get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", ""))
    shelltools.export("CXXFLAGS",
                      get.CXXFLAGS().replace("-D_FORTIFY_SOURCE=2", ""))

    pisitools.dosed("drivers/Makefile", "SUBDIRS=\$(shell pwd)",
                    "SUBDIRS=%s/drivers" % get.srcDIR())
    pisitools.dosed("drivers/Makefile", "SUBDIRS=", "M=")
    pisitools.dosed("drivers/Makefile", "\$\(shell uname -r\)",
                    get.curKERNEL())
    pisitools.dosed("Makefile", "\$\(shell uname -r\)", get.curKERNEL())
Example #12
0
def install():
    pisitools.dobin("arch/x86/usr/X11R6/bin/*")
    pisitools.dosbin("arch/x86/usr/sbin/*")
    pisitools.dosbin("common/usr/sbin/*")

    DIRS = {
        "common/usr/share/doc/fglrx/examples/etc/acpi/events": "/etc/acpi",
        "common/etc": "/",
        "common/usr/X11R6/include": "/usr",
        "arch/x86/usr/X11R6/lib": "/usr",
        "common/usr/include/GL/": "/usr/lib/xorg/fglrx/include",
        "common/usr/share": "/usr"
    }

    for source, target in DIRS.items():
        pisitools.insinto(target, source)

    pisitools.domove("/usr/lib/modules", "/usr/lib/xorg")
    pisitools.insinto("/usr/lib/xorg/modules", "x710/usr/X11R6/lib/modules/*")

    pisitools.domove("/usr/lib/libGL.so.1.2", "/usr/lib/xorg/fglrx/lib")

    pisitools.dosym("libfglrx_dm.so.1.0", "/usr/lib/libfglrx_dm.so.1")
    pisitools.dosym("libfglrx_dm.so.1", "/usr/lib/libfglrx_dm.so")

    pisitools.dosym("libfglrx_gamma.so.1.0", "/usr/lib/libfglrx_gamma.so.1")
    pisitools.dosym("libfglrx_gamma.so.1", "/usr/lib/libfglrx_gamma.so")

    pisitools.dosym("libfglrx_pp.so.1.0", "/usr/lib/libfglrx_pp.so.1")
    pisitools.dosym("libfglrx_pp.so.1", "/usr/lib/libfglrx_pp.so")

    pisitools.dosym("libfglrx_tvout.so.1.0", "/usr/lib/libfglrx_tvout.so.1")
    pisitools.dosym("libfglrx_tvout.so.1", "/usr/lib/libfglrx_tvout.so")

    # compability links
    pisitools.dosym("/usr", "/usr/X11R6")
    pisitools.dosym("xorg/modules", "/usr/lib/modules")

    # copy compiled kernel module
    pisitools.insinto(
        "/lib/modules/%s/kernel/drivers/char/drm" % get.curKERNEL(),
        "common/lib/modules/fglrx/fglrx.%s.ko" % get.curKERNEL(), "fglrx.ko")

    # Fix library permissions
    shelltools.chmod("%s/usr/lib/lib*.so*" % get.installDIR(), 0755)

    # remove static libs
    pisitools.remove("/usr/lib/*.a")
    pisitools.remove("/usr/lib/xorg/modules/*.a")

    # No kitty
    pisitools.removeDir("/usr/share/gnome")
Example #13
0
def setup():
    shelltools.export("WANT_AUTOCONF", "2.5")
    autotools.autoreconf()
    libtools.libtoolize("--copy --force")

    autotools.configure("--localstatedir=/var \
                         --enable-sandboxed \
                         --disable-debug \
                         --with-transmitter \
                         --with-x \
                         --with-driver=all \
                         --with-syslog=LOG_DAEMON \
                         --with-kerneldir=/usr/src/linux-%s \
                         --with-moduledir=/lib/modules/%s/extra" % (get.curKERNEL(), get.curKERNEL()))
Example #14
0
def setup():
    shelltools.export("WANT_AUTOCONF", "2.5")
    autotools.autoreconf()
    libtools.libtoolize("--copy --force")

    autotools.configure("--localstatedir=/var \
                         --enable-sandboxed \
                         --disable-debug \
                         --with-transmitter \
                         --with-x \
                         --with-driver=all \
                         --with-syslog=LOG_DAEMON \
                         --with-kerneldir=/usr/src/linux-%s \
                         --with-moduledir=/lib/modules/%s/extra" %
                        (get.curKERNEL(), get.curKERNEL()))
Example #15
0
def setup():
    autotools.configure("--with-oss \
                         --with-kernel=/lib/modules/%s/source \
                         --with-isapnp=yes \
                         --with-sequencer=yes \
                         --with-card-options=all \
                         --with-cards=all" % get.curKERNEL())
Example #16
0
def install():
    shelltools.export("INSTALL_MOD_PATH", get.installDIR())
    shelltools.export("BUILD_KERNEL", get.curKERNEL())

    autotools.install()

    pisitools.dodoc("../copying", "../readme", "../ldistrib.txt")
Example #17
0
def setup():
    autotools.configure("--with-oss \
                         --with-kernel=/lib/modules/%s/build \
                         --with-isapnp=yes \
                         --with-sequencer=yes \
                         --with-card-options=all \
                         --with-cards=all" % get.curKERNEL())
Example #18
0
def install():
    autotools.install()
    pisitools.doexe("module/sysprof-module.ko",
                    "/lib/modules/%s/extra/" % get.curKERNEL())

    pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README",
                    "TODO")
Example #19
0
def setup():
    autotools.autoreconf("-vif")

    autotools.configure("--localstatedir=/var \
                         --disable-docs \
                         --with-linuxdir=/usr/src/linux-headers-%s" %
                        get.curKERNEL())
Example #20
0
def build():
    shelltools.export("IGNORE_XEN_PRESENCE", "1")

    shelltools.export("SYSSRC","/lib/modules/%s/source/" % get.curKERNEL())
    shelltools.cd("usr/src/nv")

    autotools.make("module")
Example #21
0
def install():
    # Kernel driver
    pisitools.dodir("/lib/modules/%s/kernel/drivers/video" % get.curKERNEL())
    shelltools.copy("usr/src/nv/nvidia.ko","%s/lib/modules/%s/kernel/drivers/video/nvidia.ko" % (get.installDIR(),get.curKERNEL()))

    # X driver
    pisitools.dodir("/usr/lib/xorg/modules/drivers")
    shelltools.copy("usr/X11R6/lib/modules/drivers/nvidia_drv.so","%s/usr/lib/xorg/modules/drivers/nvidia_drv.so" % get.installDIR())

    # XvMC library
    pisitools.dodir("/usr/lib")
    shelltools.copy("usr/X11R6/lib/libXvMCNVIDIA*","%s/usr/lib" % get.installDIR())
    pisitools.dosym("/usr/lib/libXvMCNVIDIA.so.1.0.%s" % BuildNo,"/usr/lib/libXvMCNVIDIA.so")

    # Glx library & headers
    pisitools.dodir("/usr/lib/opengl/nvidia")

    pisitools.copytree("usr/include","%s/usr/lib/opengl/nvidia/include" % get.installDIR())
    pisitools.copytree("usr/lib", "%s/usr/lib/opengl/nvidia/lib" % get.installDIR())
    pisitools.copytree("usr/X11R6/lib/modules/extensions/", "%s/usr/lib/opengl/nvidia/extensions" % get.installDIR())

    pisitools.dosym("/usr/lib/opengl/nvidia/extensions/libglx.so.1.0.%s" % BuildNo,"/usr/lib/opengl/nvidia/extensions/libglx.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGLcore.so.1.0.%s" % BuildNo,"/usr/lib/opengl/nvidia/lib/libGLcore.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGLcore.so.1.0.%s" % BuildNo,"/usr/lib/opengl/nvidia/lib/libGLcore.so.1")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGL.so.1.0.%s" % BuildNo,"/usr/lib/opengl/nvidia/lib/libGL.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGL.so.1.0.%s" % BuildNo,"/usr/lib/opengl/nvidia/lib/libGL.so.1")

    # Our libc is TLS enabled so use TLS library
    pisitools.remove("/usr/lib/opengl/nvidia/lib/libnvidia-tls.so.1.0.%s" % BuildNo)
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/tls/libnvidia-tls.so.1.0.%s" % BuildNo,"/usr/lib/libnvidia-tls.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/tls/libnvidia-tls.so.1.0.%s" % BuildNo,"/usr/lib/libnvidia-tls.so.1")

    # nVIDIA utilities
    pisitools.dobin("usr/bin/nvidia-bug-report.sh")
    pisitools.dobin("usr/bin/nvidia-settings")
Example #22
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.remove("/lib/modules/%s/modules*" % get.curKERNEL())
    pisitools.dodir("/etc/ndiswrapper")

    pisitools.dodoc("README", "AUTHORS", "ChangeLog")
Example #23
0
def build():
    shelltools.export("KERNELPATH", "/usr/src/linux")
    shelltools.export("TARGET", "i386-elf")
    shelltools.export("TOOLPREFIX", "/usr/bin/")
    shelltools.export("KERNELRELEASE", get.curKERNEL())

    autotools.make("all")
Example #24
0
def install():
    # Kernel driver
    pisitools.insinto("/lib/modules/%s/extra/nvidia" % get.curKERNEL(), "usr/src/nv/nvidia.ko", "nvidia_new.ko")

    # Libraries and X modules
    pisitools.insinto("%s/lib" % base, "usr/X11R6/lib/*")
    pisitools.insinto("%s/lib" % base, "usr/lib/*")
    pisitools.domove("%s/lib/modules/*" % base, base)
    pisitools.removeDir("%s/lib/modules" % base)

    # Headers
    pisitools.insinto(base, "usr/include")

    # Our libc is TLS enabled so use TLS library
    pisitools.remove("%s/lib/libnvidia-tls.so.*" % base)

    # xorg-server provides libwfb.so
    pisitools.remove("%s/libnvidia-wfb.so.*" % base)

    # Remove static libs
    pisitools.remove("%s/lib/*.a" % base)

    # Documentation
    pisitools.dodoc("usr/share/doc/*")
    pisitools.dohtml("usr/share/doc/html/*")
Example #25
0
def install():
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "drivers/*.ko")
    pisitools.insinto("/usr/sbin", "modem/modem_test", "slmodem_test")
    pisitools.dosbin("modem/slmodemd")
    pisitools.dodir("/var/lib/slmodem")

    pisitools.dodoc("Changes", "README")
Example #26
0
def build():
    shelltools.export("KERNELPATH", "/usr/src/linux")
    shelltools.export("TARGET", "i386-elf")
    shelltools.export("TOOLPREFIX", "/usr/bin/")
    shelltools.export("KERNELRELEASE", get.curKERNEL())

    autotools.make("all")
Example #27
0
def install():
    autotools.rawInstall("all \
                          PREFIX=%s/usr \
                          MODULE_DIR=%s/lib/modules/%s/extra" %
                         (get.installDIR(), get.installDIR(), get.curKERNEL()))

    pisitools.dodoc("COPYING", "CREDITS", "README*", "FAQ")
Example #28
0
def install():
    shelltools.export("INSTALL_MOD_PATH", get.installDIR())
    shelltools.export("BUILD_KERNEL", get.curKERNEL())

    autotools.install()

    pisitools.dodoc("../copying", "../readme", "../ldistrib.txt")
Example #29
0
def build():
    modules = ("vboxadd", "vboxvfs")
    for module in modules:
        if module != "vboxadd":
            shelltools.copy("vboxadd/Module.symvers", module)
        autotools.make("-C %s KERN_DIR=/lib/modules/%s/build" %
                       (module, get.curKERNEL()))
Example #30
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.remove("/lib/modules/%s/modules*" % get.curKERNEL())
    pisitools.dodir("/etc/ndiswrapper")

    pisitools.dodoc("README", "AUTHORS", "ChangeLog")
Example #31
0
def install():
    pisitools.dodoc("CGNAGELOG", "LICENSE", "Module/iwpriv_usage.txt",
                    "Module/iwpriv_usage.txt", "Module/README")
    shelltools.cd("Module")
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "*.ko")
    pisitools.insinto("/etc/Wireless/RT73STA", "*.bin")
    pisitools.insinto("/etc/Wireless/RT73STA", "*.dat")
Example #32
0
def install():
    pisitools.dodoc("TESTING", "Module/iwpriv_usage.txt",
                    "Module/STA_iwpriv_ATE_usage.txt", "THANKS", "FAQ",
                    "CHANGELOG", "README", "LICENSE")
    shelltools.cd("Module")
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "*.ko")
    pisitools.insinto("/etc/Wireless/RT61STA", "*.bin")
    pisitools.insinto("/etc/Wireless/RT61STA", "*.dat")
Example #33
0
def setup():
    autotools.autoreconf("-fi")
    pisitools.dosed("configure*", "portaudio.h", "PORTAUDIO_DISABLED")

    autotools.configure("--localstatedir=/var \
                         --enable-sandboxed \
                         --enable-shared \
                         --disable-static \
                         --disable-debug \
                         --with-transmitter \
                         --with-x \
                         --with-port=0x3f8 \
                         --with-irq=4 \
                         --with-driver=all \
                         --with-syslog=LOG_DAEMON \
                         --with-kerneldir=/usr/src/linux-%s \
                         --with-moduledir=/lib/modules/%s/extra" % (get.curKERNEL(), get.curKERNEL()))
Example #34
0
def install():
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(),
                      "drivers/*.ko")
    pisitools.insinto("/usr/sbin", "modem/modem_test", "slmodem_test")
    pisitools.dosbin("modem/slmodemd")
    pisitools.dodir("/var/lib/slmodem")

    pisitools.dodoc("Changes", "README")
Example #35
0
def build():
    shelltools.cd("src/app")
    shelltools.system(
        "%s %s `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` -lbluetooth smartcam.c -o smartcam"
        % (get.CC(), get.CFLAGS()))

    shelltools.cd("../driver")
    autotools.make("-C /lib/modules/%s/build M=`pwd`" % get.curKERNEL())
Example #36
0
def install():
    pisitools.dobin("asus_acpid/asus_acpid")

    pisitools.doman("asus_acpid/asus_acpid.8")

    pisitools.insinto("/lib/modules/%s/kernel/drivers/acpi" % get.curKERNEL(), "driver/*.ko")
    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "samples")
    pisitools.chmod("%s/usr/share/doc/acpi4asus-0.40-6/samples/*" % get.installDIR(), 0711)
Example #37
0
def setup():
    autotools.autoreconf("-vif")

    autotools.configure(
        "--localstatedir=/var \
                         --disable-docs \
                         --with-linuxdir=/usr/src/linux-headers-%s"
        % get.curKERNEL()
    )
Example #38
0
def setup():
    autotools.autoreconf("-fi")
    pisitools.dosed("configure*", "portaudio.h", "PORTAUDIO_DISABLED")

    autotools.configure("--localstatedir=/var \
                         --enable-sandboxed \
                         --enable-shared \
                         --disable-static \
                         --disable-debug \
                         --with-transmitter \
                         --with-x \
                         --with-port=0x3f8 \
                         --with-irq=4 \
                         --with-driver=all \
                         --with-syslog=LOG_DAEMON \
                         --with-kerneldir=/usr/src/linux-%s \
                         --with-moduledir=/lib/modules/%s/extra" %
                        (get.curKERNEL(), get.curKERNEL()))
Example #39
0
def install():
    pisitools.dobin("arch/x86/usr/X11R6/bin/*")
    pisitools.dobin("common/usr/X11R6/bin/*")
    pisitools.dosbin("arch/x86/usr/sbin/*")
    pisitools.dosbin("common/usr/sbin/*")

    DIRS = {
            "common/usr/share/doc/fglrx/examples/etc/acpi/events":  "/etc/acpi",
            "common/etc":               "/",
            "common/usr/X11R6/include": "/usr",
            "arch/x86/usr/X11R6/lib":   "/usr",
            "common/usr/include/GL/":   "/usr/lib/xorg/fglrx/include",
            "common/usr/share":         "/usr"
            }

    for source, target in DIRS.items():
        pisitools.insinto(target, source)

    pisitools.domove("/usr/lib/modules", "/usr/lib/xorg")
    pisitools.insinto("/usr/lib/xorg/modules", "x710/usr/X11R6/lib/modules/*")

    pisitools.domove("/usr/lib/libGL.so.1.2", "/usr/lib/xorg/fglrx/lib")

    pisitools.dosym("libfglrx_dm.so.1.0", "/usr/lib/libfglrx_dm.so.1")
    pisitools.dosym("libfglrx_dm.so.1", "/usr/lib/libfglrx_dm.so")

    pisitools.dosym("libfglrx_gamma.so.1.0", "/usr/lib/libfglrx_gamma.so.1")
    pisitools.dosym("libfglrx_gamma.so.1", "/usr/lib/libfglrx_gamma.so")

    pisitools.dosym("libfglrx_pp.so.1.0", "/usr/lib/libfglrx_pp.so.1")
    pisitools.dosym("libfglrx_pp.so.1", "/usr/lib/libfglrx_pp.so")

    pisitools.dosym("libfglrx_tvout.so.1.0", "/usr/lib/libfglrx_tvout.so.1")
    pisitools.dosym("libfglrx_tvout.so.1", "/usr/lib/libfglrx_tvout.so")

    pisitools.dosym("libAMDXvBA.so.1.0", "/usr/lib/libAMDXvBA.so.1")
    pisitools.dosym("libAMDXvBA.so.1", "/usr/lib/libAMDXvBA.so")

    pisitools.dosym("libXvBAW.so.1.0", "/usr/lib/libXvBAW.so.1")
    pisitools.dosym("libXvBAW.so.1", "/usr/lib/libXvBAW.so")

    # compability links
    pisitools.dosym("/usr", "/usr/X11R6")
    pisitools.dosym("xorg/modules", "/usr/lib/modules")

    # copy compiled kernel module
    pisitools.insinto("/lib/modules/%s/kernel/drivers/char/drm" % get.curKERNEL(), "common/lib/modules/fglrx/fglrx.%s.ko" % get.curKERNEL(), "fglrx.ko")

    # Fix library permissions
    shelltools.chmod("%s/usr/lib/lib*.so*" % get.installDIR(), 0755)

    # remove static libs
    pisitools.remove("/usr/lib/*.a")
    pisitools.remove("/usr/lib/xorg/modules/*.a")

    # No kitty
    pisitools.removeDir("/usr/share/gnome")
Example #40
0
def setup():
    shelltools.system("sh ati-driver-installer-%s-x86.x86_64.run --extract ." %
                      get.srcVERSION().replace(".", "-"))

    pisitools.dosed(
        "common/lib/modules/fglrx/build_mod/make.sh", r"^linuxincludes=.*",
        "linuxincludes=/lib/modules/%s/build/include" % get.curKERNEL())
    pisitools.dosed("common/etc/ati/authatieventsd.sh",
                    "/var/lib/xdm/authdir/authfiles", "/var/run/xauth")
Example #41
0
def install():
    autotools.rawInstall(
        "DESTDIR=%s BINDIR=/usr/bin MANDIR=/usr/share/man KMODPATH=/lib/modules/%s/extra"
        % (get.installDIR(), get.curKERNEL()))
    pisitools.domove("/usr/bin/wlanconfig", "/sbin")

    pisitools.dodoc("README", "COPYRIGHT")

    # install headers for use by wpa_supplicant and hostapd
    pisitools.insinto("/usr/include/madwifi/include/", "include/*.h")
    pisitools.insinto("/usr/include/madwifi/net80211", "net80211/*.h")
Example #42
0
def setup():
    shelltools.system("sh ati-driver-installer-8-5-x86.x86_64.run --extract .")

    pisitools.dosed(
        "common/lib/modules/fglrx/build_mod/make.sh", r"^linuxincludes=.*",
        "linuxincludes=/lib/modules/%s/build/include" % get.curKERNEL())
    pisitools.dosed("common/etc/ati/authatieventsd.sh",
                    "/var/lib/xdm/authdir/authfiles", "/var/run/xauth")
    pisitools.dosed("common/usr/share/applnk/amdcccle.kdelnk",
                    r"^Exec=amdcccle$",
                    "Exec=LC_ALL=C amdcccle\nCategories=System;")
Example #43
0
def install():
    shelltools.cd("src/app")
    pisitools.dobin("smartcam")

    shelltools.cd("../driver")
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "*.ko")

    for file in ("*.jar", "*.SIS"):
        pisitools.insinto("/usr/share/smartcam/phone_files", "../../release/phone_files/%s" % file)

    pisitools.dodoc("../../COPYING", "../../ReadMe.txt")
Example #44
0
def install():
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "modules/*.ko")
    pisitools.insinto("/etc/udev/rules.d/", "modules/docs/ltmodem.rules", "55-ltmodem.rules")

    # install utilities
    pisitools.dosbin("utils/lt_*")
    pisitools.insinto("/usr/sbin", "utils/unloading","lt_unloading")

    # install docs
    pisitools.dohtml("DOCs/*")
    pisitools.doman("DOCs/*.1")
    pisitools.dodoc("1ST-READ", "DOCs/*")
Example #45
0
def install():
    # Kernel driver
    pisitools.dodir("/lib/modules/%s/kernel/drivers/video" % get.curKERNEL())
    shelltools.copy("usr/src/nv/nvidia.ko","%s/lib/modules/%s/kernel/drivers/video/nvidia.ko" % (get.installDIR(),get.curKERNEL()))

    # X driver
    pisitools.dodir("/usr/lib/xorg/modules/drivers")
    shelltools.copy("usr/X11R6/lib/modules/drivers/nvidia_drv.so","%s/usr/lib/xorg/modules/drivers/nvidia_drv.so" % get.installDIR())

    # XvMC library
    pisitools.dodir("/usr/lib")
    shelltools.copy("usr/X11R6/lib/libXvMCNVIDIA*","%s/usr/lib" % get.installDIR())
    pisitools.dosym("/usr/lib/libXvMCNVIDIA.so.%s" % get.srcVERSION(),"/usr/lib/libXvMCNVIDIA.so")

    # Glx library & headers
    pisitools.dodir("/usr/lib/opengl/nvidia")

    pisitools.copytree("usr/include","%s/usr/lib/opengl/nvidia/include" % get.installDIR())
    pisitools.copytree("usr/lib", "%s/usr/lib/opengl/nvidia/lib" % get.installDIR())
    pisitools.copytree("usr/X11R6/lib/modules/extensions/", "%s/usr/lib/opengl/nvidia/extensions" % get.installDIR())

    pisitools.dosym("/usr/lib/opengl/nvidia/extensions/libglx.so.%s" % get.srcVERSION(),"/usr/lib/opengl/nvidia/extensions/libglx.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGLcore.so.%s" % get.srcVERSION(),"/usr/lib/opengl/nvidia/lib/libGLcore.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGLcore.so.%s" % get.srcVERSION(),"/usr/lib/opengl/nvidia/lib/libGLcore.so.1")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGL.so.%s" % get.srcVERSION(),"/usr/lib/opengl/nvidia/lib/libGL.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGL.so.%s" % get.srcVERSION(),"/usr/lib/opengl/nvidia/lib/libGL.so.1")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libGL.so.%s" % get.srcVERSION(),"/usr/lib/opengl/nvidia/lib/libGL.so.1.2")

    # Cuda library
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libcuda.so.%s" % get.srcVERSION(),"/usr/lib/libcuda.so")

    # nvidia-cfg library
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.%s" % get.srcVERSION(), "/usr/lib/libnvidia-cfg.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.%s" % get.srcVERSION(), "/usr/lib/libnvidia-cfg.so.1")

    # libwfb.so replacement for some GPUs
    pisitools.insinto("/usr/lib/xorg/modules","usr/X11R6/lib/modules/libnvidia-wfb.so.%s" % get.srcVERSION())
    pisitools.dosym("/usr/lib/xorg/modules/libnvidia-wfb.so.%s" % get.srcVERSION(),"/usr/lib/xorg/modules/libwfb.so")

    # Our libc is TLS enabled so use TLS library
    pisitools.remove("/usr/lib/opengl/nvidia/lib/libnvidia-tls.so.%s" % get.srcVERSION())
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/tls/libnvidia-tls.so.%s" % get.srcVERSION(),"/usr/lib/libnvidia-tls.so")
    pisitools.dosym("/usr/lib/opengl/nvidia/lib/tls/libnvidia-tls.so.%s" % get.srcVERSION(),"/usr/lib/libnvidia-tls.so.1")

    # Documentation
    pisitools.dodir("/usr/share/doc")
    shelltools.copytree("usr/share/doc","%s/usr/share/doc/%s" % (get.installDIR(),get.srcTAG()))
    shelltools.copytree("usr/share/man/","%s/usr/share/man" % get.installDIR())

    # nVIDIA utilities
    pisitools.dobin("usr/bin/nvidia-bug-report.sh")
    pisitools.dobin("usr/bin/nvidia-settings")
    pisitools.dobin("usr/bin/nvidia-xconfig")
Example #46
0
def install():
    for file in ["VirtualBox","VBoxSVC","VBoxXPCOMIPCD","VBoxBFE","VBoxManage","VBoxSDL",\
                 "VBoxTunctl","VBoxHeadless","*.so","*.r0","*.gc","components","nls"]:
        pisitools.insinto("/usr/share/VirtualBox","out/linux.x86/release/bin/%s" % file)

    # Kernel module
    pisitools.insinto("/lib/modules/%s/misc" % get.curKERNEL(), "out/linux.x86/release/bin/src/vboxdrv.ko")
    pisitools.insinto("/lib/modules/%s/misc" % get.curKERNEL(), "out/linux.x86/release/bin/src/vboxnetflt.ko")

    # Symlinks
    pisitools.dosym("/usr/bin/VBox.sh","/usr/bin/VirtualBox")
    pisitools.dosym("/usr/bin/VBox.sh","/usr/bin/VBoxManage")
    pisitools.dosym("/usr/bin/VBox.sh","/usr/bin/VBoxSDL")
    pisitools.dosym("/usr/bin/VBox.sh","/usr/bin/vditool")

    # Remove tests
    pisitools.remove("/usr/share/VirtualBox/tst*")

    # Desktop file
    pisitools.insinto("/usr/share/applications/","out/linux.x86/release/bin/VirtualBox.desktop")
    pisitools.insinto("/usr/share/pixmaps/","out/linux.x86/release/bin/VBox.png")
Example #47
0
def setup():
    # disable debug and add acl support
    shelltools.echo("fistdev.mk", "UNIONFS_DEBUG_CFLAG=")
    shelltools.echo("fistdev.mk", "EXTRACFLAGS=\"-DUNIONFS_NDEBUG -DUNIONFS_XATTR\"")

    # prefix correction
    pisitools.dosed("Makefile", "PREFIX   = /usr/local", "PREFIX   = %s/usr" % get.installDIR())
    pisitools.dosed("Makefile", "MODPREFIX=", "MODPREFIX= %s" % get.installDIR())
    pisitools.dosed("Makefile", "MANDIR   = \${PREFIX}/man", "MANDIR   = ${PREFIX}/share/man")
    
    # don't use uname for determine kernel version
    pisitools.dosed("Makefile", "^KVERS=.*", "KVERS=%s" % get.curKERNEL())
Example #48
0
def install():
    for file in ["VirtualBox","VBoxSVC","VBoxXPCOMIPCD","VBoxBFE","VBoxManage","VBoxSDL","vditool","*.so","*.xpt","*.r0","*.gc","components"]:
        pisitools.insinto("/usr/share/VirtualBox","out/linux.x86/release/bin/%s" % file)

    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "out/linux.x86/release/bin/src/vboxdrv.ko")

    # Symlinks
    pisitools.dosym("/usr/bin/VBox.sh","/usr/bin/VirtualBox")
    pisitools.dosym("/usr/bin/VBox.sh","/usr/bin/VBoxManage")
    pisitools.dosym("/usr/bin/VBox.sh","/usr/bin/VBoxSDL")

    # Remove tests
    pisitools.remove("/usr/share/VirtualBox/tst*")
Example #49
0
def install():
    pisitools.insinto("/lib/modules/%s/extra/" % get.curKERNEL(), "ieee80211/ieee80211_crypt_wep-rtl.ko")
    pisitools.insinto("/lib/modules/%s/extra/" % get.curKERNEL(), "ieee80211/ieee80211_crypt_tkip-rtl.ko")
    pisitools.insinto("/lib/modules/%s/extra/" % get.curKERNEL(), "ieee80211/ieee80211_crypt-rtl.ko")
    pisitools.insinto("/lib/modules/%s/extra/" % get.curKERNEL(), "ieee80211/ieee80211_crypt_ccmp-rtl.ko")
    pisitools.insinto("/lib/modules/%s/extra/" % get.curKERNEL(), "ieee80211/ieee80211-rtl.ko")
    pisitools.insinto("/lib/modules/%s/extra/" % get.curKERNEL(), "rtl8185/rtl8187se.ko")

    pisitools.dodoc("README", "ChangeLog", "debug_notes")
Example #50
0
def build():
    shelltools.export("SYSSRC","/lib/modules/%s/source" % get.curKERNEL())
    shelltools.cd("usr/src/nv")

    autotools.make("module")
Example #51
0
def install():
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "*.ko")
Example #52
0
def install():
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "*.ko")
    pisitools.dodoc("changelog")
Example #53
0
def build():
    pisitools.dosed("Makefile", "^KVER .*$", "KVER = %s" % get.curKERNEL())
    autotools.make()
Example #54
0
def install():
    pisitools.dodoc("Module/TESTING", "Module/iwpriv_usage.txt", "THANKS", "FAQ", "CHANGELOG", "README", "LICENSE")
    shelltools.cd("Module")
    pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "*.ko")