예제 #1
0
def install():
    pythonmodules.install()
    pythonmodules.install(pyVer="3")

    inarytools.dohtml("doc/*")

    shelltools.chmod("examples/*", 0o644)
    inarytools.insinto(examples, "examples/*")
예제 #2
0
def install():
    shelltools.system("./waf --destdir=%s install" % get.installDIR())

    # be compatible with the former jackaudio
    inarytools.rename("/usr/bin/jack_rec", "jackrec")

    shelltools.chmod("%s/usr/lib/jack/*.so*" % get.installDIR(), 0o755)

    inarytools.dodoc("ChangeLog", "README*", "TODO")
예제 #3
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

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

    inarytools.dodoc("README")
예제 #4
0
def install():
    autotools.rawInstall('DESTDIR=%s' % get.installDIR())

    for dir in ["archive", "backup", "cache"]:
        inarytools.dodir("/etc/lvm/%s" % dir)
        shelltools.chmod(get.installDIR() + "/etc/lvm/%s" % dir, 0o700)

    #inarytools.move("/sbin/lvmconf","scripts/lvmconf.sh")

#    builddiet()
    inarytools.dodoc("COPYING", "COPYING.LIB", "README", "VERSION",
                     "VERSION_DM", "WHATS_NEW", "WHATS_NEW_DM")
예제 #5
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")
예제 #6
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Simple wrapper for gcc
    host_gcc = "/usr/bin/%s-dietlibc-gcc" % get.HOST()
    shelltools.echo("%s%s" % (get.installDIR(), host_gcc), """\
#!/bin/bash
exec /usr/bin/diet %s "$@"
""" % get.CC())

    shelltools.chmod("%s%s" % (get.installDIR(), host_gcc), 0o755)
    inarytools.dosym(host_gcc, "/usr/bin/dietlibc-gcc")

    inarytools.dodoc("AUTHOR", "BUGS", "CAVEAT", "CHANGES", "FAQ", "README*", "THANKS", "TODO")
예제 #7
0
def install():
    autotools.install()

    # Conflicts with openTTS
    inarytools.remove("/usr/share/info/ssip.info")

    # Set executable bit
    #shelltools.chmod("%s/usr/lib/python3.6/site-packages/speechd/_test.py" % get.installDIR(), 0o755)

    # Create log directory, it should be world unreadable
    inarytools.dodir("/var/log/speech-dispatcher")
    shelltools.chmod("%s/var/log/speech-dispatcher" % get.installDIR(), 0o700)

    inarytools.dodoc("AUTHORS", "COPYING", "README")
예제 #8
0
def install():
    autotools.rawInstall("DESTDIR={}".format(get.installDIR()))

    shelltools.chmod("{}/etc/lxdm/lxdm.conf".format(get.installDIR()), 0o644)
    inarytools.dodir("/usr/lib/sysusers.d")
    inarytools.dodir("/usr/lib/tmpfiles.d")
    # Setup system user and group
    shelltools.echo(
        "{}/usr/lib/sysusers.d/lxdm.conf".format(get.installDIR()),
        'u lxdm - "Lightweight X11 Display Manager" /var/lib/lxdm')
    shelltools.echo("{}/usr/lib/tmpfiles.d/lxdm.conf".format(get.installDIR()),
                    'd /var/lib/lxdm 0700 lxdm lxdm - -')

    inarytools.dodoc("COPYING", "AUTHORS", "TODO", "README", "ChangeLog",
                     "NEWS")
예제 #9
0
def install():
    # Create nss.pc and nss-config dynamically
    shelltools.system("./generate-pc-config.sh")

    inarytools.insinto("/usr/lib","dist/lib/*.so",sym=False)
    inarytools.insinto("/usr/include/nspr","dist/include/nspr/*.h",sym=False)
    inarytools.insinto("/usr/include/nspr/obsolete","dist/include/nspr/obsolete/*.h",sym=False)
    inarytools.insinto("/usr/include/nspr/private","dist/include/nspr/private/*.h",sym=False)

    # Fix permissions of headers, they're 0640 by default
    shelltools.chmod("%s/usr/include/nspr/*.h" % get.installDIR(), 0o644)
    shelltools.chmod("%s/usr/include/nspr/*/*.h" % get.installDIR(), 0o644)

    inarytools.insinto("/usr/bin","config/nspr-config",sym=False)
    inarytools.insinto("/usr/lib/pkgconfig","config/nspr.pc",sym=False)
예제 #10
0
def install():
    if get.buildTYPE() == "emul32":
        for lib in ["*.a", "*.chk", "*.so"]:
            inarytools.insinto("/usr/lib32",
                               "dist/Linux*/lib/%s" % lib,
                               sym=False)
        # Install nss-config and nss.pc
        inarytools.insinto("/usr/lib32/pkgconfig", "nss/config/nss.pc")
        shelltools.system(
            "sed -i 's|libdir=${{prefix}}/lib|libdir=${{prefix}}/lib32|' {}/usr/lib32/pkgconfig/nss.pc"
            .format(get.installDIR()))
        shelltools.system(
            "sed -i 's|-L${{prefix}}/lib|-L${{prefix}}/lib32|' {}/usr/lib32/pkgconfig/nss.pc"
            .format(get.installDIR()))
        return

    for binary in [
            "certutil", "nss-config", "pk12util", "*util", "shlibsign",
            "signtool", "signver", "ssltap"
    ]:
        inarytools.insinto("/usr/bin",
                           "dist/Linux*/bin/%s" % binary,
                           sym=False)

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

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

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

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

    # create empty NSS database
    inarytools.dodir("/etc/pki/nssdb")
    shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/" % get.installDIR())
    shelltools.system(
        "%s/usr/bin/modutil -force -dbdir \"sql:%s/etc/pki/nssdb\" -create" %
        (get.installDIR(), get.installDIR()))
    shelltools.chmod("%s/etc/pki/nssdb/*" % get.installDIR(), 0o644)
    shelltools.system('sed -i "s|%s||" %s/etc/pki/nssdb/*' %
                      (get.installDIR(), get.installDIR()))
예제 #11
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # fixes #10992
    inarytools.dobin("contrib/ssh-copy-id")
    inarytools.doman("contrib/ssh-copy-id.1")
    
    # an script in contrib
    inarytools.dobin("contrib/findssl.sh")
    
    shelltools.chmod("%s/etc/ssh/sshd_config" % get.installDIR(), 0o600)
    # special request by merensan
    shelltools.echo("%s/etc/ssh/ssh_config" % get.installDIR(), "ServerAliveInterval 5")

    inarytools.dodir("/var/empty/sshd")

    inarytools.dodoc("ChangeLog", "CREDITS", "OVERVIEW", "README*", "TODO", "sshd_config")
예제 #12
0
def install():
    autotools.rawInstall("DIST_ROOT=%s" % get.installDIR())
    autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-dev")
    # Needed for building the QA testsuite
    #autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-qa")

    # Nuke static libraries
    #inarytools.remove("/lib/libhandle.a")
    #inarytools.remove("/lib/libhandle.la")
    #inarytools.remove("/usr/lib/*.a")

    # Fix the symlink
    #inarytools.remove("/usr/lib/libhandle.so")
    #inarytools.dosym("/lib/libhandle.so.1", "/usr/lib/libhandle.so")

    # Set +x bit for the library
    shelltools.chmod("%s/lib/libhandle.so.*.*.*" % get.installDIR(), 0o755)
예제 #13
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.insinto("/etc/", "etc/login.access")
    shelltools.chmod("%s/etc/login.access" % get.installDIR(), 0o600)

    inarytools.insinto("/etc/", "etc/limits")
    shelltools.chmod("%s/etc/limits" % get.installDIR(), 0o644)

    # groups come from coreutils package
    inarytools.remove("/usr/share/man/man1/groups.1")
    inarytools.remove("/bin/groups")

    # Conflicts with man-pages
    inarytools.remove("/usr/share/man/man3/getspnam.3")
    inarytools.remove("/usr/share/man/man5/passwd.5")

    inarytools.dodoc("ChangeLog", "README", "NEWS")
예제 #14
0
def install():
    # The build mechanism is crap. Don't remove \/usr from DESTDIR or else the paths will fail
    autotools.rawInstall("DESTDIR=%s/usr INSTROOT=%s install-etcppp" %
                         ((get.installDIR(), ) * 2))

    # No suid libraries
    shelltools.chmod(
        "%s/usr/lib/pppd/%s/*.so" % (get.installDIR(), get.srcVERSION()),
        0o755)

    # Install Radius config files
    inarytools.insinto("/etc/radiusclient", "pppd/plugins/radius/etc/*")

    # Create peers directory
    inarytools.dodir("/run/ppp")
    inarytools.dodir("/etc/ppp/peers")

    inarytools.dodoc("Changes*", "README*", "FAQ")
예제 #15
0
def install():
    autotools.rawInstall("DESTDIR={} install-html all".format(
        get.installDIR()))

    # Install bash completion
    inarytools.insinto("/etc/bash_completion.d",
                       "contrib/completion/git-completion.bash", "git")
    shelltools.chmod("%s/etc/bash_completion.d/git" % get.installDIR(), 0o644)

    # for git-daemon
    inarytools.dodir("/pub/scm")

    # emacs support
    # autotools.install("-C contrib")
    inarytools.insinto("/usr/share/doc/emacs-git", "contrib/emacs/README")
    inarytools.insinto("/usr/share/git/", "contrib/*")

    # Some docs
    inarytools.dodoc("README.md", "COPYING", "Documentation/SubmittingPatches")

    # remove .pod and .packlist files
    perlmodules.removePodfiles()
    perlmodules.removePacklist()
예제 #16
0
def install():
    if get.buildTYPE() == "emul32":
        # SERVERBIN is hardcoded to /usr/lib/cups, thus it overwrites 64 bit libraries
        autotools.rawInstall(
            "BUILDROOT=%s SERVERBIN=%s/usr/serverbin32 install-libs" %
            (get.installDIR(), get.installDIR()))
        inarytools.domove("/usr/bin32/cups-config", "/usr/bin",
                          "cups-config-32bit")
        inarytools.removeDir("/usr/bin32")
        inarytools.removeDir("/usr/sbin32")
        inarytools.removeDir("/usr/serverbin32")

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

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

    inarytools.dodir("/usr/share/cups/profiles")
예제 #17
0
def install():
    for i in {"/bin", "/sbin", "/lib", "/lib32","/data/srv","/kernel","/kernel/boot",
              "/etc","/tmp","/data/misc","/data","/data/user","/data/app","/data/user/root",
              "/tmp", "/usr", "/usr/bin","/kernel/modules","/data/app/system",
              "/usr/lib", "/usr/lib32", "/usr/libexec", "/usr/share","/kernel/firmware",
              "/run", "/usr/local", "/usr/local/bin", "/usr/local/lib", "/usr/local/libexec",
              "/usr/local/lib32","/data/log","/data/lock","/var","/data/srv/www","/usr/src"}:
        inarytools.dodir(i)

    autotools.rawInstall("DESTDIR={}".format(get.installDIR()))


# SulinOS GNU/Linux filesystem architecture (like android and LFS)
#
#    /data/
#        ->app          = Userspace application directory
#            ->system   = Userspace optional system application
#        ->data         = Infinitive loop directory ( /data linked here )
#        ->media        = userspace mounted volumes ( /var/run/mount linked here )
#        ->user         = User's home directory
#            ->root     = The root home ( /root linked here )
#        ->misc         = Is an unused directory
#        ->tmp          = Temp directory ( linked /tmp )
#        ->srv          = Served directory
#            ->www      = Web directory
#        ->log          = System logs
#        ->lock         = System locks
#
#    /kernel/
#         ->boot        = Linux kernel files ( /boot linked here )
#         ->modules     = Linux kernel module files ( /lib/modules linked here )
#         ->firmware    = Linux kernel firmware files ( /lib/firmware linked here )
#         ->dev         = The dev directory ( /dev linked here )
#         ->sys         = The sys directory ( /sys linked here )
#         ->proc        = The proc directory ( /proc linked here )
#
#    /run => /var/run
#

    inarytools.dosym("../run", "/var/run")
    inarytools.dosym("../tmp", "/var/tmp")
    inarytools.dosym("data/user/root", "/root")
    inarytools.dosym("../tmp/", "/data/tmp")
    inarytools.dosym("../data", "/data/data")
    inarytools.dosym("../data/log", "/var/log")
    inarytools.dosym("../data/srv/www", "/var/www")
    inarytools.dosym("../data/lock", "/var/lock")
    inarytools.dosym("../run/media", "/data/media")

    inarytools.dosym("../dev","/kernel/dev")
    inarytools.dosym("../sys","/kernel/sys")
    inarytools.dosym("../proc","/kernel/proc")
    inarytools.dosym("kernel/boot", "/boot")
    inarytools.dosym("../kernel/modules", "/lib/modules")
    inarytools.dosym("../kernel/firmware", "/lib/firmware")

    if get.ARCH() == "x86_64":
        # Directories for 32bit libraries
        inarytools.dodir("/lib32")
        inarytools.dodir("/usr/lib32")
        inarytools.dodir("/usr/local/lib32")

        # Hack for binary blobs built on multi-lib systems
        inarytools.dosym("lib", "/lib64")
        inarytools.dosym("lib32", "/libx32")
        inarytools.dosym("lib", "/usr/lib64")
        inarytools.dosym("../lib", "/usr/lib/x86_64-linux-gnu")
        inarytools.dosym("../lib32", "/usr/lib32/i686-linux-gnu")
        inarytools.dosym("lib32", "/usr/libx32")
        inarytools.dosym("lib", "/usr/local/lib64")
        inarytools.dosym("lib32", "/usr/local/libx32")
        inarytools.dosym("../lib", "/usr/local/lib/x86_64-linux-gnu")
        inarytools.dosym("../lib32", "/usr/local/lib32/i686-linux-gnu")

    # Adjust permissions
    shelltools.system("chmod 755 -R {}/".format(get.installDIR()))
    shelltools.chmod("{}/usr/share/baselayout/shadow".format(get.installDIR()), 0o600)
    shelltools.chmod("{}/data/user/root".format(get.installDIR()), 0o600)
예제 #18
0
def fixperms(d):
    for root, dirs, files in os.walk(d):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0o755)
        for name in files:
            shelltools.chmod(os.path.join(root, name), 0o644)
예제 #19
0
def setup():
    shelltools.chmod("Makefile", 0o755)
    inarytools.dosed("Makefile", "@make", "@$(MAKE) ")
    inarytools.dosed("Makefile", "make;", "$(MAKE);")
예제 #20
0
 def chmod(path, mode):
     shelltools.chmod("%s%s" % (get.installDIR(), path), mode)
예제 #21
0
def setup():
    autotools.configure("--enable-shared")

    shelltools.chmod("examples/*", 0o644)
예제 #22
0
def setup():
    for d in ("README.TXT", "TODO", "Changes"):
        shelltools.chmod(d, 0o644)

    perlmodules.configure()
예제 #23
0
def setup():
    shelltools.chmod("bk-7.3.2-x86_64-glibc27-linux.bin", 0o755)