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

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

    # it is needed for ppd etc.
    inarytools.insinto("/usr/include", "pcap-int.h")

    inarytools.dodoc("CHANGES", "CREDITS", "README*", "VERSION", "TODO")
Ejemplo n.º 2
0
def install():
    inarytools.dobin("ninja", "/usr/bin")

    inarytools.insinto("/usr/share/bash-completion/completions",
                       "misc/bash-completion", "ninja")

    inarytools.dodoc("HACKING.md", "COPYING", "RELEASING", "README",
                     "doc/manual.asciidoc")

    inarytools.dohtml("doc/manual.html")
Ejemplo n.º 3
0
def builddiet():
    autotools.make("clean")
    shelltools.export(
        "CC", "diet %s %s %s %s -DHAVE_STDINT_H -Os -static" %
        (get.CC(), get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS()))
    autotools.make("mdadm.static")
    autotools.make("mdassemble.static")

    inarytools.insinto("/sbin", "mdadm.static")
    inarytools.insinto("/sbin", "mdassemble.static")
Ejemplo n.º 4
0
def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                inarytools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                                  "%s/%s" % (path, doc))
Ejemplo n.º 5
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.removeDir(pibsdir)
    for i in ["ietf", "site", "tubs"]:
        inarytools.insinto(pibsdir, "pibs/%s" % i)
        inarytools.remove("%s/%s/Makefile*" % (pibsdir, i))

    inarytools.dodoc("smi.conf-example", "ANNOUNCE", "ChangeLog", "README",
                     "THANKS", "TODO", "doc/*.txt", "doc/smi*")
Ejemplo n.º 6
0
def install():
    qt.install("INSTALL_ROOT=%s" % get.installDIR())
    qt.install("INSTALL_ROOT=%s install_docs" % get.installDIR())

    #I hope qtchooser will manage this issue
    for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()):
        inarytools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin)

    inarytools.insinto("/usr/share/licenses/qt5-translations/",
                       "LICENSE.GPL3-EXCEPT")
Ejemplo n.º 7
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    # Set Options in /etc/dhcpcd.conf Disable ip4vall
    shelltools.echo("%s/etc/dhcpcd.conf" % get.installDIR(), "noipv4ll")
    # Remove hooks install the compat one
    inarytools.remove("/usr/lib/dhcpcd/dhcpcd-hooks/*")
    inarytools.insinto("/usr/lib/dhcpcd/dhcpcd-hooks",
                       "hooks/50-dhcpcd-compat")

    inarytools.dodoc("README.md")
Ejemplo n.º 8
0
def install():
    autotools.rawInstall('DESTDIR="%s"' % get.installDIR())

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

    # they say some programs use this
    inarytools.insinto("/usr/include", "jpegint.h")
    inarytools.insinto("/usr/include", "jinclude.h")

    inarytools.dodoc("change.log", "example.c", "README", "*.txt")
Ejemplo n.º 9
0
def install():
    inarytools.dolib("libdjbfft.so.%s" % lib_version)
    inarytools.dosym("/usr/lib/libdjbfft.so.%s" % lib_version,
                     "/usr/lib/libdjbfft.so")
    inarytools.dosym("/usr/lib/libdjbfft.so.%s" % lib_version,
                     "/usr/lib/libdjbfft.so.0")

    for header in ["fftc4.h", "complex4.h", "real4.h"]:
        inarytools.insinto("/usr/include", header)

    inarytools.dodoc("CHANGES", "README", "TODO")
Ejemplo n.º 10
0
def install():
    autotools.rawInstall("DESTDIR=%s/usr/share/xml/docbook/xsl-stylesheets" %
                         get.installDIR())
    inarytools.insinto("/usr/share/xml/docbook/xsl-stylesheets/",
                       "VERSION.xsl")

    # Don't ship the extensions
    inarytools.remove("/usr/share/xml/docbook/xsl-stylesheets/extensions/*")

    inarytools.dodoc("AUTHORS", "BUGS", "COPYING", "NEWS", "README",
                     "RELEASE-NOTES.txt", "TODO", "VERSION")
Ejemplo n.º 11
0
def install():
    autotools.install()
    shelltools.cd("python")
    pythonmodules.install(pyVer="3")
    shelltools.cd("..")

    inarytools.insinto("/usr/share/vim/vimfiles/syntax/", "editors/proto.vim")
    inarytools.insinto("/usr/share/emacs/site-lisp/",
                       "editors/protobuf-mode.el")

    inarytools.dodoc("CHANGES.txt", "CONTRIBUTORS.txt", "LICENSE", "README.md")
Ejemplo n.º 12
0
def install():

    mesontools.ninja_install()
    inarytools.dodoc("NEWS")
    shelltools.cd("Source")
    for path in paths:
        for doc in docs:
            if shelltools.isFile("%s/%s" % (path, doc)):
                inarytools.insinto(
                    "%s/%s/%s" % (get.docDIR(), get.srcNAME(), path),
                    "%s/%s" % (path, doc))
Ejemplo n.º 13
0
def install():
    if get.buildTYPE()=="libcheaders":
        kerneltools.installLibcHeaders()
        return

    kerneltools.install(distro="sulinos")
    kerneltools.installModuleHeaders(distro="sulinos")
    # add objtool for external module building and enabled VALIDATION_STACK option
    inarytools.insinto("/usr/src/linux-headers-%s-sulinos/tools/objtool" % get.srcVERSION(), "%s/tools/objtool/objtool" % get.curDIR())

    # Generate some module lists to use within mkinitramfs
    shelltools.system("./generate-module-list %s/lib/modules/%s-sulinos" % (get.installDIR(), kerneltools.__getSuffix()))
Ejemplo n.º 14
0
def install():
    inarytools.insinto("/usr/share/fonts/dejavu", "build/*.ttf")

    # Create symlinks for fontconfig files
    for conf in shelltools.ls("fontconfig"):
        inarytools.insinto("/etc/fonts/conf.avail", "fontconfig/%s" % conf)
        inarytools.dosym("/etc/fonts/conf.avail/%s" % conf,
                         "/etc/fonts/conf.d/%s" % conf)

    inarytools.dosym("/usr/share/fonts/dejavu", "/etc/X11/fontpath.d/dejavu")

    inarytools.dodoc("AUTHORS", "LICENSE", "NEWS")
Ejemplo n.º 15
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Remove this when we can break abi
    inarytools.dosym("libgpm.so.2", "/usr/lib/libgpm.so")

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

    inarytools.insinto("/etc/gpm", "conf/gpm-*.conf")

    inarytools.dodoc("COPYING", "README", "TODO", "doc/Announce", "doc/FAQ", "doc/README*")
Ejemplo n.º 16
0
def install():
    inarytools.dosed("Makefile", "BINDIR := /usr/sbin",
                     "BINDIR := %s/usr/sbin" % get.installDIR())

    shelltools.makedirs("%s/usr/sbin" % get.installDIR())
    #shelltools.makedirs("%s/usr/lib" % get.installDIR())
    shelltools.makedirs("%s/usr/share/man" % get.installDIR())
    shelltools.makedirs("%s/usr/include" % get.installDIR())

    autotools.rawInstall('DESTDIR=%s EFIDIR="/boot/EFI"' % get.installDIR())
    # inarytools.insinto("/usr/lib", "src/lib/*.o")
    inarytools.insinto("/usr/share/man", "src/*.8")
    inarytools.insinto("/usr/include", "src/include/*.h")
Ejemplo n.º 17
0
def install():
    #inarytools.insinto("/usr/lib/qt5/qml", "qml/QtQml")
    #inarytools.insinto("/usr/lib/qt5/qml", "qml/Qt")
    #inarytools.insinto("/usr/lib/qt5/qml", "qml/QtQuick")
    #inarytools.insinto("/usr/lib/qt5/qml", "qml/QtQuick.2")
    #inarytools.insinto("/usr/lib/qt5/qml", "qml/QtTest")
    qt.install("INSTALL_ROOT=%s install_docs" % get.installDIR())

    #I hope qtchooser will manage this issue
    for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()):
        inarytools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin)

    inarytools.insinto("/usr/share/licenses/qt5-declarative/", "LICENSE*")
Ejemplo n.º 18
0
def install():
    inarytools.dobin("screen")

    inarytools.dodir("/run/screen")
    inarytools.dodir("/etc/pam.d")

    inarytools.insinto("/usr/share/terminfo", "terminfo/screencap")
    inarytools.insinto("/usr/share/screen/utf8encodings", "utf8encodings/??")

    shelltools.chmod("%s/run/screen" % get.installDIR(), 0o775)

    inarytools.doman("doc/screen.1")
    inarytools.dodoc("README", "ChangeLog", "TODO", "NEWS*", "doc/FAQ", "doc/README.DOTSCREEN")
Ejemplo n.º 19
0
def install():
    autotools.rawInstall(
        "INSTALL_TOP=%s/usr INSTALL_MAN=%s/usr/share/man/ INSTALL_LIB=%s/usr/lib/"
        % (get.installDIR(), get.installDIR(), get.installDIR()))

    inarytools.insinto("/usr/lib", "src/liblua.so*")

    #free directory
    inarytools.removeDir("usr/lib/lua/")
    inarytools.removeDir("usr/share/lua/")

    inarytools.dohtml("doc")
    inarytools.dodoc("README")
Ejemplo n.º 20
0
def install():
    inarytools.dodoc("debian/copyright", "debian/changelog", "README")
    inarytools.dobin("os-prober")
    inarytools.dobin("linux-boot-prober")
    inarytools.insinto("/usr/lib/os-prober", "newns")
    inarytools.insinto("/usr/share/os-prober", "common.sh")
    for d in ("os-probes", "os-probes/mounted", "os-probes/init",
              "linux-boot-probes", "linux-boot-probes/mounted"):
        inarytools.insinto("/usr/lib/%s" % d, "%s/common/*" % d)
        if shelltools.isDirectory("%s/x86" % d):
            inarytools.insinto("/usr/lib/%s" % d, "%s/x86/*" % d)
    shelltools.touch("labels")
    inarytools.insinto("/var/lib/os-prober/", "labels")
Ejemplo n.º 21
0
def install():
    inarytools.dodir("usr/share/ca-certificates/mozilla")
    inarytools.dodir("usr/sbin")

    autotools.install("SUBDIRS=mozilla DESTDIR=%s" % get.installDIR())
    inarytools.doman("sbin/update-ca-certificates.8")

    shelltools.cd("%s/usr/share/ca-certificates" % get.installDIR())
    shelltools.system("find . -name '*.crt' | sort | cut -b3- > ca-certificates.conf")
    inarytools.insinto("/etc/", "ca-certificates.conf")

    inarytools.dodir("/etc/ca-certificates/update.d")
    inarytools.dodir("etc/ssl/certs")
Ejemplo n.º 22
0
def install():
    if get.buildTYPE() == "emul32":
        autotools.rawInstall(
            "prefix=/emul32 lib=../usr/lib32 DESTDIR=%s RAISE_SETFCAP=no" %
            get.installDIR())
        return

    autotools.rawInstall(
        "prefix=/usr lib=/lib DESTDIR=%s SBINDIR=/sbin RAISE_SETFCAP=no" %
        (get.installDIR()))

    inarytools.insinto("/etc/security", "pam_cap/capability.conf")
    inarytools.dodoc("CHANGELOG", "License", "README", "doc/capability.notes")
Ejemplo n.º 23
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Remove the udev file as its shipped with udev package
    inarytools.remove("/lib/udev/rules.d/*")

    # Install config file
    inarytools.insinto("/etc", "mdadm.conf-example", "mdadm.conf")

    #builddiet()

    inarytools.dodoc("TODO", "ChangeLog", "COPYING", "mdadm.conf-example",
                     "misc/*")
Ejemplo n.º 24
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    #inarytools.doman("sys-utils/klogconsole.man")
    inarytools.remove("/usr/share/man/man1/kill.1")
    inarytools.remove("/usr/share/bash-completion/completions/rfkill")

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

    #inarytools.removeDir("/usr/lib32/pkgconfig")

    inarytools.dodoc("ABOUT-NLS", "AUTHORS", "ChangeLog", "COPYING", "README*")
    inarytools.insinto("/%s/%s" % (get.docDIR(), get.srcNAME()),
                       "Documentation")
Ejemplo n.º 25
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Trim exported dependencies
    inarytools.dosed("%s/usr/lib/pkgconfig/*.pc" % get.installDIR(),
                     "-luuid -lcrypt", "")
    inarytools.dosed("%s/usr/bin/apr-1-config" % get.installDIR(),
                     "-luuid -lcrypt", "")

    # Install find_apr.m4
    inarytools.dodir("/usr/share/aclocal")
    inarytools.insinto("/usr/share/aclocal", "build/find_apr.m4")

    inarytools.dodoc("CHANGES", "LICENSE", "NOTICE")
Ejemplo n.º 26
0
def install():
    shelltools.cd("%s/docker-ce-%s" % (get.workDIR(), get.srcVERSION()))

    inarytools.dobin("components/cli/build/docker*")
    inarytools.dobin("components/engine/bundles/dynbinary-daemon/*")

    # insert udev rules
    inarytools.insinto("/lib/udev/rules.d", "components/engine/contrib/udev/*.rules")

    #insert contrib in docs
    inarytools.insinto("/usr/share/doc/docker", "components/cli/contrib")

    inarytools.dobin("components/engine/contrib/check-config.sh")

    inarytools.dodoc("VERSION", "README.md","CONTRIBUTING.md", "CHANGELOG.md")
Ejemplo n.º 27
0
def install():
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    #Remove python examples
    inarytools.removeDir("/usr/share/libftdi")

    # Their source can be useful though
    inarytools.dodoc("examples/*.c", destDir="%s/examples" % get.srcNAME())

    # Install udev rule
    inarytools.insinto("/lib/udev/rules.d", "packages/99-libftdi.rules")

    inarytools.doman("doc/man/man3/*.3")

    inarytools.dodoc("AUTHORS", "COPYING.LIB", "ChangeLog", "LICENSE", "README")
Ejemplo n.º 28
0
def install():
    inarytools.dobin("colorgcc.pl", "/usr/bin/colorgcc")
    inarytools.insinto("/etc", "colorgccrc.txt")
    inarytools.move("%s/etc/colorgccrc.txt" % get.installDIR(),
                    "%s/etc/colorgccrc" % get.installDIR())

    inarytools.dodir("/usr/share/colorgcc")
    inarytools.dosym("../../bin/colorgcc", "/usr/share/colorgcc/colorgcc")

    for c in [
            "gcc", "cc", "g++", "c++", "gfortran", "gcj",
            get.CC(),
            get.CXX()
    ]:
        inarytools.dosym("colorgcc", "/usr/share/colorgcc/%s" % c)
Ejemplo n.º 29
0
def install():
    inarytools.dosbin("vsftpd")

    inarytools.dodir("/data/user/ftp")
    inarytools.dodir("/data/user/ftp/incoming")
    inarytools.dodir("/usr/share/vsftpd/empty")
    inarytools.dodir("/var/log/vsftpd")

    inarytools.newdoc("vsftpd.conf", "vsftpd.conf.example")
    inarytools.doman("vsftpd.conf.5", "vsftpd.8")
    inarytools.insinto("/usr/share/doc/%s" % get.srcNAME(), "SECURITY")
    inarytools.insinto("/usr/share/doc/%s" % get.srcNAME(), "EXAMPLE")
    inarytools.dodoc("AUDIT", "BENCHMARKS", "BUGS", "Changelog", "FAQ",\
                    "LICENSE", "README*", "REFS", "REWARD", "SIZE", \
                    "SPEED", "TODO", "TUNING")
Ejemplo n.º 30
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.doman("doc/man/man3/*.3")
#    inarytools.dohtml("doc/html/*")
    inarytools.dodoc("README.md")

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

    inarytools.dodir(exampledir)
    for i in shelltools.ls("sample/*"):
        if i.endswith(".h") or i.endswith(".c"):
            inarytools.insinto(exampledir, i)