Example #1
0
def install():
    pisitools.insinto("/usr", "usr/*")
    shelltools.chmod(get.installDIR() + "/usr/lib/*")
    shelltools.chmod(get.installDIR() + "/usr/bin/*")
    #autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("README*")
Example #2
0
def install():
    shelltools.chmod("test/*py")

    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("README", "COPYING", "dbus-api.txt", "test/ods-dbus-test.c", "test/ods-server-test.py",
                    "test/ods-session-test.py")
Example #3
0
def install():
    pisitools.dodir("/usr/share")

    wanteddirs = []
    for file_ in shelltools.ls(get.workDIR()):
        if shelltools.isDirectory(file_) and not "texmf" in file_:
            wanteddirs.append(file_)

    for folder in wanteddirs:
        pisitools.insinto("/usr/share/texmf-dist", folder)

    if shelltools.can_access_directory("texmf-dist"):
        # Recursively copy on directory on top of another, overwrite duplicate files too
        copy_tree("texmf-dist", "%s/usr/share/texmf-dist" % get.installDIR())

    ## chmod of script files
    script_dir = get.installDIR() + "/usr/share/texmf-dist/scripts"
    if shelltools.can_access_directory(script_dir):
        for root, dirs, files in os.walk(script_dir):
            for name in files:
                shelltools.chmod(os.path.join(root, name), 0755)

    # copy config file to texmf-config
    pisitools.dodir("/etc/texmf/tex/context/config")
    shelltools.copy("%s/usr/share/texmf-dist/tex/context/config/cont-usr.tex" % get.installDIR(), \
                    "%s/etc/texmf/tex/context/config/cont-usr.tex" % get.installDIR())

    # old packages, we will not provide them
    pisitools.remove("/usr/share/texmf-dist/tex/plain/config/omega.ini")
    pisitools.remove("/usr/share/texmf-dist/tex/plain/config/aleph.ini")
    pisitools.removeDir("/usr/share/texmf-dist/scripts/context/stubs/mswin/")
Example #4
0
def setup():
    shelltools.chmod("scripts/*.sh")

    undef_variables()

    conf = "--disable-dev-erandom \
            --with-tls \
            --with-__thread \
            --enable-add-ons=nptl,c_stubs,glibc-compat,libidn \
            --enable-kernel=2.6.11 \
            --without-cvs \
            --without-selinux \
            --enable-bind-now \
            --build=%s \
            --host=%s \
            --disable-profile \
            --without-gd \
            --with-headers=/usr/include \
            --prefix=/usr \
            --mandir=/usr/share/man \
            --infodir=/usr/share/info \
            --libexecdir=/usr/lib/misc" % (get.HOST(), get.HOST())

    shelltools.makedirs("%s/build-default-i686-pc-linux-gnu-nptl" %
                        get.workDIR())
    shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR())
    shelltools.system("%s/%s/configure %s" % (get.workDIR(), WorkDir, conf))
Example #5
0
def setup():
    # Fix build with 1.2.2
    pisitools.dosed("build.xml", "property name=\"src_dir\" value=\"src\"", "property name=\"src_dir\" value=\".\"")

    shelltools.cd("lib/")
    shelltools.chmod("jsapi.sh")
    shelltools.system("./jsapi.sh")
Example #6
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Fix permissions of the static files
    shelltools.chmod("%s/usr/lib/*.a" % get.installDIR(), mode=0644)

    pisitools.domove("/usr/docs", "/usr/share/", "doc")
Example #7
0
def install():
    xbmcDir = "/usr/share/xbmc"

    pisitools.dodir(xbmcDir)
    for fl in ["xbmc.bin", "xbmc-xrandr"]:
        shelltools.copy(fl, "%s/usr/share/xbmc/" % get.installDIR())
    pisitools.dodir("/usr/bin")
    shelltools.copy("tools/Linux/xbmc.sh", "%s/usr/bin/xbmc" % get.installDIR())
    shelltools.chmod("%s/usr/bin/xbmc" % get.installDIR())

    #copy data files
    for dir in ["language", "media", "screensavers", "scripts", "skin", "sounds", "userdata", "visualisations", "system"]:
        shelltools.copytree(dir, "%s/usr/share/xbmc" % get.installDIR())

    #install web server
    pisitools.dodir("/usr/share/xbmc/web")
    shelltools.system("/usr/bin/unzip -oq web/Project_Mayhem_III_webserver_v1.0.zip -d %s/usr/share/xbmc/web" % get.installDIR())

    #remove .so and .dlls
    shelltools.unlinkDir("%s/usr/share/xbmc/system/players" % get.installDIR())
    shelltools.unlinkDir("%s/usr/share/xbmc/system/cdrip" % get.installDIR())
    for root, dirs, files in os.walk(get.installDIR()):
        for name in files:
            lname = name.lower()
            if lname.endswith(".so") or lname.endswith(".dll") or lname.endswith(".a"):
                shelltools.unlink(os.path.join(root, name))

    pisitools.dodoc("*.txt", "README.linux", "LICENSE.GPL")
Example #8
0
def install():
    pisitools.dodir("/usr/share")

    wanteddirs = []
    for file_ in shelltools.ls('.'):
        if shelltools.isDirectory(file_) and not "texmf" in file_:
            wanteddirs.append(file_)

    for folder in wanteddirs:
        pisitools.insinto("/usr/share/texmf-dist", folder)

    if shelltools.can_access_directory("texmf-dist"):
        # Recursively copy on directory on top of another, overwrite duplicate files too
        copy_tree("texmf-dist", "%s/usr/share/texmf-dist" % get.installDIR())

    ## chmod of script files
    script_dir = get.installDIR() + "/usr/share/texmf-dist/scripts"
    if shelltools.can_access_directory(script_dir):
        for root, dirs, files in os.walk(script_dir):
            for name in files:
                shelltools.chmod(os.path.join(root, name), 0755)

    pisitools.dosym("/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu", "/usr/bin/cachepic")
    pisitools.dosym("/usr/share/texmf-dist/scripts/epspdf/epspdftk", "/usr/bin/epspdftk")
    pisitools.dosym("/usr/share/texmf-dist/scripts/epspdf/epspdf", "/usr/bin/epspdf")
    pisitools.dosym("/usr/share/texmf-dist/scripts/fig4latex/fig4latex", "/usr/bin/fig4latex")
    pisitools.dosym("/usr/share/texmf-dist/scripts/mathspic/mathspic.pl", "/usr/bin/mathspic")
Example #9
0
def install():
    pisitools.insinto("/usr/share/geany/colorschemes", "colorschemes/*")
    for t in shelltools.ls("%s/usr/share/geany/colorschemes/*" %
                           get.installDIR()):
        shelltools.chmod(t, mode=0644)

    pisitools.dodoc("ADDING-A-THEME.md", "AUTHORS", "COPYING", "README.md")
Example #10
0
def install():
    autotools.make("DESTDIR=%s install-djview" % get.installDIR())
    autotools.make("DESTDIR=%s install-nsdejavu" % get.installDIR())

    #Fix plugin path
    pisitools.dodir(browserPath)
    pisitools.domove("/usr/lib/netscape/plugins/nsdejavu.so*", browserPath,
                     "nsdejavu.so")
    pisitools.removeDir("/usr/lib/netscape")

    #Make symbolic link in /opt like all other browser plugins
    pisitools.dosym("%snsdejavu.so" % browserPath,
                    "/opt/netscape/plugins/nsdejavu.so")

    #Fix permission
    shelltools.chmod("%s/%s/nsdejavu.so" % (get.installDIR(), browserPath))

    #Install icon
    pisitools.insinto("/usr/share/pixmaps", "desktopfiles/hi32-djview4.png",
                      "djvulibre-djview4.png")

    #Install desktop file
    pisitools.insinto("/usr/share/applications",
                      "desktopfiles/djvulibre-djview4.desktop")

    pisitools.dodoc("COPYING", "COPYRIGHT", "README*", "TODO")
Example #11
0
def install():
    shelltools.chmod("test/*py")

    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("README", "COPYING", "dbus-api.txt", "test/ods-dbus-test.c", "test/ods-server-test.py",
                    "test/ods-session-test.py")
Example #12
0
def setup():
    shelltools.chmod("configure")
    shelltools.chmod("install-sh")
    pisitools.dosed("configure", "docbook-to-man", "docbook2man")

    autotools.rawConfigure("--prefix=/usr \
                            --disable-static")
Example #13
0
def install():
    pisitools.dodir("/opt/RealPlayer")
    shelltools.system("rpm2targz RealPlayer-10.0.8.805-20060718.i586.rpm")
    shelltools.system("tar -zxvf RealPlayer-10.0.8.805-20060718.i586.tar.gz")
    shelltools.cd("usr/local/RealPlayer")
    pisitools.insinto("/usr/kde/3.5/share/icons/hicolor/16x16/apps",
                      "share/icons/realplay_16x16.png", "realplay.png")
    pisitools.insinto("/usr/kde/3.5/share/icons/hicolor/32x32/apps",
                      "share/icons/realplay_32x32.png", "realplay.png")
    pisitools.insinto("/usr/kde/3.5/share/icons/hicolor/48x48/apps",
                      "share/icons/realplay_48x48.png", "realplay.png")
    pisitools.insinto("/usr/share/applications", "share/realplay.desktop")
    pisitools.insinto("/opt/RealPlayer", "LICENSE")
    pisitools.insinto("/opt/RealPlayer", "README")
    pisitools.insinto("/opt/RealPlayer", "postinst")
    pisitools.insinto("/opt/RealPlayer", "plugins")
    pisitools.insinto("/opt/RealPlayer", "common")
    pisitools.insinto("/opt/RealPlayer", "codecs")
    pisitools.insinto("/opt/RealPlayer", "mozilla")
    pisitools.insinto("/opt/RealPlayer", "share")
    pisitools.insinto("/opt/RealPlayer", "lib")
    pisitools.doexe("realplay", "/opt/RealPlayer/")
    pisitools.doexe("realplay.bin", "/opt/RealPlayer/")
    pisitools.dosym("/opt/RealPlayer/realplay", "/usr/bin/realplay")

    shelltools.chmod("%s/opt/RealPlayer/realplay" % get.installDIR())
    shelltools.chmod("%s/opt/RealPlayer/realplay.bin" % get.installDIR())
Example #14
0
def setup():
    shelltools.cd("src")

    # Rebuild configure scripts
    shelltools.chmod("rebuild-configure-scripts.sh")
    shelltools.system("./rebuild-configure-scripts.sh")

    # Rename man pages to regenerate them
    rename_man_pages()

    shelltools.export(
        "CFLAGS",
        "-I/usr/include/et -fPIC -fno-strict-aliasing %s" % get.CFLAGS())

    # Fix pthread linking
    pisitools.dosed("configure", "-lthread", "-lpthread")
    pisitools.dosed("configure", "-pthread", "-lpthread")

    autotools.configure("--with-system-et \
                         --with-system-ss \
                         --with-pam \
                         --with-ldap \
                         --with-netlib=-lresolv \
                         --without-selinux \
                         --without-tcl \
                         --localstatedir=/var/lib/kerberos \
                         --disable-rpath \
                         --enable-shared \
                         --enable-pkinit \
                         --enable-dns \
                         --enable-dns-for-realm")

    # Fix krb5-config script to remove rpaths and CFLAGS
    pisitools.dosed("krb5-config", "^CC_LINK=.*",
                    "CC_LINK='$(CC) $(PROG_LIBPATH)'")
Example #15
0
def setup():
    shelltools.chmod("./src/misc/writeBuildNum.sh")
    autotools.autoreconf("-fi")
    autotools.configure("--prefix=/opt/firebird \
                         --disable-static \
                         --enable-superserver \
                         --with-editline")
Example #16
0
def install():
    autotools.rawInstall("INSTALL_PREFIX=%s MANDIR=/usr/share/man" %
                         get.installDIR())
    pisitools.dodoc("CHANGES*", "FAQ", "LICENSE", "NEWS", "README",
                    "doc/*.txt")
    pisitools.dohtml("doc/*")

    # create the certs directory.
    pisitools.insinto("/etc/ssl/certs/", "certs/*.pem")
    shelltools.system(
        "OPENSSL=%s/usr/bin/openssl /usr/bin/perl tools/c_rehash %s/etc/ssl/certs"
        % (get.installDIR(), get.installDIR()))

    # The man pages rand.3, err.3 and passwd.1 conflict with other packages
    # Rename them to ssl-* and also make a symlink from openssl-* to ssl-*
    pisitools.domove("/usr/share/man/man1/passwd.1", "/usr/share/man/man1/",
                     "ssl-passwd.1")
    pisitools.dosym("ssl-passwd.1", "/usr/share/man/man1/openssl-passwd.1")

    pisitools.domove("/usr/share/man/man3/rand.3", "/usr/share/man/man3/",
                     "ssl-rand.3")
    pisitools.dosym("ssl-rand.3", "/usr/share/man/man3/openssl-rand.3")

    pisitools.domove("/usr/share/man/man3/err.3", "/usr/share/man/man3/",
                     "ssl-err.3")
    pisitools.dosym("ssl-err.3", "/usr/share/man/man3/openssl-err.3")

    shelltools.chmod("%s/usr/lib/pkgconfig" % get.installDIR())

    # No static libs
    pisitools.remove("/usr/lib/*.a")
Example #17
0
    def testShelltoolsChmod(self):
        from pisi.actionsapi.shelltools import chmod

        chmod("tests/actionsapitests/file")
        self.assertEqual(oct(os.stat("tests/actionsapitests/file").st_mode)[-3:], "755")
        chmod("tests/actionsapitests/file", 0644)
        self.assertEqual(oct(os.stat("tests/actionsapitests/file").st_mode)[-3:], "644")
Example #18
0
def fixPerms(datadir):
    #  Permissions, permissions, permissions
    for root, dirs, files in os.walk(datadir):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0755)
        for name in files:
            shelltools.chmod(os.path.join(root, name), 0644)
Example #19
0
def setup():
    pisitools.dosed("Makefile", "-O2", get.CFLAGS())
    pisitools.dosed("Makefile", "^MAPC_TARG := mapc", "MAPC_TARG := neverball-mapc")
    # causes sandbox violations
    pisitools.dosed("po/Makefile", "LOCALEDIR", "LLOCALEDIR")

    shelltools.chmod("dist/*.png", 0644)
Example #20
0
def install():
    shelltools.chmod("*.ttf",0644)
    shelltools.chmod("*.txt",0644)

    pisitools.insinto("/usr/share/fonts/anonymouspro","*.ttf")

    pisitools.dodoc("*.txt")
Example #21
0
def install():
    pythonmodules.install()
    
    shelltools.chmod("examples/*", 0644)
    pisitools.insinto(examples, "examples/*")

    pisitools.dodoc("AUTHORS", "CHANGES", "LICENSE", "README", "TODO")
Example #22
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())

    pisitools.dosed("configure", '^has_wx="yes', 'has_wx="no')
    shelltools.chmod("configure")
    autotools.configure('--enable-svg \
                         --enable-pic \
                         --disable-wx \
                         --disable-amr \
                         --use-a52=no \
                         --use-ffmpeg=no \
                         --use-ogg=system \
                         --use-vorbis=system \
                         --use-theora=system \
                         --use-faad=system \
                         --use-png=system \
                         --use-jpeg=system \
                         --use-ft=system \
                         --use-js=system \
                         --use-mad=system \
                         --cc="%s" \
                         --disable-oss-audio ' % get.CC())

    shelltools.copy("config.h", "include/gpac/")
Example #23
0
def install():
    shelltools.cd("src")
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.chmod("%s/usr/bin/silicon" % get.installDIR(), 0755)
    shelltools.cd("..")
    pisitools.dodoc("README","COPYING","Authors")
    
Example #24
0
def install():
    shelltools.system("rpm2targz lazarus-1.8.4-0.x86_64.rpm")
    shelltools.system("tar -zxvf lazarus-1.8.4-0.x86_64.tar.gz")
    pisitools.insinto("/", "usr")
    pisitools.insinto("/", "etc")
    shelltools.export("$THEPREFIX/usr/lib64/fpc/3.0.4/samplecfg", "$THEPREFIX/usr/lib64/fpc/3.0.4/ $ETCDIR")
    shelltools.chmod("usr/lib64/lazarus/startlazarus", 0777)
Example #25
0
def install():
    shelltools.cd("..")
    shelltools.copytree("pdfid-%s" % get.srcVERSION(), "%s/usr/share/pdfid/" % get.installDIR())
    shelltools.cd(WorkDir)
    
    shelltools.chmod(get.installDIR() + "/usr/share/pdfid/pdfid.py", mode=0755)
    pisitools.dosym("/usr/share/pdfid/pdfid.py", "/usr/bin/pdfid")
Example #26
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.insinto("/usr/include", "pm_common/pmutil.h")
    shelltools.chmod("%s/usr/include/pmutil.h" % get.installDIR(), mode=0644)

    # Fix missing symlink for libporttime.so (FS#21528).
    pisitools.dosym("/usr/lib/libportmidi_s.a", "/usr/lib/libportmidi.a")
    pisitools.dosym("/usr/lib/libportmidi.so", "/usr/lib/libporttime.so")
    pisitools.dosym("/usr/lib/libportmidi.a", "/usr/lib/libporttime.a")

    # Install test applications
    for app in [
            "latency", "midithread", "midithru", "mm", "qtest", "sysex", "test"
    ]:
        pisitools.insinto("/usr/bin", "build/Release/%s" % app,
                          "portmidi-%s" % app)

    # Build and Install python module
    pisitools.dodir("/usr/lib/%s/site-packages/pyportmidi" % get.curPYTHON())
    pisitools.dolib("pm_python/pyportmidi/_pyportmidi.so",
                    "/usr/lib/%s/site-packages/pyportmidi" % get.curPYTHON())
    pisitools.insinto("/usr/lib/%s/site-packages/pyportmidi" % get.curPYTHON(),
                      "pm_python/pyportmidi/*.py")

    pisitools.dodoc("CHANGELOG.txt", "license.txt", "README.txt")
Example #27
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    for target in ["/usr/lib/libhogweed.so.2.5", "/usr/lib/libnettle.so.4.7"]:
        shelltools.chmod("%s/%s" % (get.installDIR(), target), mode=0755)

    pisitools.dodoc("nettle.html")
Example #28
0
def fixperms(d):
    import os
    for root, dirs, files in os.walk(d):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0755)
        for name in files:
            shelltools.chmod(os.path.join(root, name), 0644)
Example #29
0
def install():
    pythonmodules.install(pyVer="3.4")
    pisitools.insinto("/usr/share/plasma/", "run_plasma.py")
    shelltools.chmod(get.installDIR() + "/usr/share/plasma/run_plasma.py",
                     mode=0755)
    pisitools.dosym("/usr/share/plasma/run_plasma.py", "/usr/bin/plasma")
    pisitools.dodoc("LICENSE", "README*")
Example #30
0
def install():
    if get.buildTYPE() == "emul32":
        # SERVERBIN is hardcoded to /usr/lib/cups, thus it overwrites 64 bit libraries
        autotools.rawInstall(
            "BUILDROOT=%s SERVERBIN=%s/usr/serverbin32 install-libs" % (get.installDIR(), get.installDIR())
        )
        pisitools.domove("/usr/bin32/cups-config", "/usr/bin", "cups-config-32bit")
        pisitools.removeDir("/usr/bin32")
        pisitools.removeDir("/usr/sbin32")
        pisitools.removeDir("/usr/serverbin32")

        # remove files now part of cups-filters
        # pisitools.remove("/usr/share/cups/data/testprint")
        pisitools.removeDir("/usr/share/cups/banners")
        pisitools.dodir("/usr/share/cups/banners")
        return

    autotools.rawInstall("BUILDROOT=%s install-headers install-libs install-data install-exec" % get.installDIR())
    shelltools.chmod("%s/run/cups/certs" % get.installDIR(), 0755)

    pisitools.dodir("/usr/share/cups/profiles")

    # Serial backend needs to run as root
    # shelltools.chmod("%s/usr/lib/cups/backend/serial" % get.installDIR(), 0700)

    pisitools.dodoc("CHANGES.txt", "CREDITS.txt", "LICENSE.txt", "README.txt")
Example #31
0
def setup():
    shelltools.system("ar x %s/google-earth-stable_current_i386.deb" %
                      get.workDIR())
    shelltools.system(
        "tar --lzma -xvf %s/data.tar.lzma --exclude=usr/bin --exclude=etc --exclude=opt/google/earth/free/google-earth"
        % get.workDIR())
    shelltools.chmod("%s/opt/google/earth/*" % get.workDIR())
Example #32
0
def setup():
    shelltools.chmod("scripts/*.sh")

    undef_variables()

    conf = "--disable-dev-erandom \
            --with-tls \
            --with-__thread \
            --enable-add-ons=nptl,c_stubs,glibc-compat,libidn \
            --enable-kernel=2.6.11 \
            --without-cvs \
            --without-selinux \
            --enable-bind-now \
            --build=%s \
            --host=%s \
            --disable-profile \
            --without-gd \
            --with-headers=/usr/include \
            --prefix=/usr \
            --mandir=/usr/share/man \
            --infodir=/usr/share/info \
            --libexecdir=/usr/lib/misc" % (get.HOST(), get.HOST())

    shelltools.makedirs("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR())
    shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR())
    shelltools.system("%s/%s/configure %s" % (get.workDIR(), WorkDir, conf))
Example #33
0
def install():
    for binary in ["certutil", "modutil", "pk12util", "signtool", "ssltap"]:
        pisitools.insinto("/usr/bin", "dist/Linux*/bin/%s" % binary, sym=False)

    for lib in ["*.a", "*.chk", "*.so"]:
        pisitools.insinto("/usr/lib/nss",
                          "dist/Linux*/lib/%s" % lib,
                          sym=False)

    # Headers
    for header in ["dist/private/nss/*.h", "dist/public/nss/*.h"]:
        pisitools.insinto("/usr/include/nss", header, sym=False)

    # Drop executable bits from headers
    shelltools.chmod("%s/usr/include/nss/*.h" % get.installDIR(), mode=0644)

    # Install nss-config and nss.pc
    pisitools.insinto("/usr/lib/pkgconfig", "dist/pkgconfig/nss.pc")
    pisitools.insinto("/usr/bin", "dist/pkgconfig/nss-config")

    # create empty NSS database
    pisitools.dodir("/etc/ssl/nssdb")
    shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/nss" % get.installDIR())
    shelltools.system(
        "%s/usr/bin/modutil -force -dbdir \"sql:%s/etc/ssl/nssdb\" -create" %
        (get.installDIR(), get.installDIR()))
    shelltools.chmod("%s/etc/ssl/nssdb/*" % get.installDIR(), 0644)
    pisitools.dosed("%s/etc/ssl/nssdb/*" % get.installDIR(), get.installDIR(),
                    "")
Example #34
0
def install():
    # These should not be set, else the zoneinfo do not always get installed ...
    undef_variables()

    # install glibc/glibc-locale files
    shelltools.cd("build")
    autotools.rawInstall("install_root=%s localedata/install-locales" % get.installDIR())

    # Some things want this, notably ash
    pisitools.dosym("libbsd-compat.a", "/usr/lib/libbsd.a")

    # We'll take care of the cache ourselves
    pisitools.remove("/etc/ld.so.cache")

    # It previously has 0755 perms which was killing things
    shelltools.chmod("%s/usr/lib/misc/pt_chown" % get.installDIR(), 04711)

    # Prevent overwriting of the /etc/localtime symlink
    pisitools.remove("/etc/localtime")

    # Nscd needs this to work
    pisitools.dodir("/var/run/nscd")
    pisitools.dodir("/var/db/nscd")

    shelltools.cd("..")
    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "FAQ", "INTERFACE", "NEWS", "NOTES", "PROJECTS", "README*", "LICENSE")
Example #35
0
def install():
    for Dir in Dirs:
        pisitools.insinto("/opt/rigsofrods/packs/%s" % Dir, "streams/%s/*" % Dir)

        shelltools.chmod("%s/opt/rigsofrods/packs/%s/*.zip" % (get.installDIR(), Dir), 0644)

    pisitools.dodoc("readme-content-pack-0.37.txt")
Example #36
0
def setup():
    shelltools.chmod("Platform/Linux/CreateRedist/RedistMaker", 0755)
    shelltools.system("rm -rf Samples/*/GL Samples/*/Libs Source/External Platform/Linux/Build/Prerequisites/*")
    shelltools.system("dos2unix *.txt README")

    pisitools.dosed("Samples/*/*.c", "^#define SAMPLE_XML_PATH .*$", "#define SAMPLE_XML_PATH \"/etc/openni/SamplesConfig.xml\"")
    pisitools.dosed("Samples/*/*.cpp", "^#define SAMPLE_XML_PATH .*$", "#define SAMPLE_XML_PATH \"/etc/openni/SamplesConfig.xml\"")
Example #37
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.insinto("/usr/share/hal/fdi/information/20thirdparty/", "scripts/hal/20-ups-nut-device.fdi")

    pisitools.dodir("/usr/libexec")
    for f in shelltools.ls("drivers"):
        if f.startswith("hald-addon-"):
            pisitools.dosym("/lib/nut/%s" % f, "/usr/libexec/%s" % f)

    # needed by scripts, this trick is for safely unmounting /usr
    pisitools.dosym("/lib/nut/upsdrvctl", "/usr/sbin/upsdrvctl")

    # nut's own statedir
    pisitools.dodir(nutconfig["STATE_PATH"])
    shelltools.chmod("%s/%s" % (get.installDIR(), nutconfig["STATE_PATH"]), 0770)

    # let configs work
    for f in shelltools.ls("%s/%s/*.sample" % (get.installDIR(), nutconfig["CONF_DIR"])):
        _file = shelltools.baseName(f)
        pisitools.rename("%s/%s" % (nutconfig["CONF_DIR"], _file), _file[:-7])

    # docs examples and cable diagrams
    pisitools.newdoc("lib/README", "README.lib")
    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcTAG()), "docs/cables")
    pisitools.dodoc("ChangeLog", "CREDITS", "MAINTAINERS", "NEWS", "README", "UPGRADING", "docs/FAQ", "docs/*.txt")
Example #38
0
def install():
    # These should not be set, else the zoneinfo do not always get installed ...
    undef_variables()
    
    shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR())
    autotools.rawInstall("PARALLELMFLAGS=${MAKEOPTS} install_root=%s" % get.installDIR())

    # Some things want this, notably ash.
    pisitools.dosym("libbsd-compat.a", "/usr/lib/libbsd.a")

    # install glibc-info
    autotools.rawInstall("PARALLELMFLAGS=${MAKEOPTS} install_root=%s info -i" % get.installDIR())

    setup_locales()

    # We'll take care of the cache ourselves
    pisitools.remove("/etc/ld.so.cache")

    pisitools.dodir("/usr/share/man/man3")
    pisitools.doman("../%s/man/*.3thr" % get.workDIR())

    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "FAQ", "INTERFACE", "NEWS", "NOTES", "PROJECTS", "README*")

    # Is this next line actually needed or does the makefile get it right?
    # It previously has 0755 perms which was killing things.
    shelltools.chmod("%s/usr/lib/misc/pt_chown" % get.installDIR(), 04711)

    # Prevent overwriting of the /etc/localtime symlink.  
    pisitools.remove("/etc/localtime")
Example #39
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Fix permissions of the static files
    shelltools.chmod("%s/usr/lib/*.a" % get.installDIR(), mode=0644)

    pisitools.domove("/usr/docs", "/usr/share/", "doc")
Example #40
0
def install():
    pisitools.insinto("/usr/share/AdminpageFinder/", "AdminpageFinder.py.txt")
    shelltools.chmod(get.installDIR() +
                     "/usr/share/AdminpageFinder/AdminpageFinder.py.txt",
                     mode=0755)
    pisitools.dosym("/usr/share/AdminpageFinder/AdminpageFinder.py.txt",
                    "/usr/bin/adminpagefinder")
Example #41
0
def install():
    shelltools.export("PYTHON_DIR", "/usr/lib/%s" % get.curPYTHON())
    
    # install svn
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dobin("svn-config")

    # install swig-py
    autotools.rawInstall("DESTDIR=%s DISTUTIL_PARAM=--prefix=%s LD_LIBRARY_PATH=\"-L%s/usr/lib\"" % \
                        (get.installDIR(), get.installDIR(), get.installDIR()), "install-swig-py")

    # install swig-pl
    autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-swig-pl")

    # Move py/c'into proper dir
    pisitools.domove("/usr/lib/svn-python/svn", "/usr/lib/%s/site-packages" % get.curPYTHON())
    pisitools.domove("/usr/lib/svn-python/libsvn", "/usr/lib/%s/site-packages" % get.curPYTHON())
    pisitools.removeDir("/usr/lib/svn-python")

    # some helper tools
    pisitools.insinto("/usr/bin/", "tools/backup/hot-backup.py", "svn-hot-backup")
    pisitools.insinto("/usr/bin/", "contrib/client-side/svn_load_dirs.pl", "svn-load-dirs")
    pisitools.insinto("/usr/bin/", "contrib/client-side/svnmerge.py", "svnmerge")
    shelltools.chmod("%s/usr/bin/svnmerge" % get.installDIR(), 0755)
 
    # Documentation and etc.
    pisitools.dodoc("BUGS", "COMMITTERS", "COPYING", "HACKING", "README", \
        "CHANGES", "tools/xslt/svnindex.css", "tools/xslt/svnindex.xsl")

    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcTAG()), "contrib")

    perlmodules.fixLocalPod()
Example #42
0
def install():
    shelltools.chmod("*.ttf", 0644)
    shelltools.chmod("*.txt", 0644)

    pisitools.insinto("/usr/share/fonts/charis", "*.ttf")

    pisitools.dodoc("*.txt", "*.pdf")
def install():
    pisitools.dodir("/usr/share")

    wanteddirs = []
    for file_ in shelltools.ls('.'):
        if shelltools.isDirectory(file_) and not "texmf" in file_:
            wanteddirs.append(file_)

    for folder in wanteddirs:
        pisitools.insinto("/usr/share/texmf-dist", folder)

    if shelltools.can_access_directory("texmf-dist"):
        # Recursively copy on directory on top of another, overwrite duplicate files too
        copy_tree("texmf-dist", "%s/usr/share/texmf-dist" % get.installDIR())

    ## chmod of script files
    script_dir = get.installDIR() + "/usr/share/texmf-dist/scripts"
    if shelltools.can_access_directory(script_dir):
        for root, dirs, files in os.walk(script_dir):
            for name in files:
                shelltools.chmod(os.path.join(root, name), 0755)

    pisitools.remove("/usr/share/texmf-dist/scripts/m-tx/m-tx.lua")
    pisitools.remove("/usr/share/texmf-dist/scripts/musixtex/musixtex.lua")
    pisitools.remove("/usr/share/texmf-dist/scripts/musixtex/musixflx.lua")
    pisitools.remove("/usr/share/texmf-dist/scripts/pmx/pmx2pdf.lua")
Example #44
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())

    pisitools.dosed("configure", '^has_wx="yes', 'has_wx="no')
    shelltools.chmod("configure")
    autotools.configure('--enable-svg \
                         --enable-pic \
                         --disable-wx \
                         --disable-amr \
                         --use-a52=no \
                         --use-ffmpeg=no \
                         --use-ogg=system \
                         --use-vorbis=system \
                         --use-theora=system \
                         --use-faad=system \
                         --use-png=system \
                         --use-jpeg=system \
                         --use-ft=system \
                         --use-js=system \
                         --use-mad=system \
                         --cc="%s" \
                         --disable-oss-audio ' % get.CC())

    shelltools.copy("config.h", "include/gpac/")
Example #45
0
def install():
    pythonmodules.install()

    pisitools.dodoc("ChangeLog.txt", "COPYING.txt", "README.txt")
    
    shelltools.chmod("examples/*", 0644)
    pisitools.insinto(examples, "examples/*") 
Example #46
0
def install():
    pythonmodules.install()

    # Copy in our data files
    pisitools.insinto("/usr/share/os-installer", "data/*")

    # Change log
    pisitools.insinto("/usr/share/os-installer", "changes")

    # Icons
    pisitools.insinto("/usr/share/icons/gnome/scalable/actions",
                      "dist/icons/*")

    # Desktop file
    pisitools.insinto("/usr/share/applications", "dist/os-installer.desktop")
    pisitools.insinto("/etc/skel/Desktop", "dist/os-installer.desktop")
    shelltools.chmod("%s/etc/skel/Desktop/os-installer.desktop" %
                     get.installDIR())

    # Configuration file
    pisitools.insinto("/etc/os-installer", "dist/install.conf")

    # PolicyKit conf
    pisitools.insinto("/usr/share/polkit-1/actions", "dist/*.policy")

    pisitools.dobin("dist/os-installer-wrapper")
Example #47
0
def setup():
    shelltools.export("CFLAGS","") # Use FFmpeg's CFLAGS

    # Setup version.h
    shelltools.unlink("version.sh")
    shelltools.echo("version.sh",'echo "#define FFMPEG_VERSION \\"SVN-r%s\\"" > version.h' % Revision)
    shelltools.chmod("version.sh")

    # CPU thing is just used for CMOV detection
    autotools.rawConfigure("--cpu=i686 \
                            --prefix=/usr \
                            --mandir=/usr/share/man \
                            --enable-gpl \
                            --enable-pthreads \
                            --enable-pp \
                            --enable-liba52 \
                            --enable-x264 \
                            --enable-xvid \
                            --enable-libfaad \
                            --enable-libfaac \
                            --enable-libvorbis \
                            --enable-libmp3lame \
                            --enable-libogg \
                            --enable-libamr-nb \
                            --enable-libamr-wb \
                            --enable-dc1394 \
                            --enable-libtheora \
                            --enable-shared \
                            --enable-x11grab \
                            --enable-libgsm \
                            --disable-static \
                            --disable-debug")
Example #48
0
def setup():
    shelltools.cd("../")
    for root, dirs, files in os.walk(WorkDir):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0755)
        for name in files:
            shelltools.chmod(os.path.join(root, name), 0644)
Example #49
0
def install():
    for binary in ["certutil", "modutil", "pk12util", "signtool", "ssltap"]:
        pisitools.insinto("/usr/bin", "dist/Linux*/bin/%s" % binary, sym=False)

    for lib in ["*.a", "*.chk", "*.so"]:
        pisitools.insinto("/usr/lib/nss", "dist/Linux*/lib/%s" % lib, sym=False)

    # Headers
    for header in ["dist/private/nss/*.h", "dist/public/nss/*.h"]:
        pisitools.insinto("/usr/include/nss", header, sym=False)

    # Drop executable bits from headers
    shelltools.chmod("%s/usr/include/nss/*.h" % get.installDIR(), mode=0644)

    # Install nss-config and nss.pc
    pisitools.insinto("/usr/lib/pkgconfig", "dist/pkgconfig/nss.pc")
    pisitools.insinto("/usr/bin", "dist/pkgconfig/nss-config")

    # create empty NSS database
    pisitools.dodir("/etc/pki/nssdb")
    shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/nss" % get.installDIR())
    shelltools.system(
        '%s/usr/bin/modutil -force -dbdir "sql:%s/etc/pki/nssdb" -create' % (get.installDIR(), get.installDIR())
    )
    shelltools.chmod("%s/etc/pki/nssdb/*" % get.installDIR(), 0644)
    pisitools.dosed("%s/etc/pki/nssdb/*" % get.installDIR(), get.installDIR(), "")
Example #50
0
def setup():
    shelltools.chmod("configure")
    shelltools.chmod("install.sh")

    pisitools.dosed("configure", "docbook-to-man", "docbook2man")
    pisitools.dosed("man/Makefile.in", "docbook-to-man", "docbook2man")

    autotools.rawConfigure("--prefix=/usr")
Example #51
0
def install():
    shelltools.cd("..")
    shelltools.copytree("pdfid-%s" % get.srcVERSION(),
                        "%s/usr/share/pdfid/" % get.installDIR())
    shelltools.cd(WorkDir)

    shelltools.chmod(get.installDIR() + "/usr/share/pdfid/pdfid.py", mode=0755)
    pisitools.dosym("/usr/share/pdfid/pdfid.py", "/usr/bin/pdfid")
Example #52
0
def setup():
    shelltools.system("rpm2targz -v %s/picasa-3.9-2pclos2012.src.rpm" %get.workDIR())
    #shelltools.system("tar xfvz %s/picasa-3.9-2pclos2012.src.tar.gz --exclude=usr --exclude=opt/kde3 --exclude=opt/google/picasa/3.0/wine/drive_c/Program\ Files/Google/Picasa3" %get.workDIR())
    shelltools.system("tar xfvz %s/picasa-3.9-2pclos2012.src.tar.gz" %get.workDIR())
    shelltools.system("tar xJvf %s/picasa.tar.xz" %get.workDIR())

    shelltools.chmod("%s/picasa/3.0/bin/*" %get.workDIR())
    shelltools.chmod("%s/picasa/3.0/bin/*" %get.workDIR())
Example #53
0
def check():
    undef_variables()
    shelltools.chmod("scripts/begin-end-check.pl")

    shelltools.cd("build")

    shelltools.export("TIMEOUTFACTOR", "16")
    autotools.make("-k check 2>error.log")
Example #54
0
def install():
    autotools.rawInstall("DESTDIR=%s/" % get.installDIR())

    pisitools.dodir("/var/lib/polkit-1")
    shelltools.chmod("%s/var/lib/polkit-1" % get.installDIR(), mode=00700)
    shelltools.chmod("%s/etc/polkit-1/localauthority" % get.installDIR(), mode=00700)

    pisitools.dodoc("AUTHORS", "NEWS", "README", "HACKING", "COPYING")
Example #55
0
def chmod(path):
    shelltools.chmod(path, mode=0755)
    for f in shelltools.ls(path):
        path2f = '/'.join((path, f))
        if shelltools.isFile(path2f):
            shelltools.chmod(path2f, mode=0644)
        else:
            chmod(path2f)
Example #56
0
def install():
	autotools.rawInstall ("DESTDIR=%s" % get.installDIR())
	
	# Fix permissions of the static files
	shelltools.chmod ("%s/usr/lib/llvm/*.a" % get.installDIR(), mode=0644)
	
	# Fix the llvm link
	pisitools.dosym ("/usr/lib/llvm/libLLVM-3.2.so", "/usr/lib/libLLVM-3.2.so")
Example #57
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.chmod("%s/lib/libacl.so.*.*.*" % get.installDIR(), 0o755)
    shelltools.copytree("%s/lib/pkgconfig" % get.installDIR(), "%s/usr/lib/pkgconfig" % get.installDIR())
    pisitools.removeDir("/lib/pkgconfig")

    pisitools.dodoc("README")