Beispiel #1
0
def install():
    libcInstall(config["system"])

    # localedata can be shared between archs
    shelltools.cd(config["system"]["builddir"])
    autotools.rawInstall("install_root=%s localedata/install-locales"
                         % get.installDIR())

    # now we do generic stuff
    shelltools.cd(pkgworkdir)

    # We'll take care of the cache ourselves
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        pisitools.remove("/etc/ld.so.cache")

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        pisitools.remove("/etc/localtime")

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

    if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()):
        pisitools.removeDir("/usr/share/zoneinfo")

    for i in ["zdump"]:
        if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)):
            pisitools.remove("/usr/sbin/%s" % i)

    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS",
                    "PROJECTS", "README*", "LICENSES")
Beispiel #2
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
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        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
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        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", "NEWS",
                    "NOTES", "PROJECTS", "README*", "LICENSES")
Beispiel #3
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
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        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
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        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", "NEWS", "NOTES", "PROJECTS", "README*", "LICENSES")

    # Create Timezone db in /usr/share/zoneinfo
    shelltools.chmod("dump-tz-db", 0755)
    shelltools.system("./dump-tz-db %s" % get.installDIR())
Beispiel #4
0
def install():
    libcInstall(config["system"])

    # localedata can be shared between archs
    shelltools.cd(config["system"]["builddir"])
    autotools.rawInstall("install_root=%s localedata/install-locales" %
                         get.installDIR())

    # now we do generic stuff
    shelltools.cd(pkgworkdir)

    # We'll take care of the cache ourselves
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        pisitools.remove("/etc/ld.so.cache")

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        pisitools.remove("/etc/localtime")

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

    if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()):
        pisitools.removeDir("/usr/share/zoneinfo")

    for i in ["zdump"]:
        if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)):
            pisitools.remove("/usr/sbin/%s" % i)

    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS",
                    "PROJECTS", "README*", "LICENSES")
Beispiel #5
0
    def testShelltoolsIsFile(self):
        from pisi.actionsapi.shelltools import isFile

        self.assert_(not isFile("tests/actionsapitests/linktoadirectory"))
        self.assert_(not isFile("tests/actionsapitests/linktoafile"))
        self.assert_(not isFile("tests/actionsapitests/brokenlink"))
        self.assert_(isFile("tests/actionsapitests/file"))
        self.assert_(not isFile("tests/actionsapitests/adirectory"))
Beispiel #6
0
def install():
    # we do second arch first, to allow first arch to overwrite headers, etc.
    # stubs-32.h, elf.h, vm86.h comes only with 32bit
    if multibuild:
        libcInstall(config["multiarch"])
        pisitools.dosym("../lib32/ld-linux.so.2", "/lib/ld-linux.so.2")
        # FIXME: these should be added as additional file, when we can define pkg per arch
        pisitools.dodir("/etc/ld.so.conf.d")
        shelltools.echo(
            "%s/etc/ld.so.conf.d/60-glibc-32bit.conf" % get.installDIR(),
            ldconf32bit)

    libcInstall(config["system"])

    # localedata can be shared between archs
    shelltools.cd(config["system"]["builddir"])
    autotools.rawInstall("install_root=%s localedata/install-locales" %
                         get.installDIR())

    # now we do generic stuff
    shelltools.cd(pkgworkdir)

    # We'll take care of the cache ourselves
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        pisitools.remove("/etc/ld.so.cache")

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

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        pisitools.remove("/etc/localtime")

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

    #we need this headers #2013
    #pisitools.dodir("/usr/include/rpc")
    #pisitools.dodir("/usr/include/rpcsvc")
    #~ shelltools.copy("sunrpc/rpc/*.h","%s/usr/include/rpc" % get.installDIR())
    #~ shelltools.copy("nis/rpcsvc/*.h","%s/usr/include/rpcsvc" % get.installDIR())

    # remove zoneinfo files since they are coming from timezone packages
    # we disable timezone build with a patch, keeping these lines for easier maintenance
    if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()):
        pisitools.removeDir("/usr/share/zoneinfo")

    #while bootstrapping whole system zic should not be removed. timezone package does not build without it. # 2013
    for i in ["zdump"]:
        if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)):
            pisitools.remove("/usr/sbin/%s" % i)

    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS",
                    "PROJECTS", "README*", "LICENSES")
Beispiel #7
0
def install():
    shelltools.touch("%s/etc/ld.so.conf" % get.installDIR())
    pisitools.dodir("/etc/ld.so.conf.d")
    shelltools.cd("build")
    autotools.rawInstall("install_root=%s" % get.installDIR())

    if get.buildTYPE() != "emul32":
        #Install locales once.
        autotools.rawInstall("install_root=%s localedata/install-locales" %
                             get.installDIR())

        # Remove our options section from crt stuff
        removePisiLinuxSection("%s/usr/lib/" % get.installDIR())

    if get.buildTYPE() == "emul32":
        pisitools.dosym("/lib32/ld-linux.so.2", "/lib/ld-linux.so.2")

        shelltools.echo(
            "%s/etc/ld.so.conf.d/60-glibc-32bit.conf" % get.installDIR(),
            ldconf32bit)

        # Remove our options section from crt stuff
        removePisiLinuxSection("%s/usr/lib32/" % get.installDIR())

        pisitools.removeDir("/tmp32")

    # We'll take care of the cache ourselves
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        pisitools.remove("/etc/ld.so.cache")

    if shelltools.isFile("%s/etc/ld.so.conf" % get.installDIR()):
        pisitools.remove("/etc/ld.so.conf")

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        pisitools.remove("/etc/localtime")

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

    # remove zoneinfo files since they are coming from timezone packages
    # we disable timezone build with a patch, keeping these lines for easier maintenance
    if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()):
        pisitools.removeDir("/usr/share/zoneinfo")

    #while bootstrapping whole system zic should not be removed. timezone package does not build without it. # 2013
    #for i in ["zdump","zic"]:
    #if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)):
    #pisitools.remove("/usr/sbin/%s" % i)

    shelltools.cd("..")
    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS",
                    "PROJECTS", "README*", "LICENSES")
Beispiel #8
0
def install():
    shelltools.touch("%s/etc/ld.so.conf" % get.installDIR())
    pisitools.dodir("/etc/ld.so.conf.d")
    shelltools.cd("build")
    autotools.rawInstall("install_root=%s" % get.installDIR())
    

    if get.buildTYPE() != "emul32":
        #Install locales once.
        autotools.rawInstall("install_root=%s localedata/install-locales" % get.installDIR())

        # Remove our options section from crt stuff
        removePisiLinuxSection("%s/usr/lib/" % get.installDIR())


    if get.buildTYPE() == "emul32":
        pisitools.dosym("/lib32/ld-linux.so.2", "/lib/ld-linux.so.2")

        shelltools.echo("%s/etc/ld.so.conf.d/60-glibc-32bit.conf" % get.installDIR(), ldconf32bit)

        # Remove our options section from crt stuff
        removePisiLinuxSection("%s/usr/lib32/" % get.installDIR())

        pisitools.removeDir("/tmp32")


    # We'll take care of the cache ourselves
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
         pisitools.remove("/etc/ld.so.cache")
        
    if shelltools.isFile("%s/etc/ld.so.conf" % get.installDIR()):
         pisitools.remove("/etc/ld.so.conf")

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        pisitools.remove("/etc/localtime")

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

    # remove zoneinfo files since they are coming from timezone packages
    # we disable timezone build with a patch, keeping these lines for easier maintenance
    if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()):
        pisitools.removeDir("/usr/share/zoneinfo")

    #while bootstrapping whole system zic should not be removed. timezone package does not build without it. # 2013
    #for i in ["zdump","zic"]:
        #if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)):
            #pisitools.remove("/usr/sbin/%s" % i)

    shelltools.cd("..")
    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS", "PROJECTS", "README*", "LICENSES")
Beispiel #9
0
def install():
    # we do second arch first, to allow first arch to overwrite headers, etc.
    # stubs-32.h, elf.h, vm86.h comes only with 32bit
    if multibuild:
        libcInstall(config["multiarch"])
        pisitools.dosym("../lib32/ld-linux.so.2", "/lib/ld-linux.so.2")
        # FIXME: these should be added as additional file, when we can define pkg per arch
        pisitools.dodir("/etc/ld.so.conf.d")
        shelltools.echo("%s/etc/ld.so.conf.d/60-glibc-32bit.conf" % get.installDIR(), ldconf32bit)

    libcInstall(config["system"])

    # localedata can be shared between archs
    shelltools.cd(config["system"]["builddir"])
    autotools.rawInstall("install_root=%s localedata/install-locales" % get.installDIR())

    # now we do generic stuff
    shelltools.cd(pkgworkdir)

    # We'll take care of the cache ourselves
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        pisitools.remove("/etc/ld.so.cache")

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

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        pisitools.remove("/etc/localtime")

    # Nscd needs this to work
    pisitools.dodir("/var/run/nscd")
    pisitools.dodir("/var/db/nscd")
    
    #we need this headers #2013
    #pisitools.dodir("/usr/include/rpc")
    #pisitools.dodir("/usr/include/rpcsvc")
    #~ shelltools.copy("sunrpc/rpc/*.h","%s/usr/include/rpc" % get.installDIR())
    #~ shelltools.copy("nis/rpcsvc/*.h","%s/usr/include/rpcsvc" % get.installDIR())

    # remove zoneinfo files since they are coming from timezone packages
    # we disable timezone build with a patch, keeping these lines for easier maintenance
    if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()):
        pisitools.removeDir("/usr/share/zoneinfo")

    #while bootstrapping whole system zic should not be removed. timezone package does not build without it. # 2013
    for i in ["zdump"]:
        if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)):
            pisitools.remove("/usr/sbin/%s" % i)


    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS", "PROJECTS", "README*", "LICENSES")
Beispiel #10
0
def install():
    set_variables()
    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS", "PROJECTS", "README*", "LICENSES")
    shelltools.cd("build")

    libdir = "lib" if get.buildTYPE() != "emul32" else "lib32"
    installdir = get.installDIR() if get.buildTYPE() != "emul32" else get.installDIR() + "/emul32"

    autotools.rawInstall("install_root=%s" % installdir)

    if get.buildTYPE() != "emul32":
        autotools.rawInstall("install_root=%s localedata/install-locales" % installdir)

    pisitools.dosym("libbsd-compat.a", "/usr/%s/libbsd.a" % libdir)

    if get.buildTYPE() == "emul32":
        pisitools.dosym("../lib32/ld-linux.so.2", "/lib/ld-linux.so.2")

    removePardusSection("%s/usr/%s/" % (installdir, libdir))

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

    if shelltools.isFile("%s/etc/ld.so.cache" % installdir):
        pisitools.remove("/etc/ld.so.cache")

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % installdir):
        pisitools.remove("/etc/localtime")

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

    # remove zoneinfo files since they are coming from timezone packages
    # we disable timezone build with a patch, keeping these lines for easier maintenance
    if shelltools.isDirectory("%s/usr/share/zoneinfo" % installdir):
        pisitools.removeDir("/usr/share/zoneinfo")

    for i in ["zdump", "zic"]:
        if shelltools.isFile("%s/usr/sbin/%s" % (installdir, i)):
            shelltools.unlink("%s/usr/sbin/%s" % (installdir, i))

    if get.buildTYPE() == "emul32":
        shelltools.move("%s/lib32" % installdir, "%s" % get.installDIR())
        shelltools.move("%s/usr/lib32/*" % installdir, "%s/usr/lib32" % get.installDIR())
        shelltools.move("%s/usr/include/gnu/stubs-32.h" % installdir, "%s/usr/include/" % get.installDIR())
        pisitools.dobin("%s/usr/bin/lddlibc4" % installdir)
        pisitools.dosym("/usr/lib/locale", "/usr/lib32/locale")
        pisitools.removeDir("emul32")
Beispiel #11
0
def install():

    shelltools.cd("build")
    pisitools.dodir("/etc/ld.so.conf.d")
    shelltools.touch("%s/etc/ld.so.conf" % get.installDIR())

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

    if get.buildTYPE() == "emul32":
        pisitools.dosym("/lib32/ld-linux.so.2", "/lib/ld-linux.so.2")

        shelltools.echo(
            "%s/etc/ld.so.conf.d/60-glibc-32bit.conf" % get.installDIR(),
            ldconf32bit)

        pisitools.removeDir("/tmp32")

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        pisitools.remove("/etc/localtime")

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

    # remove zoneinfo files since they are coming from timezone packages
    # we disable timezone build with a patch, keeping these lines for easier maintenance
    if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()):
        pisitools.removeDir("/usr/share/zoneinfo")

    shelltools.cd("..")

    pisitools.insinto("/etc", "nscd/nscd.conf")

    pisitools.insinto("/usr/lib/tmpfiles.d", "nscd/nscd.tmpfiles", "nscd.conf")
    pisitools.insinto("/etc", "posix/gai.conf")

    pisitools.insinto("/etc", "locale.gen")
    shelltools.system(
        "sed -e '1,3d' -e 's|/| |g' -e 's|\\\| |g' -e 's|^|#|g' %s/%s/localedata/SUPPORTED >> %s/etc/locale.gen"
        % (get.workDIR(), get.srcDIR(), get.installDIR()))

    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS",
                    "PROJECTS", "README*", "LICENSES")

    # We'll take care of the cache ourselves
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        pisitools.remove("/etc/ld.so.cache")

    pisitools.remove("/etc/ld.so.conf")
Beispiel #12
0
def install():
    set_variables()
    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "NAMESPACE", "NEWS", "PROJECTS", "README*", "LICENSES")
    shelltools.cd("build")

    libdir = "lib" if get.buildTYPE() != "emul32" else "lib32"
    installdir = get.installDIR() if get.buildTYPE() != "emul32" else get.installDIR() + "/emul32"

    autotools.rawInstall("install_root=%s" % installdir)

    if get.buildTYPE() != "emul32":
        autotools.rawInstall("install_root=%s localedata/install-locales" % installdir)

    pisitools.dosym("libbsd-compat.a", "/usr/%s/libbsd.a" % libdir)

    if get.buildTYPE() == "emul32":
        pisitools.dosym("../lib32/ld-linux.so.2", "/lib/ld-linux.so.2")

    removePardusSection("%s/usr/%s/" % (installdir, libdir))

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

    if shelltools.isFile("%s/etc/ld.so.cache" % installdir):
        pisitools.remove("/etc/ld.so.cache")

    # Prevent overwriting of the /etc/localtime symlink
    if shelltools.isFile("%s/etc/localtime" % installdir):
        pisitools.remove("/etc/localtime")

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

    # remove zoneinfo files since they are coming from timezone packages
    # we disable timezone build with a patch, keeping these lines for easier maintenance
    if shelltools.isDirectory("%s/usr/share/zoneinfo" % installdir):
        pisitools.removeDir("/usr/share/zoneinfo")

    for i in ["zdump", "zic"]:
        if shelltools.isFile("%s/usr/sbin/%s" % (installdir, i)):
            shelltools.unlink("%s/usr/sbin/%s" % (installdir, i))

    if get.buildTYPE() == "emul32":
        shelltools.move("%s/lib32" % installdir,"%s" % get.installDIR())
        shelltools.move("%s/usr/lib32/*" % installdir,"%s/usr/lib32" % get.installDIR())
        shelltools.move("%s/usr/include/gnu/stubs-32.h" % installdir,"%s/usr/include/" % get.installDIR())
        pisitools.dobin("%s/usr/bin/lddlibc4" % installdir)
        pisitools.dosym("/usr/lib/locale","/usr/lib32/locale")
        pisitools.removeDir("emul32")
Beispiel #13
0
def setup():
    # Speed up xkbcomp
    autotools.environment["CFLAGS"] = "%(CFLAGS)s -DHAVE_STRCASECMP" % autotools.environment

    for package in shelltools.ls("."):
        if package.startswith(SkipList):
            continue

        print "Configuring %s..." % package
        shelltools.cd(package)

        if package.startswith("xsm") or not shelltools.isFile("configure"):
            autotools.autoreconf("-vif")

        cache = [ "ac_cv_file__etc_X11_fontpath_d=yes",
                  "ac_cv_file__etc_man_conf=yes",
                  "ac_cv_func_malloc_0_nonnull=yes",
                  "ac_cv_func_calloc_0_nonnull=yes",
                  "ac_cv_func_realloc_0_nonnull=yes" ]

        args = "--disable-dependency-tracking \
                --disable-devel-docs \
                --with-cpp=/usr/bin/mcpp"

        if package.startswith('xfs'):
            args += " --with-default-font-path=/etc/X11/fontpath.d"

        autotools.configure("%s" % args, cache=cache)
        shelltools.cd("../")
Beispiel #14
0
def install():
    pisitools.dobin("abicheck")
    if shelltools.isFile(dbFortify):
        pisitools.insinto("/usr/share/abicheck/", dbFortify)

    pisitools.doman("abicheck.1")
    pisitools.dodoc("COPYING", "ChangeLog", "INTRO", "README", )
Beispiel #15
0
def install():
    pisitools.dobin("abicheck")
    if shelltools.isFile(dbFortify):
        pisitools.insinto("/usr/share/abicheck/", dbFortify)

    pisitools.doman("abicheck.1")
    pisitools.dodoc("COPYING", "ChangeLog", "INTRO", "README", )
Beispiel #16
0
def install():
    autotools.rawInstall("DESTDIR=%s distro-pack-install -o build -o check" % get.installDIR())
    
    pisitools.insinto("/usr/share/pixmaps/", "android/experimental/GSoC-2012-eclipse-workspace/LibreOfficeUI/res/drawable-hdpi/base.png", "libreoffice-base.png")
    pisitools.insinto("/usr/share/pixmaps/", "android/experimental/GSoC-2012-eclipse-workspace/LibreOfficeUI/res/drawable-hdpi/calc.png", "libreoffice-calc.png")
    pisitools.insinto("/usr/share/pixmaps/", "android/experimental/GSoC-2012-eclipse-workspace/LibreOfficeUI/res/drawable-hdpi/draw.png", "libreoffice-draw.png")
    pisitools.insinto("/usr/share/pixmaps/", "android/experimental/GSoC-2012-eclipse-workspace/LibreOfficeUI/res/drawable-hdpi/impress.png", "libreoffice-impress.png")
    pisitools.insinto("/usr/share/pixmaps/", "android/experimental/GSoC-2012-eclipse-workspace/LibreOfficeUI/res/drawable-hdpi/main.png", "libreoffice-main.png")
    pisitools.insinto("/usr/share/pixmaps/", "android/experimental/GSoC-2012-eclipse-workspace/LibreOfficeUI/res/drawable-hdpi/math.png", "libreoffice-math.png")
    pisitools.insinto("/usr/share/pixmaps/", "android/experimental/GSoC-2012-eclipse-workspace/LibreOfficeUI/res/drawable-hdpi/startcenter.png", "libreoffice-startcenter.png")
    pisitools.insinto("/usr/share/pixmaps/", "android/experimental/GSoC-2012-eclipse-workspace/LibreOfficeUI/res/drawable-hdpi/writer.png", "libreoffice-writer.png")

    if not shelltools.isDirectory(langpackpath): shelltools.makedirs(langpackpath)
    else: shelltools.unlinkDir(langpackpath)
    for l in langs.split(" "):
        if l == "en-US": continue
        print("processing: %s" % l)
        for ld in ldirs:
            srcd = "%s%s" % (get.installDIR(), ld % l)
            dstd = "%s%s" % (langpackpath, ld % l)
            if shelltools.isDirectory(srcd):
                if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                shelltools.move(srcd, dstd)

        srcf = "%s/usr/share/doc/libreoffice/README_%s" % (get.installDIR(), l)
        dstd = "%s/usr/share/doc/libreoffice" % langpackpath
        dstf = "%s/README_%s" % (dstd, l)
        if shelltools.isFile(srcf):
            if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
            shelltools.move(srcf, dstf)

        srcd = "%s/usr/lib/libreoffice/program/resource" % get.installDIR()
        dstd = "%s/usr/lib/libreoffice/program/resource" % langpackpath
        for f in os.listdir(srcd):
            if l == "id" and f.endswith("s%s.res" % l): continue
            elif l == "st" and f.endswith("a%s.res" % l): continue
            elif f.endswith("%s.res" % l):
                if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                shelltools.move("%s/%s" % (srcd, f), dstd)

        for path in ("/usr/lib/libreoffice/share/registry", "/usr/lib/libreoffice/share/registry/res"):
            srcd = "%s%s" % (get.installDIR(), path)
            dstd = "%s%s" % (langpackpath, path)
            for f in os.listdir(srcd):
                if l == "id" and f.endswith("s%s.xcd" % l): continue
                elif l == "ss" and f == "impress.xcd": continue
                elif l == "st" and f.endswith("a%s.xcd" % l): continue
                elif l == "th" and f == "math.xcd": continue
                elif f.endswith("%s.xcd" % l):
                    if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                    shelltools.move("%s/%s" % (srcd, f), dstd)

    for i in ["readmes/README_*", "CREDITS*", "LICENSE*", "NOTICE*"]:
        pisitools.domove("/usr/lib/libreoffice/%s" % i, "/usr/share/doc/libreoffice")
    pisitools.removeDir("/usr/lib/libreoffice/readmes")

    print("creating: %s.tar.xz" % langpackdir)
    shelltools.cd("%s/../" % get.installDIR())
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((langpackdir, )*2))
Beispiel #17
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)
Beispiel #18
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)
Beispiel #19
0
def install():
    shelltools.system('rake install DESTDIR="%s"' % get.installDIR())

    for f in ["examples", "doc/mkvmerge-gui.html", "doc/images"]:
        if shelltools.isFile(f) or shelltools.isDirectory(f):
            pisitools.insinto(docdir, f)

    pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO")
Beispiel #20
0
def setup():
    if not shelltools.isFile(BinName):
        shelltools.system('/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %s %s  --header "Cookie:oraclelicensejdk-%s-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"' % (BinName, UrlName, Name))
    hash = run_batch("cat jdk-6u34-linux-%s.bin.sha1" % Arch)[1].split()[0]
    if not check_file_hash(BinName, hash): raise Error("Wrong sha1sum.")
    shelltools.makedirs("unbundle-jdk")
    shelltools.cd("unbundle-jdk")
    shelltools.system("sh ../%s --noregister" % BinName)
Beispiel #21
0
def setup():
    for i in shelltools.ls("."):
        if shelltools.isDirectory(i) and shelltools.isFile("%s/Makefile.am" % i):
            pisitools.dosed("%s/Makefile.am" % i, "-Werror")

    autotools.autoreconf("-fi")

    autotools.configure("--enable-python --disable-debug --enable-engine --enable-tools")
Beispiel #22
0
def install():
	shelltools.system('rake install DESTDIR="%s"' % get.installDIR())
	
	for f in ["examples", "doc/mkvmerge-gui.html", "doc/images"]:
		if shelltools.isFile(f) or shelltools.isDirectory(f):
			pisitools.insinto(docdir, f)
			
	pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO")
Beispiel #23
0
def install():
    undef_variables()
    installdir = get.installDIR()

    # install glibc/glibc-locale files
    shelltools.cd("build")
    crosstools.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
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        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
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        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", "NEWS",
                    "NOTES", "PROJECTS", "README*", "LICENSES")

    # remove zoneinfo files since they are coming from timezone packages
    pisitools.removeDir("/usr/share/zoneinfo")

    for i in ["zdump", "zic"]:
        pisitools.remove("/usr/sbin/%s" % i)

    # absolute-path problems with cross-compiling
    # libpthread.so, libc.so
    for lib in ["c", "pthread"]:
        lib = "%s/usr/lib/lib%s.so" % (installdir, lib)
        pisitools.dosed(lib, r"\s*(\/usr\/lib\/)(\S*)",
                        " \\2" % crosstools.environment)
        pisitools.dosed(lib, r"\s*(\/lib\/\S*)",
                        " ../..\\1" % crosstools.environment)
Beispiel #24
0
def setup():
    if not shelltools.isFile(Archive):
        shelltools.system(
            '/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %s %s  --header "Cookie:oraclelicensejdk-%s-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"'
            % (Archive, Url, Ver))
    hash = run_batch("cat %s.sha1" % Arch)[1].split()[0]
    if not check_file_hash(Archive, hash): raise Error("Wrong sha1sum.")
    shelltools.system("tar -xzf %s" % Archive)
Beispiel #25
0
def install():
    autotools.install()

    #verMINOR = getMinorVersion()
    #pisitools.dosym("libx264.so.%s.%s" % (verMAJOR, verMINOR), "/usr/lib/libx264.so.%s" % verMAJOR)

    # No static libs
    if shelltools.isFile("%s/%s" % (get.installDIR(), staticlibfile)):
        pisitools.remove(staticlibfile)
Beispiel #26
0
def install():
    autotools.rawInstall("DESTDIR=%s distro-pack-install -o build -o check" %
                         get.installDIR())

    if not shelltools.isDirectory(langpackpath):
        shelltools.makedirs(langpackpath)
    else:
        shelltools.unlinkDir(langpackpath)
    for l in langs.split(" "):
        if l == "en-US": continue
        print("processing: %s" % l)
        for ld in ldirs:
            srcd = "%s%s" % (get.installDIR(), ld % l)
            dstd = "%s%s" % (langpackpath, ld % l)
            if shelltools.isDirectory(srcd):
                if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                shelltools.move(srcd, dstd)

        srcf = "%s/usr/share/doc/libreoffice/README_%s" % (get.installDIR(), l)
        dstd = "%s/usr/share/doc/libreoffice" % langpackpath
        dstf = "%s/README_%s" % (dstd, l)
        if shelltools.isFile(srcf):
            if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
            shelltools.move(srcf, dstf)

        srcd = "%s/usr/lib/libreoffice/program/resource" % get.installDIR()
        dstd = "%s/usr/lib/libreoffice/program/resource" % langpackpath
        for f in os.listdir(srcd):
            if l == "id" and f.endswith("s%s.res" % l): continue
            elif l == "st" and f.endswith("a%s.res" % l): continue
            elif f.endswith("%s.res" % l):
                if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                shelltools.move("%s/%s" % (srcd, f), dstd)

        for path in ("/usr/lib/libreoffice/share/registry",
                     "/usr/lib/libreoffice/share/registry/res"):
            srcd = "%s%s" % (get.installDIR(), path)
            dstd = "%s%s" % (langpackpath, path)
            for f in os.listdir(srcd):
                if l == "id" and f.endswith("s%s.xcd" % l): continue
                elif l == "ss" and f == "impress.xcd": continue
                elif l == "st" and f.endswith("a%s.xcd" % l): continue
                elif l == "th" and f == "math.xcd": continue
                elif f.endswith("%s.xcd" % l):
                    if not shelltools.isDirectory(dstd):
                        shelltools.makedirs(dstd)
                    shelltools.move("%s/%s" % (srcd, f), dstd)

    for i in ["readmes/README_*", "CREDITS*", "LICENSE*", "NOTICE*"]:
        pisitools.domove("/usr/lib/libreoffice/%s" % i,
                         "/usr/share/doc/libreoffice")
    pisitools.removeDir("/usr/lib/libreoffice/readmes")

    print("creating: %s.tar.xz" % langpackdir)
    shelltools.cd("%s/../" % get.installDIR())
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((langpackdir, ) * 2))
Beispiel #27
0
def install():
    autotools.rawInstall("DESTDIR=%s distro-pack-install -o build -o check" % get.installDIR())

    #kill rpath bombs, strip unstripped shared libararies
    shelltools.system("strip --strip-unneeded %s/usr/lib/libreoffice/program/librdf-lo.so.0" % get.installDIR())
    shelltools.system("strip --strip-unneeded %s/usr/lib/libreoffice/program/librasqal-lo.so.3" % get.installDIR())   
    pisitools.dosed("/usr/lib/libreoffice/share/xdg/math.desktop", "Categories=Office;Education;Science;Math;X-Red-Hat-Base;X-MandrivaLinux-Office-Other;", "Categories=Office;")
    pisitools.dosed("/usr/lib/libreoffice/share/xdg/draw.desktop", "Categories=Office;Education;Science;Math;X-Red-Hat-Base;X-MandrivaLinux-Office-Other;", "Categories=Office;")

    if not shelltools.isDirectory(langpackpath): shelltools.makedirs(langpackpath)
    else: shelltools.unlinkDir(langpackpath)
    for l in langs.split(" "):
        if l == "en-US": continue
        print("processing: %s" % l)
        for ld in ldirs:
            srcd = "%s%s" % (get.installDIR(), ld % l)
            dstd = "%s%s" % (langpackpath, ld % l)
            if shelltools.isDirectory(srcd):
                if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                shelltools.move(srcd, dstd)

        srcf = "%s/usr/share/doc/libreoffice/README_%s" % (get.installDIR(), l)
        dstd = "%s/usr/share/doc/libreoffice" % langpackpath
        dstf = "%s/README_%s" % (dstd, l)
        if shelltools.isFile(srcf):
            if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
            shelltools.move(srcf, dstf)

        srcd = "%s/usr/lib/libreoffice/program/resource" % get.installDIR()
        dstd = "%s/usr/lib/libreoffice/program/resource" % langpackpath
        for f in os.listdir(srcd):
            if l == "id" and f.endswith("s%s.res" % l): continue
            elif l == "st" and f.endswith("a%s.res" % l): continue
            elif f.endswith("%s.res" % l):
                if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                shelltools.move("%s/%s" % (srcd, f), dstd)

        for path in ("/usr/lib/libreoffice/share/registry", "/usr/lib/libreoffice/share/registry/res"):
            srcd = "%s%s" % (get.installDIR(), path)
            dstd = "%s%s" % (langpackpath, path)
            for f in os.listdir(srcd):
                if l == "id" and f.endswith("s%s.xcd" % l): continue
                elif l == "ss" and f == "impress.xcd": continue
                elif l == "st" and f.endswith("a%s.xcd" % l): continue
                elif l == "th" and f == "math.xcd": continue
                elif f.endswith("%s.xcd" % l):
                    if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                    shelltools.move("%s/%s" % (srcd, f), dstd)

    for i in ["readmes/README_*", "CREDITS*", "LICENSE*", "NOTICE*"]:
        pisitools.domove("/usr/lib/libreoffice/%s" % i, "/usr/share/doc/libreoffice")
    pisitools.removeDir("/usr/lib/libreoffice/readmes")

    print("creating: %s.tar.xz" % langpackdir)
    shelltools.cd("%s/../" % get.installDIR())
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((langpackdir, )*2))
Beispiel #28
0
def install():
    autotools.rawInstall('DESTDIR="%s" STRIP="true"' % get.installDIR())

    for f in ["examples", "doc/mkvmerge-gui.html", "doc/images"]:
        if shelltools.isFile(f) or shelltools.isDirectory(f):
            pisitools.insinto(docdir, f)

    # pisitools.insinto("/usr/share/pixmaps", "src/mmg/matroskalogo_big.xpm", "mmg.xpm")

    pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO")
Beispiel #29
0
def setup():
    if not shelltools.isFile(BinName):
        shelltools.system(
            '/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %s %s  --header "Cookie:oraclelicensejdk-%s-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"'
            % (BinName, UrlName, Name))
    hash = run_batch("cat jdk-6u34-linux-%s.bin.sha1" % Arch)[1].split()[0]
    if not check_file_hash(BinName, hash): raise Error("Wrong sha1sum.")
    shelltools.makedirs("unbundle-jdk")
    shelltools.cd("unbundle-jdk")
    shelltools.system("sh ../%s --noregister" % BinName)
Beispiel #30
0
def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                                  "%s/%s" % (path, doc))
Beispiel #31
0
def install():
    autotools.rawInstall('DESTDIR="%s" STRIP="true"' % get.installDIR())

    for f in ["examples", "doc/mkvmerge-gui.html", "doc/images"]:
        if shelltools.isFile(f) or shelltools.isDirectory(f):
            pisitools.insinto(docdir, f)

    # pisitools.insinto("/usr/share/pixmaps", "src/mmg/matroskalogo_big.xpm", "mmg.xpm")

    pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO")
Beispiel #32
0
def install():
    autotools.install()

    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                                  "%s/%s" % (path, doc))

    pisitools.dodoc("ChangeLog", "README")
Beispiel #33
0
def install():
    undef_variables()
    installdir = get.installDIR()

    # install glibc/glibc-locale files
    shelltools.cd("build")
    crosstools.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
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        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
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        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", "NEWS", "NOTES", "PROJECTS", "README*", "LICENSES")

    # remove zoneinfo files since they are coming from timezone packages
    pisitools.removeDir("/usr/share/zoneinfo")

    for i in ["zdump", "zic"]:
        pisitools.remove("/usr/sbin/%s" % i)

    # absolute-path problems with cross-compiling
    # libpthread.so, libc.so
    for lib in [ "c", "pthread" ]:
        lib = "%s/usr/lib/lib%s.so" % (installdir, lib)
        pisitools.dosed(lib, r"\s*(\/usr\/lib\/)(\S*)", " \\2" % crosstools.environment)
        pisitools.dosed(lib, r"\s*(\/lib\/\S*)", " ../..\\1" % crosstools.environment)
Beispiel #34
0
def install():
    shelltools.cd("x86_64")
    pisitools.insinto("/usr","usr/*")
    pisitools.domove("/usr/lib/x86_64-linux-gnu/opera","/usr/lib")
    pisitools.removeDir("/usr/lib/x86_64-linux-gnu")
    pisitools.removeDir("/usr/share/lintian")
    pisitools.remove("/usr/bin/opera")
    pisitools.dosym("/usr/lib/opera/opera","/usr/bin/opera")
    if not shelltools.isFile("/usr/lib/libudev.so.0"):
        pisitools.dosym("/usr/lib/libudev.so","/usr/lib/opera/lib/libudev.so.0")
    shelltools.system("chmod 4755 %s/usr/lib/opera/opera_sandbox" % get.installDIR())
Beispiel #35
0
def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto(
                    "%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                    "%s/%s" % (path, doc))
Beispiel #36
0
def setup():
    for i in shelltools.ls("."):
        if shelltools.isDirectory(i) and shelltools.isFile("%s/Makefile.am" % i):
            pisitools.dosed("%s/Makefile.am" % i, "-Werror")

    autotools.autoreconf("-fi")

    #Do not create pyo/pyc
    pisitools.dosed("wrapper/Makefile.in", "^py_compile.*=.*", "py_compile = /bin/true")

    autotools.configure("--enable-python --disable-debug --enable-engine --enable-tools")
Beispiel #37
0
def install():
    autotools.install()

    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto(
                    "%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                    "%s/%s" % (path, doc))

    pisitools.dodoc("ChangeLog", "README")
Beispiel #38
0
def install():
    autotools.install()

    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                                  "%s/%s" % (path, doc))

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

    pisitools.dosym("/usr/lib/libwebkitgtk-3.0.so", "/usr/lib/libwebkit-1.0.so.2")
Beispiel #39
0
def setup():
    shelltools.cd("autoconf")
    autotools.autoconf()
    autotools.autoheader()

    for i in ["configure", "defs.h.in"]:
        if shelltools.isFile("../%s" % i):
            shelltools.unlink("../%s" % i)
        shelltools.copy(i, "../")

    shelltools.cd("..")
    autotools.configure('--libdir="/lib" CFLAGS="%s -fPIC"' % get.CFLAGS())
Beispiel #40
0
def setup():
    shelltools.cd("autoconf")
    autotools.autoconf()
    autotools.autoheader()

    for i in ["configure", "defs.h.in"]:
        if shelltools.isFile("../%s" % i):
            shelltools.unlink("../%s" % i)
        shelltools.copy(i, "../")

    shelltools.cd("..")
    autotools.configure('--libdir="/lib" CFLAGS="%s -fPIC"' % get.CFLAGS())
Beispiel #41
0
def install():
    autotools.rawInstall("-j1 DESTDIR=%s" % get.installDIR())

    pisitools.domove("/usr/share/gtk-doc/html", "/usr/share/doc/webkit-gtk2")

    pisitools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                                  "%s/%s" % (path, doc))
Beispiel #42
0
def install():
    autotools.rawInstall("-j1 DESTDIR=%s" % get.installDIR())

    pisitools.domove("/usr/share/gtk-doc/html", "/usr/share/doc/webkit-gtk3")

    pisitools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto(
                    "%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                    "%s/%s" % (path, doc))
Beispiel #43
0
def install():
    pisitools.insinto("/usr/bin", "%s/ioq3ded.i386" % builddir, "openarena-server")
    pisitools.insinto("/usr/bin", "%s/ioquake3.i386" % builddir, "openarena")
    pisitools.insinto("/usr/bin", "%s/ioquake3-smp.i386" % builddir, "openarena-smp")

    for f in shelltools.ls(sodir):
        sof = "%s/%s" % (sodir, f)
        if f.endswith(".so") and shelltools.isFile(sof):
            shelltools.chmod(sof, 0755)
            pisitools.dobin(sof, "%s/baseq3/" % datadir)

    pisitools.insinto("/usr/share/pixmaps", "code/unix/quake3.png", "openarena.png")
    pisitools.dodoc("BUGS", "ChangeLog", "NOTTODO", "TODO", "README", "*.txt", "code/unix/LinuxSupport/*")
Beispiel #44
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
    if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()):
        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
    if shelltools.isFile("%s/etc/localtime" % get.installDIR()):
        pisitools.remove("/etc/localtime")

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

    shelltools.cd("..")

    # remove zoneinfo files since they are coming from timezone packages
    # we disable timezone build with a patch, keeping these lines for easier maintenance
    if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()):
        pisitools.removeDir("/usr/share/zoneinfo")

    for i in ["zdump", "zic"]:
        if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)):
            pisitools.remove("/usr/sbin/%s" % i)

    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "FAQ", "NEWS", "NOTES", "PROJECTS", "README*", "LICENSES")
Beispiel #45
0
def install():
    autotools.rawInstall("-j1 DESTDIR=%s" % get.installDIR())

    # remove empty dir
    pisitools.removeDir("usr/libexec")

    pisitools.domove("/usr/share/gtk-doc/html/webkitgtk", "/usr/share/gtk-doc/html/webkitgtk3")

    pisitools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path), "%s/%s" % (path, doc))
Beispiel #46
0
def install():
    autotools.install()

    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto(
                    "%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                    "%s/%s" % (path, doc))

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

    pisitools.dosym("/usr/lib/libwebkitgtk-3.0.so",
                    "/usr/lib/libwebkit-1.0.so.2")
Beispiel #47
0
def install():
    autotools.rawInstall("DESTDIR=%s distro-pack-install -o build -o check" % get.installDIR())

    if not shelltools.isDirectory(langpackpath): shelltools.makedirs(langpackpath)
    else: shelltools.unlinkDir(langpackpath)
    for l in langs.split(" "):
        if l == "en-US": continue
        print("processing: %s" % l)
        for ld in ldirs:
            srcd = "%s%s" % (get.installDIR(), ld % l)
            dstd = "%s%s" % (langpackpath, ld % l)
            if shelltools.isDirectory(srcd):
                if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                shelltools.move(srcd, dstd)

        srcf = "%s/usr/share/doc/libreoffice/README_%s" % (get.installDIR(), l)
        dstd = "%s/usr/share/doc/libreoffice" % langpackpath
        dstf = "%s/README_%s" % (dstd, l)
        if shelltools.isFile(srcf):
            if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
            shelltools.move(srcf, dstf)

        srcd = "%s/usr/lib/libreoffice/program/resource" % get.installDIR()
        dstd = "%s/usr/lib/libreoffice/program/resource" % langpackpath
        for f in os.listdir(srcd):
            if l == "id" and f.endswith("s%s.res" % l): continue
            elif l == "st" and f.endswith("a%s.res" % l): continue
            elif f.endswith("%s.res" % l):
                if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                shelltools.move("%s/%s" % (srcd, f), dstd)

        for path in ("/usr/lib/libreoffice/share/registry", "/usr/lib/libreoffice/share/registry/res"):
            srcd = "%s%s" % (get.installDIR(), path)
            dstd = "%s%s" % (langpackpath, path)
            for f in os.listdir(srcd):
                if l == "id" and f.endswith("s%s.xcd" % l): continue
                elif l == "ss" and f == "impress.xcd": continue
                elif l == "st" and f.endswith("a%s.xcd" % l): continue
                elif l == "th" and f == "math.xcd": continue
                elif f.endswith("%s.xcd" % l):
                    if not shelltools.isDirectory(dstd): shelltools.makedirs(dstd)
                    shelltools.move("%s/%s" % (srcd, f), dstd)

    for i in ["readmes/README_*", "CREDITS*", "LICENSE*", "NOTICE*"]:
        pisitools.domove("/usr/lib/libreoffice/%s" % i, "/usr/share/doc/libreoffice")
    pisitools.removeDir("/usr/lib/libreoffice/readmes")

    print("creating: %s.tar.xz" % langpackdir)
    shelltools.cd("%s/../" % get.installDIR())
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((langpackdir, )*2))
Beispiel #48
0
def setup():
    for i in shelltools.ls("."):
        if shelltools.isDirectory(i) and shelltools.isFile(
                "%s/Makefile.am" % i):
            pisitools.dosed("%s/Makefile.am" % i, "-Werror")

    autotools.autoreconf("-fi")

    #Do not create pyo/pyc
    pisitools.dosed("wrapper/Makefile.in", "^py_compile.*=.*",
                    "py_compile = /bin/true")

    autotools.configure(
        "--enable-python --disable-debug --enable-engine --enable-tools")
Beispiel #49
0
def install():
    autotools.rawInstall('DESTDIR="%s"' % get.installDIR())

    # These come from binutils
    pisitools.removeDir("/usr/include")

    for f in shelltools.ls("%s/usr/lib/" % get.installDIR()):
        if shelltools.isFile("%s/usr/lib/%s" % (get.installDIR(), f)):
            pisitools.remove("/usr/lib/%s" % f)

    # these are not necessary
    for info in ["bfd", "configure", "standards"]:
        pisitools.remove("/usr/share/info/%s.info" % info)

    pisitools.dodoc("README*", "MAINTAINERS", "COPYING*", "ChangeLog*")
Beispiel #50
0
def install():
    autotools.rawInstall('DESTDIR="%s"' % get.installDIR())

    # These come from binutils
    pisitools.removeDir("/usr/include")

    for f in shelltools.ls("%s/usr/lib/" % get.installDIR()):
        if shelltools.isFile("%s/usr/lib/%s" % (get.installDIR(), f)):
            pisitools.remove("/usr/lib/%s" % f)

    # these are not necessary
    for info in ["bfd","configure","standards"]:
        pisitools.remove("/usr/share/info/%s.info" % info)

    pisitools.dodoc("README*", "MAINTAINERS", "COPYING*", "ChangeLog*")
Beispiel #51
0
def install():
    pisitools.insinto("/usr/share/pixmaps", "misc/tremulous.xpm")
    pisitools.dodir("%s/base" % datadir)

    shelltools.move("%s/tremulous.x86" % builddir, "%s/tremulous" % builddir)
    shelltools.move("%s/tremded.x86" % builddir, "%s/tremulous-server" % builddir)

    for f in ["tremulous", "tremulous-server"]:
        shelltools.chmod("%s/%s" % (builddir, f), 0755)
        pisitools.dobin("%s/%s" % (builddir, f))

    for f in shelltools.ls("%s/base/" % builddir):
        if f.endswith(".so") and shelltools.isFile("%s/base/%s" % (builddir, f)):
            shelltools.chmod("%s/base/%s" % (builddir, f), 0755)
            pisitools.dobin("%s/base/%s" % (builddir, f), "%s/base/" % datadir)
Beispiel #52
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.doman("doc/man/man3/*.3")
    pisitools.dohtml("doc/html/*")
    pisitools.dodoc("README")

    for i in shelltools.ls("doc/*"):
        if shelltools.isFile(i):
            pisitools.dodoc(i)

    pisitools.dodir(exampledir)
    for i in shelltools.ls("sample/*"):
        if i.endswith(".h") or i.endswith(".c"):
            pisitools.insinto(exampledir, i)
Beispiel #53
0
def install():
    autotools.rawInstall("-j1 DESTDIR=%s" % get.installDIR())

    # remove empty dir
    pisitools.removeDir("usr/libexec")

    pisitools.domove("/usr/share/gtk-doc/html/webkitgtk", "/usr/share/gtk-doc/html/webkitgtk2")

    pisitools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                pisitools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                                  "%s/%s" % (path, doc))
Beispiel #54
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.doman("doc/man/man3/*.3")
    pisitools.dohtml("doc/html/*")
    pisitools.dodoc("README")

    for i in shelltools.ls("doc/*"):
        if shelltools.isFile(i):
            pisitools.dodoc(i)

    pisitools.dodir(exampledir)
    for i in shelltools.ls("sample/*"):
        if i.endswith(".h") or i.endswith(".c"):
            pisitools.insinto(exampledir, i)
Beispiel #55
0
def install():
    pisitools.insinto("/usr/bin", "%s/ioq3ded.i386" % builddir,
                      "openarena-server")
    pisitools.insinto("/usr/bin", "%s/ioquake3.i386" % builddir, "openarena")
    pisitools.insinto("/usr/bin", "%s/ioquake3-smp.i386" % builddir,
                      "openarena-smp")

    for f in shelltools.ls(sodir):
        sof = "%s/%s" % (sodir, f)
        if f.endswith(".so") and shelltools.isFile(sof):
            shelltools.chmod(sof, 0755)
            pisitools.dobin(sof, "%s/baseq3/" % datadir)

    pisitools.insinto("/usr/share/pixmaps", "code/unix/quake3.png",
                      "openarena.png")
    pisitools.dodoc("BUGS", "ChangeLog", "NOTTODO", "TODO", "README", "*.txt",
                    "code/unix/LinuxSupport/*")
Beispiel #56
0
def setup():
    # Speed up xkbcomp
    shelltools.export("CFLAGS", "%s -DHAVE_STRCASECMP" % get.CFLAGS())

    for package in shelltools.ls("."):
        if package.startswith(SkipList):
            continue

        print "Configuring %s..." % package
        shelltools.cd(package)

        if package.startswith("xsm") or not shelltools.isFile("configure"):
            autotools.autoreconf("-vif")

        autotools.configure("--disable-dependency-tracking \
                             --disable-devel-docs \
                             --with-cpp=/usr/bin/mcpp")
        shelltools.cd("../")