Exemple #1
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")
Exemple #2
0
def addLanguageDef(parameter):
    """Create language.*.def files"""
    parameter = parameter.split()
    para_dict = {}
    for option in parameter:
        pair = option.split("=")
        if len(
                pair
        ) == 2:  # That's just a caution, the pair should have two items, not more not less
            para_dict[pair[0]] = pair[1]

    if "lefthyphenmin" in para_dict and not para_dict["lefthyphenmin"]:
        para_dict["lefthyphenmin"] = "2"
    if "righthyphenmin" in para_dict and not para_dict["righthyphenmin"]:
        para_dict["righthyphenmin"] = "3"

    language_def = open(
        '{0}/language.{1}.def'.format(get.curDIR(), get.srcNAME()), 'a')
    language_def.write(
        "\\addlanguage{%s}{%s}{}{%s}{%s}\n" %
        (para_dict["name"], para_dict["file"], para_dict["lefthyphenmin"],
         para_dict["righthyphenmin"]))
    language_def.close()

    if "synonyms" in para_dict:
        language_def = open(
            '{0}/language.{1}.def'.format(get.curDIR(), get.srcNAME()), 'a')
        language_def.write(
            "\\addlanguage{%s}{%s}{}{%s}{%s}\n" %
            (para_dict["synonyms"], para_dict["file"],
             para_dict["lefthyphenmin"], para_dict["righthyphenmin"]))
        language_def.close()
Exemple #3
0
def build():
    cc_args = "-DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql \
               -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_LDAP -fPIC"
    cc_libs = "-pie -Wl,-z,relro -Wl,-z,now -L/usr/lib -lpcre -lcrypt -lpthread -lpam -lssl -lcrypto -lsasl2 -lmysqlclient -lpq -lm -lz -lldap -llber"

    # Default paths
    inarytools.dosed("src/global/mail_params.h", \
                    "#define DEF_README_DIR\s+\"no\"", \
                    "#define DEF_README_DIR \"/usr/share/doc/%s/readme\"" % get.srcNAME())

    inarytools.dosed("src/global/mail_params.h", \
                    "#define DEF_HTML_DIR\s+\"no\"", \
                    "#define DEF_HTML_DIR \"/usr/share/doc/%s/html\"" % get.srcNAME())

    inarytools.dosed("src/global/mail_params.h", \
                    "#define DEF_MANPAGE_DIR\s+\"/usr/local/man\"", \
                    "#define DEF_MANPAGE_DIR \"/usr/share/man\"")

    inarytools.dosed("src/util/sys_defs.h", \
                    "#define NATIVE_DAEMON_DIR \"/usr/libexec/postfix\"", \
                    "#define NATIVE_DAEMON_DIR \"/usr/lib/postfix\"")

    autotools.make('CC=%s \
                    OPT="%s" \
                    CCARGS="%s" \
                    AUXLIBS="%s" makefiles' % (get.CC(), get.CFLAGS(), cc_args, cc_libs))

    autotools.make()
Exemple #4
0
def install():
    pythonmodules.install(pyVer="2")
    pythonmodules.install(pyVer="3")

    #inarytools.dodoc("doc/*.txt")
    inarytools.dohtml("doc/*.html")
    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/build")
    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "examples")
Exemple #5
0
def install():
    autotools.install()

    inarytools.domove("/usr/share/doc/%s-1.6/*" % get.srcNAME(),
                      "/usr/share/gtk-doc/html/atkmm")
    inarytools.removeDir("/usr/share/doc/%s-1.6" % get.srcNAME())
    inarytools.removeDir("/usr/share/devhelp")

    inarytools.dodoc("ChangeLog", "COPYING", "NEWS", "README")
Exemple #6
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.removeDir("/usr/share/devhelp")

    #move html docs to html doc dir
    inarytools.dodir("/usr/share/doc/%s/html" % get.srcNAME())
    inarytools.domove("/usr/share/doc/%s-1.0/*" % get.srcNAME(), "/usr/share/doc/%s/html" % get.srcNAME())
    inarytools.removeDir("/usr/share/doc/%s-1.0" % get.srcNAME())

    inarytools.dodoc("AUTHORS", "README", "COPYING", "ChangeLog", "NEWS")
Exemple #7
0
def install():
    inarytools.dosed("fonts/fontmap", "libwmf/fonts",
                     "fonts/default/ghostscript")

    autotools.rawInstall("DESTDIR=%s \
                          fontdir=/usr/share/libwmf/fonts \
                          wmfonedocdir=/usr/share/doc/%s/caolan \
                          wmfdocdir=/usr/share/doc/%s" %
                         (get.installDIR(), get.srcNAME(), get.srcNAME()))

    inarytools.dodoc("README", "AUTHORS", "CREDITS", "ChangeLog", "NEWS",
                     "TODO")
Exemple #8
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")
Exemple #9
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")
Exemple #10
0
def __getFlavour():
    try:
        flavour = get.srcNAME().split("linux-")[1]
    except IndexError:
        return ""
    else:
        return flavour
Exemple #11
0
def setup():
    autotools.autoreconf()
    autotools.configure("--disable-static \
                         --sysconfdir=/etc/aspell \
                         --enable-docdir=/usr/share/doc/%s" % get.srcNAME())

    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Exemple #12
0
def dumpVersion():
    # Writes the specific kernel version into /etc/kernel
    destination = os.path.join(get.installDIR(), "etc/kernel/")
    if not os.path.exists(destination):
        os.makedirs(destination)

    open(os.path.join(destination, get.srcNAME()), "w").write(__getSuffix())
Exemple #13
0
def installExe(exe='', java_args='', exe_args='', dest_dir=''):
    """install executable jar to specified location and get jar prepared to
    execute with given arguments.

    exe:        Path in work dir to executable jar
    java_args:  Arguments passed to jvm
    exe_args:   Arguments passed to executable jar
    dest_dir:   Installation dir of executable jar"""

    if not dest_dir:
        dest_dir = 'usr/share/java/{}'.format(get.srcNAME())
    destination = util.join_path(get.installDIR(), dest_dir)

    if not os.access(destination, os.F_OK):
        os.makedirs(destination)

    # To guarantee x/y.jar going under /usr/share/java as y.jar
    source = exe.split("/")[-1]
    try:
        copy(exe, destination)
        _generate_exec_file(dest_dir, source,
                            ' {} '.format(java_args) if java_args else ' ',
                            ' {}'.format(exe_args) if exe_args else '')
    except IOError:
        raise InstallError(_('Installing file "{}" failed.'.format(exe)))
Exemple #14
0
def _dodoc(*source_files, **kw):
    """copy doc files to /usr/share/doc/src_name recursively"""

    dest = util.join_path(get.docDIR(), kw.get('dest_dir', get.srcNAME()))
    destination = util.join_path(get.installDIR(), dest)

    if not os.access(destination, os.F_OK):
        os.makedirs(destination)

    for source_file in source_files:
        sources = glob(source_file)
        if not sources:
            raise DoJavadocError(
                _('No any file/directory matched to regex expression "{}".'.
                  format(source_file)))

        for source in sources:
            if os.path.isfile(source):
                try:
                    copy(source, destination)
                except IOError:
                    raise DoJavadocError(_('DoJavadoc failed.'))
            elif os.path.isdir(source):
                target = util.join_path(destination, source.split("/")[-1])
                try:
                    copytree(source, target)
                except IOError:
                    raise DoJavadocError(_('DoJavadoc failed.'))
Exemple #15
0
def install():
    autotools.rawInstall("DESTDIR=\"%s\" \
                          SBINDIR=/sbin \
                          DOCDIR=/%s/%s \
                          MANDIR=/usr/share/man \
                          " % (get.installDIR(), get.docDIR(), get.srcNAME()))

    inarytools.dodir("/var/lib/arpd")
Exemple #16
0
def install():
    autotools.rawInstall('DESTDIR=%s INSTALL="install -p"' % get.installDIR())

    for i in shelltools.ls("examples"):
        if i.endswith(".png") or i.endswith(".c"):
            inarytools.insinto("/%s/%s/examples/" % (get.docDIR(), get.srcNAME()), "examples/%s" % i)

    inarytools.dodoc("AUTHORS", "COPYING", "README", "NEWS")
Exemple #17
0
def install():
    pythonmodules.install()

    shelltools.cd("../build_python3/%s" % WorkDir)
    pythonmodules.install(pyVer="3")

    for dirs in ["demos", "tests"]:
        inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), dirs)
Exemple #18
0
def install():
    # documents and examples go to "/usr/share/OpenEXR" without these parameters
    docdir = "/usr/share/doc/%s" % get.srcNAME()
    examplesdir = "%s/examples" % docdir
    autotools.rawInstall("DESTDIR=%s docdir=%s examplesdir=%s" %
                         (get.installDIR(), docdir, examplesdir))

    inarytools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README.md", "LICENSE")
Exemple #19
0
def setup():
    #autotools.autoreconf("-fi")
    autotools.configure("PYTHON=/usr/bin/python3 \
                         --prefix=/usr \
                         --with-html-dir=/%s/%s/html \
                         --with-package-name='Sulin farstream package' \
                         --with-package-origin='http://www.inarylinux.org'" %
                        (get.docDIR(), get.srcNAME()))
Exemple #20
0
def install():
    autotools.rawInstall("DESTDIR={}".format(get.installDIR()))

    inarytools.removeDir("/usr/share/devhelp")

    #move html docs to html doc dir
    inarytools.dodir("/usr/share/doc/{}/html".format(get.srcNAME()))
    inarytools.dodoc("AUTHORS", "README", "COPYING", "ChangeLog", "NEWS")
Exemple #21
0
def install():
    pythonmodules.install()

    inarytools.insinto("/etc/bash_completion.d/", "contrib/bash/bzr")
    inarytools.insinto("%s/%s" % (get.docDIR(), get.srcNAME()), "doc/*")

    inarytools.dodoc("COPYING.txt", "README", "NEWS", "TODO")
    shelltools.unlinkDir("{}/usr/man/".format(get.installDIR()))
Exemple #22
0
def setup():
    autotools.configure("--disable-setuid \
                          --disable-rpath \
                          --with-sections=\"1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x\" \
                          --docdir=/%s/%s \
                          --without-systemd \
                          --with-device=utf8 \
                          --enable-mb-groff" % (get.docDIR(), get.srcNAME()))
Exemple #23
0
def build():
    autotools.make("shared")

    for t in ("fpack", "funpack", "imcopy", "fitscopy"):
        autotools.make(t)

    inarytools.dosed("cfitsio.pc", "\\$\\{prefix\\}/include",
                     "${prefix}/include/%s" % get.srcNAME())
Exemple #24
0
def newdoc(sourceFile, destinationFile):
    """inserts a sourceFile into /usr/share/doc/PACKAGE/ directory as a destinationFile"""
    destinationDirectory = os.path.dirname(destinationFile)
    destinationFile = os.path.basename(destinationFile)
    # Use copy instead of move or let build-install scream like file not found!
    copy(sourceFile, destinationFile)
    readable_insinto(
        join_path(get.installDIR(), 'usr/share/doc', get.srcNAME(),
                  destinationDirectory), destinationFile)
Exemple #25
0
def install():
    shelltools.system('/bin/sh postfix-install \
                       -non-interactive \
                       install_root="%(installDIR)s" \
                       config_directory="/usr/share/doc/%(srcNAME)s/defaults" \
                       readme_directory="/usr/share/doc/%(srcNAME)s/readme" \
                       ' % {'installDIR': get.installDIR(), 'srcNAME': get.srcNAME()})

    inarytools.removeDir("/var/")

    # lets make dirs
    inarytools.dodir("/var/spool/postfix/")
    inarytools.dodir("/etc/mail/")
    inarytools.dodir("/etc/postfix/")
    inarytools.dodir("/var/spool/mail/")
    inarytools.dodir("/var/lib/postfix")
    inarytools.dosym("/var/spool/mail", "/var/mail")

    # qshape comes
    inarytools.dosbin("auxiliary/qshape/qshape.pl")
    inarytools.rename("/usr/sbin/qshape.pl", "qshape")

    # legacy FSH
    inarytools.dosym("/usr/sbin/sendmail", "/usr/lib/sendmail")

    # performance tuning tools.
    inarytools.dosbin("bin/smtp-source")
    inarytools.dosbin("bin/smtp-sink")
    inarytools.dosbin("bin/qmqp-source")
    inarytools.dosbin("bin/qmqp-sink")
    inarytools.doman("man/man1/smtp-source.1")
    inarytools.doman("man/man1/smtp-sink.1")
    inarytools.doman("man/man1/qmqp-source.1")
    inarytools.doman("man/man1/qmqp-sink.1")

    # Move some files
    inarytools.domove("/usr/share/doc/%s/defaults/master.cf" % get.srcNAME(), "/etc/postfix/")

    # Docs
    inarytools.insinto("/usr/share/doc/%s/" % get.srcNAME(), "html/")
    inarytools.insinto("/usr/share/doc/%s/" % get.srcNAME(), "examples/")
    for s in ["*README", "COMPATIBILITY", "HISTORY", "LICENSE", "RELEASE_NOTES"]:
        inarytools.insinto("/usr/share/doc/%s/" % get.srcNAME(), s)
Exemple #26
0
def installDocFiles():
    """Installing docs"""
    if "documentation" in get.srcNAME():
        if os.path.isdir("{}/texmf-doc".format(get.curDIR())):
            copytree("texmf-doc",
                     "{}/usr/share/texmf-doc".format(get.installDIR()))
    else:
        for removedir in ["texmf", "texmf-dist"]:
            if os.path.isdir("{0}/{1}/doc/".format(get.curDIR(), removedir)):
                shutil.rmtree("{0}/{1}/doc".format(get.curDIR(), removedir))
Exemple #27
0
def install():
    inarytools.dodir("/usr/share")

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

    inarytools.domove("/usr/share/html/", "/usr/share/doc/%s/" % get.srcNAME())

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

    inarytools.dodoc("COPYING", "NEWS", "README")
Exemple #28
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))
Exemple #29
0
def __getModuleFlavour():
    for fl in [_f for _f in __getAllSupportedFlavours() if "-" in _f]:
        try:
            if fl.split("-")[1] == get.srcNAME().split("-")[1]:
                return fl
        except IndexError:
            # the package is not a module, may be a userspace application
            # needing the kernel sources/headers for only reference.
            pass

    return "linux"
Exemple #30
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))