Esempio n. 1
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.remove("/usr/bin/perl")
    # Conflicts with perl-Module-Build
    # inarytools.remove("/usr/bin/config_data")

    inarytools.dosym("/usr/bin/perl%s" % get.srcVERSION(), "/usr/bin/perl")

    # Perl5 library
    # NEEDS MODIFICATION FOR NEW VERSION
    inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so")
    inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5")
    inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5.26")
    inarytools.dosym("/usr/lib/perl5/%s/%s-linux-thread-multi/CORE/libperl.so.%s" % (get.srcVERSION(), get.ARCH(), get.srcVERSION()), "/usr/lib/libperl.so.5.26.1")

    # Docs
    inarytools.dodir("/usr/share/doc/%s/html" % get.srcNAME())
    shelltools.system('LD_LIBRARY_PATH=%s ./perl installhtml \
                       --podroot="." \
                       --podpath="lib:ext:pod:vms" \
                       --recurse \
                       --htmldir="%s/usr/share/doc/%s/html"' % (get.curDIR(), get.installDIR(), get.srcNAME()))

    perlmodules.removePodfiles()
    perlmodules.removePacklist()
    inarytools.dodoc("Changes*", "Artistic", "Copying", "README", "AUTHORS")
Esempio n. 2
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # binutils installs this infopage
    inarytools.remove("/usr/share/info/standards.info")

    inarytools.dodoc("AUTHORS", "BUGS", "ChangeLog*", "NEWS", "README")
Esempio n. 3
0
def install():
    suffix = __getSuffix()

    # Dump kernel version under /etc/kernel
    dumpVersion()

    # Install kernel image
    inarytools.insinto("/boot/", "arch/x86/boot/bzImage",
                       "kernel-{}".format(suffix))

    # Install the modules
    # mod-fw= avoids firmwares from installing
    # Override DEPMOD= to not call depmod as it will be called
    # during module-init-tools' package handler
    autotools.rawInstall("INSTALL_MOD_PATH={}/".format(get.installDIR()),
                         "DEPMOD=/bin/true modules_install mod-fw=")

    # Remove symlinks first
    inarytools.remove("/lib/modules/{}/source".format(suffix))
    inarytools.remove("/lib/modules/{}/build".format(suffix))

    # Install Module.symvers and System.map here too
    shutil.copy("Module.symvers",
                "{0}/lib/modules/{1}/".format(get.installDIR(), suffix))
    shutil.copy("System.map",
                "{0}/lib/modules/{1}/".format(get.installDIR(), suffix))

    # Create extra/ and updates/ subdirectories
    for _dir in ("extra", "updates"):
        inarytools.dodir("/lib/modules/{0}/{1}".format(suffix, _dir))
Esempio n. 4
0
def install():
    if get.buildTYPE() == "emul32":
        autotools.make("install.all GLEW_DEST=%s/usr/ \
                              INCDIR=%s/emul32 \
                              BINDIR=%s/emul32 \
                              LIBDIR=%s/usr/lib32 \
                              PKGDIR=%s/usr/lib32/pkgconfig" %
                       (get.installDIR(), get.installDIR(), get.installDIR(),
                        get.installDIR(), get.installDIR()))

        inarytools.remove("/usr/lib32/libGLEW.a")
        inarytools.dosed("%s/usr/lib32/pkgconfig/glew.pc" % get.installDIR(),
                         "/usr/lib", "/usr/lib32")
        inarytools.removeDir("/emul32")
        return

    autotools.make("install.all GLEW_DEST=%s/usr/ \
                          INCDIR=%s/usr/include/GL \
                          BINDIR=%s/usr/bin \
                          LIBDIR=%s/usr/lib" %
                   (get.installDIR(), get.installDIR(), get.installDIR(),
                    get.installDIR()))

    inarytools.dobin("bin/glewinfo")
    inarytools.dobin("bin/visualinfo")

    inarytools.dohtml("doc/*")
    inarytools.dodoc("README.md", "doc/*.txt", "LICENSE.txt")
Esempio n. 5
0
def install():
    shelltools.export("GOROOT_FINAL", "/usr/lib/go")
    shelltools.cd("%s/go-go1.13.4" % get.workDIR())

    inarytools.dodir("/usr/lib/go")
    shelltools.system("cp -r api bin doc lib pkg src  %s/usr/lib/go" % get.installDIR())
    shelltools.system("chown -R  root:root %s/usr" % get.installDIR())

    inarytools.dosym("/usr/lib/go/bin/go", "/usr/bin/go")
    inarytools.dosym("/usr/lib/go/bin/gofmt", "/usr/bin/gofmt")

    inarytools.dosym("/usr/lib/go/doc", "/usr/share/doc/%s/doc" % get.srcNAME())
    inarytools.dosym("/usr/lib/go/api", "/usr/share/doc/%s/api" % get.srcNAME())

    shelltools.system("cp -r misc  %s/usr/lib/go" % get.installDIR())

    # remove testdata, which hit cave fix-linkage
    inarytools.remove("/usr/lib/go/src/debug/elf/testdata/gcc-386-freebsd-exec")
    inarytools.removeDir("/usr/lib/go/pkg/obj")

    # dirty fix thanks @erturk
    inarytools.removeDir("/usr/lib/go/pkg/linux_amd64")


    inarytools.dodoc("VERSION", "LICENSE", "PATENTS", "README*", "AUTHORS", "CONTRIBUTORS")
Esempio n. 6
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    #workaround to run gnome-shell
    inarytools.remove("/usr/lib/girepository-1.0/GConf-2.0.typelib")

    inarytools.dodoc("README", "COPYING", "TODO", "NEWS", "ChangeLog", "AUTHORS")
Esempio n. 7
0
def install():
    if get.buildTYPE()=="emul32":
        autotools.rawInstall("PREFIX=%s/emul32/usr" % get.installDIR())
        inarytools.dolib("libbz2.so.%s" % libversion, "/lib32")
        inarytools.dosym("libbz2.so.%s" % libversion, "/lib32/libbz2.so")
        inarytools.dosym("libbz2.so.%s" % libversion, "/lib32/libbz2.so.1")
        inarytools.dosym("libbz2.so.%s" % libversion, "/lib32/libbz2.so.1.0")

        return
    autotools.rawInstall("PREFIX=%s/usr" % get.installDIR())

    # No static libs
    inarytools.removeDir("/usr/lib")
    inarytools.domove("/usr/bin/", "/")
    inarytools.domove("/usr/man", "/usr/share")

    for link in ("/bin/bunzip2", "/bin/bzcat"):
        inarytools.remove(link)
        inarytools.dosym("bzip2", link)

    for wrong_link in ("/bin/bzcmp", "/bin/bzegrep", "/bin/bzfgrep", "/bin/bzless"):
        inarytools.remove(wrong_link)

    inarytools.dosym("bzgrep", "/bin/bzegrep")
    inarytools.dosym("bzgrep", "/bin/bzfgrep")
    inarytools.dosym("bzdiff", "/bin/bzcmp")
    inarytools.dosym("bzmore", "/bin/bzless")

    inarytools.dolib("libbz2.so.%s" % libversion, "/lib")
    inarytools.dosym("libbz2.so.%s" % libversion, "/lib/libbz2.so")
    inarytools.dosym("libbz2.so.%s" % libversion, "/lib/libbz2.so.1")
    inarytools.dosym("libbz2.so.%s" % libversion, "/lib/libbz2.so.1.0")

    inarytools.dohtml("manual.html")
    inarytools.dodoc("README", "CHANGES", "bzip2.txt")
Esempio n. 8
0
def install():
    perlmodules.install()

    inarytools.remove("/usr/share/man/man3/WWW::RobotRules::AnyDBM_File.3pm")
    inarytools.remove("/usr/share/man/man3/WWW::RobotRules.3pm")

    inarytools.dodoc("Changes", "MANIFEST", "README")
Esempio n. 9
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    inarytools.removeDir("/var")
    inarytools.remove("/usr/bin/rarian-example")

    inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README",
                     "MAINTAINERS")
Esempio n. 10
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    inarytools.removeDir("/usr/share/locale")
    for i in ["/usr/bin/wx-config","/usr/bin/wxrc","/usr/share/aclocal/wxwin.m4","/usr/share/bakefile/presets/wx_unix.bkl","/usr/share/bakefile/presets/wx.bkl","/usr/share/bakefile/presets/wx_presets.py","/usr/share/bakefile/presets/wx_xrc.bkl","/usr/share/bakefile/presets/wx_win32.bkl"]:
        inarytools.remove(i)

    inarytools.dodoc("docs/*.txt", "docs/*.htm")
Esempio n. 11
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # remove static lib.
    inarytools.remove("/usr/lib/libgamin_shared.a")

    inarytools.dodoc("AUTHORS", "README", "COPYING", "NEWS", "TODO")
Esempio n. 12
0
def install():
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))

    shelltools.cd("contrib")
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))
    shelltools.cd("..")

    shelltools.cd("contrib/xml2")
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))
    shelltools.cd("../..")

    shelltools.cd("src/interfaces/libpq")
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))
    shelltools.cd("../../..")

    shelltools.cd("doc")
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))
    shelltools.cd("..")

    # No static libs
    inarytools.remove("/usr/lib/*.a")

    inarytools.dodoc("README", "HISTORY", "COPYRIGHT")
    inarytools.dodoc("doc/MISSING_FEATURES", "doc/KNOWN_BUGS", "doc/TODO")
    inarytools.dodir("/var/lib/postgresql")
    inarytools.dodir("/var/lib/postgresql/data")
    inarytools.dodir("/var/lib/postgresql/backups")
Esempio n. 13
0
def install():
#make install command with parameter
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
#create symlink
    inarytools.dosym("/usr/bin/example", "/bin/example")
#remove file
    inarytools.remove("/bin/example")
Esempio n. 14
0
def install():
    autotools.install()

    # remove static lib
    inarytools.remove("/usr/lib/libnewt.a")

    inarytools.dodoc("CHANGES", "COPYING")
Esempio n. 15
0
def install():
    autotools.install()
    # fix conflict with exo
    inarytools.removeDir("/usr/share/xfce4/helpers/")
    inarytools.remove("/etc/xdg/xfce4/helpers.rc")
    inarytools.remove("/usr/share/icons/hicolor/icon-theme.cache")
    inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "TODO")
Esempio n. 16
0
def install():
    autotools.install()

    inarytools.remove("/usr/share/icons/hicolor/icon-theme.cache")

    inarytools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README",
                     "TODO")
Esempio n. 17
0
def install():
    autotools.rawInstall('-j1 DESTDIR="%s"' % get.installDIR())
    if get.buildTYPE() == "_emul32":
        inarytools.domove("/_emul32/bin/icu-config", "/usr/bin",
                          "icu-config-32")
        inarytools.removeDir("/_emul32")
        for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
            inarytools.dosed(
                "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "_emul32",
                "usr")
        for i in [
                "libicudata.so", "libicui18n.so", "libicuio.so",
                "libicutest.so", "libicutu.so", "libicuuc.so"
        ]:
            inarytools.remove("/usr/lib32/" + i)
        inarytools.removeDir("/usr/lib32/icu")
        inarytools.removeDir("/usr/lib32/pkgconfig")
        return

    inarytools.dohtml("../*.html")
    inarytools.removeDir("/usr/bin")
    inarytools.removeDir("/usr/sbin")
    inarytools.removeDir("/usr/share")
    inarytools.removeDir("/usr/include")
    inarytools.removeDir("/usr/lib/icu")
    inarytools.removeDir("/usr/lib/pkgconfig")
    for i in [
            "libicudata.so", "libicui18n.so", "libicuio.so", "libicutest.so",
            "libicutu.so", "libicuuc.so"
    ]:
        inarytools.remove("/usr/lib/" + i)
Esempio n. 18
0
def install():
    cmaketools.install("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" %
                       get.installDIR())

    # Config
    inarytools.insinto("/etc/mysql",
                       "%s/usr/share/mysql/my-medium.cnf" % get.installDIR(),
                       "my.cnf")
    inarytools.insinto(
        "/etc/mysql",
        "%s/%s/scripts/mysqlaccess.conf" % (get.workDIR(), get.srcDIR()))
    inarytools.insinto(
        "/usr/bin",
        "%s/%s/scripts/mysql_config" % (get.workDIR(), get.srcDIR()))
    # Data dir
    inarytools.dodir("/var/lib/mysql")

    # Documents
    inarytools.dodoc("%s/%s/support-files/my-*.cnf" %
                     (get.workDIR(), get.srcDIR()))
    inarytools.dodoc("COPYING", "INSTALL-SOURCE", "README", "VERSION")

    # Remove not needed files
    inarytools.removeDir("/usr/data")
    inarytools.removeDir("/usr/mysql-test")
    inarytools.removeDir("/usr/sql-bench")
    inarytools.remove("/usr/share/man/man1/mysql-test-run.pl.1")
Esempio n. 19
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Remove versioned binaries
    inarytools.remove("/usr/bin/*-%s" % get.srcVERSION())

    inarytools.dosym("gawk.1", "/usr/share/man/man1/awk.1")
    inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")
Esempio n. 20
0
def install():
    autotools.install()

    inarytools.dohtml("doc/*.html")

    inarytools.remove("/usr/share/doc/gperf.html")

    inarytools.dodoc("AUTHORS", "COPYING", "NEWS", "README")
Esempio n. 21
0
def install():
    autotools.rawInstall("prefix=/usr DESTDIR=%s" % get.installDIR())
    inarytools.remove("/usr/lib/*.a")

    inarytools.insinto("/usr/bin", "bcp", "btrfs-bcp")
    inarytools.insinto("/usr/bin", "show-blocks", "btrfs-show-blocks")

    inarytools.dodoc("COPYING")
Esempio n. 22
0
def install():
    autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
    inarytools.remove("/usr/lib/*.a")

    # FIXME: avidemux needs this
    # inarytools.insinto("/usr/include","libdts/dca_internal.h")

    inarytools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "TODO", "doc/libdca.txt")
Esempio n. 23
0
def install():
    shelltools.cd("build")
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.remove("/usr/lib/*.a")

    shelltools.cd("..")
    inarytools.dodoc("ChangeLog", "COPYING", "README")
Esempio n. 24
0
def install():
    inarytools.dodoc("README", "TODO", "LICENSE")

    shelltools.cd("build")
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
    inarytools.dohtml("doc/html/*")

    inarytools.remove("/usr/bin/lit2epub")
Esempio n. 25
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

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

    inarytools.dodoc("ChangeLog", "COPYING", "NEWS", "README", "AUTHORS")

    inarytools.remove("/usr/lib/libmpg123.la")
Esempio n. 26
0
def install():
    #inarytools.dodir("/opt/dropbox")
    inarytools.insinto("/opt/dropbox", "*")

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

    inarytools.dodoc("VERSION")
    inarytools.remove("/opt/dropbox/VERSION")
Esempio n. 27
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.dodoc("AUTHORS.txt", "ChangeLog", "LICENSE", "NEWS.txt")

    inarytools.remove("/usr/lib/*.la")

    perlmodules.removePacklist()
    perlmodules.removePodfiles()
Esempio n. 28
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    autotools.rawInstall("DESTDIR=%s -C PerlMagick" % get.installDIR())
    for d in ("demo/", "Changelog", "README.txt"):
        inarytools.insinto("/usr/share/doc/PerlMagick", "PerlMagick/%s" % d)

    inarytools.remove("/usr/lib/*.la")
    perlmodules.removePacklist()
    perlmodules.removePodfiles()
Esempio n. 29
0
def install():
    autotools.rawInstall("DESTDIR=%s" % (get.installDIR()))

    # We do not distribute this
    inarytools.remove("/usr/bin/dlist_test")

    inarytools.dodoc("docs/libsysfs.txt")
    inarytools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README",
                     "TODO")
Esempio n. 30
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # we remove la files but symlinks stay there, so we remove by hand
    inarytools.remove("/usr/lib/*.la")
    #inarytools.removeDir("/usr/share/java")

    inarytools.dodoc("AUTHORS", "COPYING*", "ChangeLog", "NEWS", "NOTES",
                     "README", "THANKS")