Пример #1
0
def install():
    shelltools.cd("build")

    # Do the 'make install' from the build directory
    autotools.rawInstall('prefix=/usr \
                          bindir="%s" \
                          includedir="%s/include" \
                          datadir="%s" \
                          mandir="%s/man" \
                          infodir="%s/info" \
                          DESTDIR="%s" \
                          LIBPATH="%s"' % (BINPATH, LIBPATH, DATAPATH, DATAPATH, DATAPATH, get.installDIR(), LIBPATH),
                          "install-target-libstdc++-v3")

    confdirbase = ldconfig["system"][0].rsplit("/", 1)[0]
    pisitools.dodir(confdirbase)

    # we'll move this into a directory we can put at the end of ld.so.conf
    # other than the normal versioned directory, so that it doesnt conflict
    # with gcc 3.3.3
    pisitools.domove("/%s/lib*.so.*" % LIBPATH, "/usr/lib/libstdc++-v3/")
    shelltools.echo("%s/%s" % (get.installDIR(), ldconfig["system"][0]), ldconfig["system"][1])

    if multilib:
        pisitools.domove("/%s/32/lib*.so.*" % LIBPATH, "/usr/lib32/libstdc++-v3/")
        shelltools.echo("%s/%s" % (get.installDIR(), ldconfig["multilib"][0]), ldconfig["multilib"][1])


    # somehow /usr/share is left in farm, but not on my system
    for i in ["/usr/lib/gcc-lib", "/usr/share/gcc-data", "/usr/share"]:
        if shelltools.isDirectory("%s/%s" % (get.installDIR(), i)):
            pisitools.removeDir(i)
Пример #2
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Remove files we don't want
    pisitools.remove("/etc/dhcpd.conf")
    pisitools.remove("/etc/dhclient.conf")

    # Install dhcp.schema for LDAP configuration
    pisitools.insinto("/etc/openldap/schema", "contrib/ldap/dhcp.schema")

    # dhclient configuration per service support is not ready yet, no need to create this directory for now
    # Install empty directory for dhclient.d scripts
    #pisitools.dodir("/etc/dhcp/dhclient.d")

    # Create directory hierarchy in /var
    pisitools.dodir("/var/lib/dhcpd")
    pisitools.dodir("/var/lib/dhclient")

    # Sample configuration files
    pisitools.insinto("/usr/share/doc/dhcp", "client/dhclient.conf", "dhclient.conf.sample")
    pisitools.insinto("/usr/share/doc/dhcp", "server/dhcpd.conf", "dhcpd.conf.sample")
    pisitools.insinto("/usr/share/doc/dhcp", "doc/examples/dhclient-dhcpv6.conf", "dhclient6.conf.sample")
    pisitools.insinto("/usr/share/doc/dhcp", "doc/examples/dhcpd-dhcpv6.conf", "dhcpd6.conf.sample")

    pisitools.dodoc("LICENSE", "README", "RELNOTES")
Пример #3
0
def install():
    pisitools.dodir("/usr/share")

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

    pisitools.dodoc("README.txt", "doc/*.txt")
    pisitools.dohtml("doc/html/")
Пример #4
0
def install():
    autotools.rawInstall("-f client.mk DESTDIR=%s" % get.installDIR())

    # Any reason to do this renaming ?
    pisitools.rename("/usr/lib/%s-%s" % (get.srcNAME(), get.srcVERSION()), "MozillaFirefox")

    pisitools.remove("/usr/bin/firefox") # new Additional File  will replace that

    #install locales
    for locale in locales:
        pisitools.insinto("/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]" % locale, "%s/dist/xpi-stage/locale-%s/*" % (ObjDir, locale), sym=False)
        pisitools.removeDir("/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/defaults" % locale)
        pisitools.remove("/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/chrome/%s/locale/branding/browserconfig.properties" % (locale, locale))
        pisitools.dosym("../../../../../../browserconfig.properties", "/usr/lib/MozillaFirefox/extensions/langpack-%[email protected]/chrome/%s/locale/branding/browserconfig.properties" % (locale, locale))

    pisitools.dodir("/usr/lib/MozillaFirefox/dictionaries")
    shelltools.touch("%s%s/dictionaries/tr-TR.aff" % (get.installDIR(), "/usr/lib/MozillaFirefox"))
    shelltools.touch("%s%s/dictionaries/tr-TR.dic" % (get.installDIR(), "/usr/lib/MozillaFirefox"))
    
    # Install fix language packs
    pisitools.insinto("/usr/lib/MozillaFirefox/extensions", "./fixlang-ff/*")

    # Create profile dir, we'll copy bookmarks.html in post-install script
    pisitools.dodir("/usr/lib/MozillaFirefox/defaults/profile")

    # Install branding icon
    pisitools.insinto("/usr/share/pixmaps", "browser/branding/official/default256.png", "firefox.png")

    # Install docs
    pisitools.dodoc("LEGAL", "LICENSE")
Пример #5
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
    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
    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", "INTERFACE", "NEWS", "NOTES", "PROJECTS", "README*", "LICENSE")
Пример #6
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodir("/var/run/clamav")
    pisitools.dodir("/var/log/clamav")

    pisitools.dodoc("AUTHORS", "BUGS", "NEWS", "README", "ChangeLog", "FAQ")
Пример #7
0
def install():
    autotools.rawInstall("-f client.mk install INSTALL_SDK= DESTDIR=%s" % get.installDIR())
    pisitools.dosym("/usr/lib/firefox-38.0.1/browser/icons/mozicon128.png",
                     "/usr/share/pixmaps/firefox.png")
    pisitools.dodir("/usr/lib/mozilla/plugins")
    pisitools.dosym("/usr/lib/mozilla/plugins",
                    "/usr/lib/firefox-38.0.1/plugins")
Пример #8
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")
Пример #9
0
def install():
    pisitools.dosbin("logrotate")
    pisitools.doman("logrotate.8")
    pisitools.dodir("/etc/logrotate.d")

    pisitools.dodoc("examples/logrotate*")
    pisitools.dodoc("CHANGES", "COPYING", "README*")
Пример #10
0
def install():
    pisitools.dodir("/usr/share")

    wanteddirs = []
    for file_ in shelltools.ls('.'):
        if shelltools.isDirectory(file_) and not "texmf" in file_:
            wanteddirs.append(file_)

    for folder in wanteddirs:
        pisitools.insinto("/usr/share/texmf-dist", folder)

    if shelltools.can_access_directory("texmf-dist"):
        # Recursively copy on directory on top of another, overwrite duplicate files too
        copy_tree("texmf-dist", "%s/usr/share/texmf-dist" % get.installDIR())

    ## chmod of script files
    script_dir = get.installDIR() + "/usr/share/texmf-dist/scripts"
    if shelltools.can_access_directory(script_dir):
        for root, dirs, files in os.walk(script_dir):
            for name in files:
                shelltools.chmod(os.path.join(root, name), 0755)

    pisitools.remove("/usr/share/texmf-dist/scripts/m-tx/m-tx.lua")
    pisitools.remove("/usr/share/texmf-dist/scripts/musixtex/musixtex.lua")
    pisitools.remove("/usr/share/texmf-dist/scripts/musixtex/musixflx.lua")
    pisitools.remove("/usr/share/texmf-dist/scripts/pmx/pmx2pdf.lua")
Пример #11
0
def install():
    autotools.rawInstall("INSTALL_PREFIX=%s MANDIR=/usr/share/man" % get.installDIR())

    # Rename conflicting manpages
    pisitools.rename("/usr/share/man/man1/passwd.1", "ssl-passwd.1")
    pisitools.rename("/usr/share/man/man3/rand.3", "ssl-rand.3")
    pisitools.rename("/usr/share/man/man3/err.3", "ssl-err.3")

    if get.buildTYPE() == "_emul32":
        from distutils.dir_util import copy_tree
        copy_tree("%s/_emul32/lib32/" % get.installDIR(), "%s/usr/lib32" % get.installDIR())
        pisitools.removeDir("/_emul32")
        pisitools.remove("/usr/lib32/*.a")
        path = "%s/usr/lib32/pkgconfig" % get.installDIR()
        for f in shelltools.ls(path): pisitools.dosed("%s/%s" % (path, f), "^(prefix=\/)_emul32", r"\1usr")
        return

    # Move engines to /usr/lib/openssl/engines
    pisitools.dodir("/usr/lib/openssl")
    pisitools.domove("/usr/lib/engines", "/usr/lib/openssl")

    # Certificate stuff
    pisitools.dobin("tools/c_rehash")
    pisitools.dosym("/etc/pki/tls/certs/ca-bundle.crt","/etc/pki/tls/cert.pem")


    # Create CA dirs
    for cadir in ["CA", "CA/private", "CA/certs", "CA/crl", "CA/newcerts"]:
        pisitools.dodir("/etc/pki/%s" % cadir)

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

    pisitools.dohtml("doc/*")
    pisitools.dodoc("CHANGES*", "FAQ", "LICENSE", "NEWS", "README", "doc/*.txt")
Пример #12
0
def install():
    autotools.install()

    pisitools.dodoc("README", "HOWTO", "COPYING")

    pisitools.dodir("/%s/fio/examples" % get.docDIR())
    pisitools.insinto("/%s/fio/examples" % get.docDIR(), "examples/*")
Пример #13
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())
        )
        pisitools.domove("/usr/bin32/cups-config", "/usr/bin", "cups-config-32bit")
        pisitools.removeDir("/usr/bin32")
        pisitools.removeDir("/usr/sbin32")
        pisitools.removeDir("/usr/serverbin32")

        # remove files now part of cups-filters
        # pisitools.remove("/usr/share/cups/data/testprint")
        pisitools.removeDir("/usr/share/cups/banners")
        pisitools.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(), 0755)

    pisitools.dodir("/usr/share/cups/profiles")

    # Serial backend needs to run as root
    # shelltools.chmod("%s/usr/lib/cups/backend/serial" % get.installDIR(), 0700)

    pisitools.dodoc("CHANGES.txt", "CREDITS.txt", "LICENSE.txt", "README.txt")
Пример #14
0
def install():
    pisitools.dodir("/usr/share")

    wanteddirs = []
    for file_ in shelltools.ls(get.workDIR()):
        if shelltools.isDirectory(file_) and not "texmf" in file_:
            wanteddirs.append(file_)

    for folder in wanteddirs:
        pisitools.insinto("/usr/share/texmf-dist", folder)

    if shelltools.can_access_directory("texmf-dist"):
        # Recursively copy on directory on top of another, overwrite duplicate files too
        copy_tree("texmf-dist", "%s/usr/share/texmf-dist" % get.installDIR())

    ## chmod of script files
    script_dir = get.installDIR() + "/usr/share/texmf-dist/scripts"
    if shelltools.can_access_directory(script_dir):
        for root, dirs, files in os.walk(script_dir):
            for name in files:
                shelltools.chmod(os.path.join(root, name), 0755)

    # copy config file to texmf-config
    pisitools.dodir("/etc/texmf/tex/context/config")
    shelltools.copy("%s/usr/share/texmf-dist/tex/context/config/cont-usr.tex" % get.installDIR(), \
                    "%s/etc/texmf/tex/context/config/cont-usr.tex" % get.installDIR())

    # old packages, we will not provide them
    pisitools.remove("/usr/share/texmf-dist/tex/plain/config/omega.ini")
    pisitools.remove("/usr/share/texmf-dist/tex/plain/config/aleph.ini")
    pisitools.removeDir("/usr/share/texmf-dist/scripts/context/stubs/mswin/")
Пример #15
0
def install():
    pisitools.dodir("/usr")
    pisitools.dodir("/usr/lib")

    autotools.rawInstall("prefix=%s/usr \
                          libdir=%s/usr/lib \
                          datadir=%s/usr/share/sgml/%s "\
                          % (get.installDIR(),\
                             get.installDIR(),\
                             get.installDIR(),\
                             openjade))

    pisitools.dosym("openjade", "/usr/bin/jade")
    pisitools.dosym("onsgmls", "/usr/bin/nsgmls")
    pisitools.dosym("osgmlnorm", "/usr/bin/sgmlnorm")
    pisitools.dosym("ospam", "/usr/bin/spam")
    pisitools.dosym("ospent", "/usr/bin/spent")
    pisitools.dosym("osx", "/usr/bin/sgml2xml")

    pisitools.insinto("/usr/share/sgml/%s" % openjade, "dsssl/builtins.dsl") 

    pisitools.insinto("/usr/share/sgml/%s/dsssl" % openjade, "dsssl/dsssl.dtd") 
    pisitools.insinto("/usr/share/sgml/%s/dsssl" % openjade, "dsssl/style-sheet.dtd") 
    pisitools.insinto("/usr/share/sgml/%s/dsssl" % openjade, "dsssl/fot.dtd")
    pisitools.insinto("/usr/share/sgml/%s/pubtext" % openjade, "pubtext/*")

    pisitools.dodoc("COPYING", "NEWS", "README", "VERSION")
    pisitools.dohtml("doc/*.htm")

    pisitools.insinto("/usr/share/doc/%s-%s/jadedoc" % (openjade, get.srcRELEASE()), "jadedoc/*.htm")
    pisitools.insinto("/usr/share/doc/%s-%s/jadedoc/images" % (openjade, get.srcRELEASE()), "jadedoc/images/*")
Пример #16
0
def install():
    pisitools.dodir("/usr/bin")
    pisitools.dodir("/usr/share/man/man1")

    shelltools.system("./vncinstall %s/usr/bin %s/usr/share/man" % (get.installDIR(), get.installDIR()))

    pisitools.insinto("/usr/share/tightvnc/classes", "classes/*")
Пример #17
0
def install():
    # ejabberdctl
    pisitools.insinto("/usr/sbin", "tools/*")

    # mnesia path
    pisitools.dodir("/var/lib/jabber/spool")

    shelltools.cd("src")
    # NOTE: Don't forget to update service.py with new versions...
    destdir = get.installDIR()
    ejabberddir = "%s/usr/lib/erlang/lib/%s-%s" % (destdir,
                                                   get.srcNAME(),
                                                   get.srcVERSION())
    etcdir = "%s/etc/jabber/" % destdir
    logdir = "%s/var/log/jabber/" % destdir
    autotools.rawInstall("DESTDIR=%s EJABBERDDIR=%s ETCDIR=%s LOGDIR=%s" % (
            destdir,
            ejabberddir,
            etcdir,
            logdir))

    pisitools.dosed("%s/etc/jabber/ejabberd.cfg" % get.installDIR(),
                    #"\.\/ssl\.pem",
                    "/path/to/ssl.pem",
                    "/etc/jabber/ssl.pem")
    shelltools.cd("../")
    pisitools.dodoc("ChangeLog", "COPYING")
Пример #18
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    
    pisitools.dodir("/etc/pango")
    shelltools.touch(get.installDIR() +"/etc/pango/pango.modules")
    
    pisitools.dodoc("AUTHORS", "ChangeLog*", "COPYING", "README", "NEWS")
Пример #19
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.remove("/lib/modules/%s/modules*" % KDIR)
    pisitools.dodir("/etc/ndiswrapper")

    pisitools.dodoc("README", "AUTHORS", "ChangeLog")
Пример #20
0
def install():
    if get.buildTYPE() == "emul32":
        autotools.rawInstall("-C src \
                              lib_LTLIBRARIES=\"%s\" \
                              DESTDIR=%s" % (emul32_libs, get.installDIR()),
                             "install-libLTLIBRARIES")
        autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-pkgconfigDATA")
        return

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

    # Disable autospawn by default
    shelltools.system("sed -e '/autospawn/iautospawn=no' -i '%s/etc/pulse/client.conf'" % get.installDIR())
    # Speed up pulseaudio shutdown
    # Lower resample quality, saves CPU
    shelltools.system("sed -e '/exit-idle-time/iexit-idle-time=0' \
                       -e '/resample-method/iresample-method=speex-float-0' \
                       -i '%s/etc/pulse/daemon.conf'" % get.installDIR())

    # Needed for service.py
    pisitools.dodir("/run/pulse")
    pisitools.dodir("/var/lib/pulse")

    # HAL is no longer supported by default
    pisitools.removeDir("/etc/dbus-1")

    pisitools.dodoc("README", "LICENSE", "GPL", "LGPL")
    pisitools.dohtml("doxygen/html/*")
Пример #21
0
def install():
    pisitools.dodir("/opt/eclipse")

    pisitools.insinto("/opt/eclipse", "plugins")
    pisitools.insinto("/opt/eclipse", "features")

    fixPermissions()
Пример #22
0
def install():
    autotools.rawInstall("DESTDIR=%s \
                          udevscriptdir=/lib/udev" % get.installDIR())

    HAL_FDI="usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
    UDEV_RULES="lib/udev/rules.d/40-libgphoto2.rules"
    CAM_LIST="usr/lib/libgphoto2/print-camera-list"
    CAM_LIBS="usr/lib/libgphoto2/%s" % get.srcVERSION()

    # Create hal directory
    pisitools.dodir(shelltools.dirName(HAL_FDI))

    # Export the necessary env variables
    shelltools.export("CAMLIBS", "%s/%s" % (get.installDIR(), CAM_LIBS))
    shelltools.export("LIBDIR", "%s/usr/lib/" % get.installDIR())
    shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/" % get.installDIR())

    # Generate HAL FDI file
    f = open(os.path.join(get.installDIR(), HAL_FDI), "w")
    f.write(os.popen("%s/%s hal-fdi" % (get.installDIR(), CAM_LIST)).read())
    f.close()

    # Generate UDEV rule which will replace the HAL FDI when HAL is deprecated
    """
    pisitools.dodir("/lib/udev/rules.d")
    f = open(os.path.join(get.installDIR(), UDEV_RULES), "w")
    f.write(os.popen("%s/%s udev-rules version 136 mode 0664 group pnp" % (get.installDIR(), CAM_LIST)).read())
    f.close()
    """

    pisitools.removeDir("/usr/share/doc/libgphoto2_port")

    pisitools.dodoc("ChangeLog", "NEWS*", "README", "AUTHORS", "TESTERS", "MAINTAINERS", "HACKING")
Пример #23
0
def install():
    for d in (anthome, os.path.join(anthome, "lib"), os.path.join(anthome, "etc"), os.path.join(anthome, "bin"), javadir, os.path.join(javadir, "ant")):
        pisitools.dodir(d)

    shelltools.cd("build/lib")

    for f in ("ant.jar", "ant-launcher.jar", "ant-bootstrap.jar"):
        pisitools.insinto(javadir, f, f.replace(".jar", "-%s.jar" % get.srcVERSION()))
        pisitools.dosym(os.path.join(javadir, f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(anthome, "lib", f))
        pisitools.dosym(os.path.join(javadir, f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(javadir, f))

    #Install optional JAR files to /usr/share/java/ant
    for f in ("ant-jmf.jar", "ant-junit.jar", "ant-swing.jar"):
        pisitools.insinto(os.path.join(javadir, "ant"), f, f.replace(".jar", "-%s.jar" % get.srcVERSION()))
        pisitools.dosym(os.path.join(javadir, "ant", f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(anthome, "lib", f))
        pisitools.dosym(os.path.join(javadir, "ant", f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(javadir, "ant", f))


    shelltools.cd("../../src/script")
    for f in glob.glob("*.bat"):
        shelltools.unlink(f)

    for f in glob.glob("*.cmd"):
        shelltools.unlink(f)

    pisitools.dobin("*")
    pisitools.domove("/usr/bin/antRun*", os.path.join(anthome, "bin"))
    shelltools.cd("../../")

    #Install XSLs
    pisitools.insinto(os.path.join(anthome, "etc"), "src/etc/*.xsl")

    pisitools.dodoc("KEYS", "NOTICE", "README", "WHATSNEW", "LICENSE")
Пример #24
0
def install():
    autotools.install("prefix=%s" % get.installDIR())

    # This will be the new place for module-autoloading (systemd)
    pisitools.dodir("/etc/modules-load.d")

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "TODO")
Пример #25
0
def install():
    # These should not be set, else the zoneinfo do not always get installed ...
    undef_variables()
    
    shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR())
    autotools.rawInstall("PARALLELMFLAGS=${MAKEOPTS} install_root=%s" % get.installDIR())

    # Some things want this, notably ash.
    pisitools.dosym("libbsd-compat.a", "/usr/lib/libbsd.a")

    # install glibc-info
    autotools.rawInstall("PARALLELMFLAGS=${MAKEOPTS} install_root=%s info -i" % get.installDIR())

    setup_locales()

    # We'll take care of the cache ourselves
    pisitools.remove("/etc/ld.so.cache")

    pisitools.dodir("/usr/share/man/man3")
    pisitools.doman("../%s/man/*.3thr" % get.workDIR())

    pisitools.dodoc("BUGS", "ChangeLog*", "CONFORMANCE", "FAQ", "INTERFACE", "NEWS", "NOTES", "PROJECTS", "README*")

    # Is this next line actually needed or does the makefile get it right?
    # 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.  
    pisitools.remove("/etc/localtime")
Пример #26
0
def install():
    dirs = ["/usr/bin", "/etc/vim", "/usr/share", "/usr/share/man", "/usr/share/vim"]
    for a in dirs:
        pisitools.dodir(a)

    install_args = (
        "DESTDIR=%s \
                  BINDIR=/usr/bin \
                  MANDIR=/usr/share/man \
                  DATADIR=/usr/share"
        % get.installDIR()
    )

    autotools.rawInstall(
        "-C src/  %s \
                                   installruntime \
                                   installmacros \
                                   installtutor \
                                   installtools \
                                   install-languages \
                                   install-icons"
        % install_args
    )

    autotools.rawInstall("-C build-gui/src %s" % install_args, "installvimbin")

    pisitools.dosym("vim", "/usr/bin/vi")
    pisitools.dosym("/usr/bin/vim", "/bin/ex")

    pisitools.rename("/usr/bin/vim-gtk", "gvim")

    for link in ("evim", "eview", "gview", "gvimdiff", "rgview", "rgvim"):
        pisitools.dosym("gvim", "/usr/bin/%s" % link)
Пример #27
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # For temporary mounts
    pisitools.dodir("/run/libgpod")

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README*")
Пример #28
0
def install():
    autotools.rawInstall ("DESTDIR=%s" % get.installDIR())

    # udev compatibility stuff
    pisitools.dosym ("/usr/bin/udevadm", "/sbin/udevadm")
    pisitools.dosym ("/usr/lib/systemd/systemd-udevd", "/lib/udev/udevd")
    pisitools.dosym ("/usr/lib/libudev.so", "/usr/lib/libudev.so.0")

    # Final tweaks ^^
    pisitools.dosym ("/usr/lib/systemd/systemd", "/bin/systemd")
    pisitools.dosym ("/usr/lib/systemd/systemd", "/sbin/init")

    # Make the journal directory
    pisitools.dodir ("/var/log/journal")

    # Install controll symlinks
    for control_item in ["reboot", "shutdown", "poweroff", "halt"]:
        pisitools.dosym ("/usr/bin/systemctl", "/sbin/%s" % control_item)

    # Remove unwanted rpm macro
    pisitools.removeDir ("/usr/lib/rpm")

    
    # Set defaults (enable readahead)
    pisitools.dosym("/usr/lib/systemd/system/systemd-readahead-collect.service",
                    "/usr/lib/systemd/system/default.target.wants/systemd-readahead-collect.service")

    # Set defaults (enable readahead)
    pisitools.dosym("/usr/lib/systemd/system/systemd-readahead-replay.service",
                    "/usr/lib/systemd/system/default.target.wants/systemd-readahead-replay.service")
Пример #29
0
def install():
    shelltools.export("GOROOT_FINAL", "/usr/lib/go")
    shelltools.cd("%s/go-go1.6.3" % get.workDIR())

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

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

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

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

    pisitools.removeDir("/usr/lib/go/pkg/bootstrap")

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

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

    pisitools.dodoc("VERSION", "LICENSE", "PATENTS", "README*", "AUTHORS", "CONTRIBUTORS")
Пример #30
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.remove("/usr/include/libfm")
    pisitools.dodir("/usr/include/libfm")
    pisitools.domove("/usr/include/libfm-1.0/*", "/usr/include/libfm")
    pisitools.removeDir("/usr/include/libfm-1.0")
    pisitools.dodoc("AUTHORS", "COPYING")
Пример #31
0
def install():
    # create needed diretories for install
    pisitools.dodir("/usr/include")
    pisitools.dodir("/usr/lib")
    pisitools.dodir("/usr/bin")
    pisitools.dodir("/usr/share/man/man1")

    crosstools.rawInstall(
        "prefix=%s/usr libdir=%s/usr/lib mandir=%s/usr/share/man/man1" %
        (get.installDIR(), get.installDIR(), get.installDIR()))

    pisitools.insinto("/usr/include", "jpegint.h")
    pisitools.insinto("/usr/include", "jinclude.h")

    pisitools.dodoc("README", "install.doc", "usage.doc", "wizard.doc",
                    "change.log", "libjpeg.doc", "example.c", "structure.doc",
                    "filelist.doc", "coderules.doc")
Пример #32
0
def install():
    # Setup files in /etc
    pisitools.dodir("/etc")
    shelltools.move("etc/", "%s/etc" % get.installDIR())

    shelltools.chmod("%s/etc/shadow" % get.installDIR(), 0600)

    shelltools.echo("%s/etc/pardus-release" % get.installDIR(),
                    "Pardus 2007.3")

    # Install some files to /usr/share/baselayout instead of /etc to keep from overwriting the user's settings,
    for file in ("passwd", "shadow", "group", "fstab", "hosts", "ld.so.conf",
                 "resolv.conf", "inittab.live"):
        pisitools.domove("/etc/%s" % file, "/usr/share/baselayout")

    # Install baselayout documentation
    pisitools.doman("man/*.*")

    # Install baselayout utilities
    shelltools.cd("src/")
    autotools.rawInstall("DESTDIR=\"%s\"" % get.installDIR())

    # Create needed directories !!!
    create_directories()
Пример #33
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # needs to exist for the system socket
    pisitools.dodir("/var/run/dbus")
    pisitools.dodir("/var/lib/dbus")
    pisitools.dodir("/usr/share/dbus-1/services")

    pisitools.dodoc("AUTHORS", "ChangeLog", "HACKING", "NEWS", "README", "doc/TODO", "doc/*.txt")
    pisitools.dohtml("doc/")
Пример #34
0
def install():
    pisitools.dodir("/usr/bin")
    pisitools.dodir("/etc/acpi/actions")
    pisitools.dodir("/etc/acpi/events")

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

    pisitools.doman("acpid.8", "acpi_listen.8")

    pisitools.dodoc("Changelog", "README", "COPYING", "TODO")
Пример #35
0
def install():
    pisitools.insinto("/usr/share/uzakdiyarlar/bin", "src/ud")
    pisitools.dosym("/usr/share/uzakdiyarlar/area/area.lst", "/usr/share/uzakdiyarlar/bin/area.lst")

    pisitools.insinto("/usr/share/uzakdiyarlar/area", "area/*")
    shelltools.copytree("belgeler", "%s/usr/share/uzakdiyarlar" % get.installDIR())

    pisitools.dodir("/usr/share/uzakdiyarlar/gods")
    pisitools.dodir("/usr/share/uzakdiyarlar/player")
    pisitools.dodir("/usr/share/uzakdiyarlar/log")
Пример #36
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodir("/run/clamav")
    pisitools.dodir("/var/lib/clamav")
    shelltools.chmod(get.installDIR() + "/var/lib/clamav", 0777)
    pisitools.dodir("/var/log/clamav")
    shelltools.touch(get.installDIR() + "/var/log/clamav/freshclam.log")
    shelltools.chmod(get.installDIR() + "/var/log/clamav/freshclam.log", 0660)
    shelltools.chown("%s/var/log/clamav/freshclam.log" % get.installDIR(), "clamav", "clamav")
Пример #37
0
def install():
    pisitools.dosbin("vsftpd")
    pisitools.dodoc("AUDIT", "BENCHMARKS", "BUGS", "Changelog", "FAQ",
                    "LICENSE", "README", "README.security", "REWARD", "SIZE",
                    "SPEED", "TODO", "TUNING")
    pisitools.newdoc("vsftpd.conf", "vsftpd.conf.example")
    pisitools.doman("vsftpd.conf.5", "vsftpd.8")
    pisitools.dodir("/home/ftp")
    pisitools.dodir("/home/ftp/incoming")
    pisitools.dodir("/usr/share/vsftpd/empty")
Пример #38
0
def install():
    pisitools.dosed("bin/adduser.py", "plugdev", "removable")
    shelltools.system("./setup.py install %s" % get.installDIR())

    # in new tarball remove
    shelltools.chmod(get.installDIR() + "/sbin/mudur_cgroupfs.py", 0755)

    pisitools.dodir("/etc/mudur/services/enabled")
    pisitools.dodir("/etc/mudur/services/disabled")
    pisitools.dodir("/etc/mudur/services/conditional")
Пример #39
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.removeDir("/usr/share/doc/dovecot")
    pisitools.remove("/etc/dovecot/dovecot-example.conf")
    pisitools.dodoc("AUTHORS", "NEWS", "README", "TODO")
    pisitools.insinto("/etc/dovecot/ssl", "doc/mkcert.sh")
    pisitools.dodoc("doc/*.txt", "doc/*.conf", "doc/*.cnf")
    pisitools.dodir("/etc/dovecot/ssl")
    pisitools.dodir("/var/run/dovecot")
    pisitools.dodir("/var/run/dovecot/login")
Пример #40
0
def install():
    autotools.rawInstall("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" %
                         get.installDIR())

    # Extra headers
    pisitools.insinto("/usr/include/mysql", "include/my_config.h")
    pisitools.insinto("/usr/include/mysql", "include/my_dir.h")

    # Links
    pisitools.dosym("mysqlcheck", "/usr/bin/mysqlanalyze")
    pisitools.dosym("mysqlcheck", "/usr/bin/mysqlrepair")
    pisitools.dosym("mysqlcheck", "/usr/bin/mysqloptimize")

    # Cleanup
    pisitools.remove("/usr/bin/make*distribution")
    pisitools.remove("/usr/share/mysql/make_*_distribution")
    pisitools.remove("/usr/share/mysql/mysql.server")
    pisitools.remove("/usr/share/mysql/binary-configur")
    pisitools.remove("/usr/share/mysql/mysql-log-rotate")
    pisitools.remove("/usr/share/mysql/postinstall")
    pisitools.remove("/usr/share/mysql/preinstall")
    pisitools.remove("/usr/share/mysql/mi_test*")
    pisitools.remove("/usr/share/mysql/*.spec")
    pisitools.remove("/usr/share/mysql/*.plist")
    pisitools.remove("/usr/share/mysql/my-*.cnf")

    # Move libs to /usr/lib
    pisitools.domove("/usr/lib/mysql/libmysqlclient*.so*", "/usr/lib")

    # Links to libs
    pisitools.dosym("../libmysqlclient.so", "/usr/lib/mysql/libmysqlclient.so")
    pisitools.dosym("../libmysqlclient_r.so",
                    "/usr/lib/mysql/libmysqlclient_r.so")

    # No tests
    pisitools.removeDir("/usr/share/mysql/mysql-test")

    # Config
    pisitools.insinto("/etc/mysql", "scripts/mysqlaccess.conf")

    # Data dir
    pisitools.dodir("/var/lib/mysql")

    # Logs
    pisitools.dodir("/var/log/mysql")
    shelltools.touch("%s/var/log/mysql/mysql.log" % get.installDIR())
    shelltools.touch("%s/var/log/mysql/mysql.err" % get.installDIR())

    # Runtime data
    pisitools.dodir("/var/run/mysqld")

    # Documents
    pisitools.dodoc("README", "COPYING", "ChangeLog", "EXCEPTIONS-CLIENT")
    pisitools.dodoc("Docs/manual.txt," "Docs/manual.ps")
    pisitools.dodoc("support-files/my-*.cnf")
Пример #41
0
def install():
    shelltools.cd("fcgi")
    autotools.rawInstall("INSTALL_ROOT=\"%s\"" % get.installDIR(), "install")
    autotools.rawInstall("INSTALL_ROOT=\"%s\"" % get.installDIR(),
                         "install-sapi")

    shelltools.cd("../apache")
    autotools.rawInstall("INSTALL_ROOT=\"%s\"" % get.installDIR(),
                         "install-sapi")

    shelltools.cd("../fpm")
    autotools.rawInstall("INSTALL_ROOT=\"%s\"" % get.installDIR(),
                         "install-fpm")

    shelltools.cd("..")

    pisitools.insinto("/etc/php/apache2/", "php.ini-development", "php.ini")
    pisitools.insinto("/etc/php/cli/", "php.ini-development", "php.ini")

    pisitools.dosed("%s/etc/php/*/php.ini" % get.installDIR(),
                    "(extension_dir = .*)", ";\\1")
    pisitools.dosed("%s/etc/php/*/php.ini" % get.installDIR(),
                    r";include_path = \".:/php/includes\"",
                    "include_path = \".:/usr/share/php5/PEAR\"")

    pisitools.dodir("/etc/php/ext")
    pisitools.dodir("/etc/php/apache2/ext")
    pisitools.dodir("/etc/php/cli/ext")

    # Operations for php-zip package
    pisitools.dosym("/etc/php/ext/10-php-zip.ini",
                    "/etc/php/cli/ext/10-php-zip.ini")

    # Operations for php-imap package
    pisitools.dosym("/etc/php/ext/11-php-imap.ini",
                    "/etc/php/cli/ext/11-php-imap.ini")
    pisitools.dosym("/etc/php/ext/11-php-imap.ini",
                    "/etc/php/apache2/ext/11-php-imap.ini")

    # Move /var/run to run
    pisitools.domove("/var/run", "/")

    pisitools.remove("/etc/php-fpm.conf.default")

    pisitools.dodir("/var/log/php-fpm/")
Пример #42
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("CHANGES", "COPYRIGHT", "FAQ", "README")
    pisitools.dodoc("doc/misc/*", "doc/draft/*", "doc/rfc/*",
                    "contrib/named-bootconf/named-bootconf.sh",
                    "contrib/nanny/nanny.pl")
    pisitools.dohtml("doc/arm/*")

    pisitools.dodir("/var/bind")
    pisitools.dodir("/var/bind/pri")
    pisitools.dodir("/var/bind/sec")
    pisitools.dodir("/var/run/named")

    pisitools.dosym("/var/bind/pri", "/etc/bind/pri")
    pisitools.dosym("/var/bind/sec", "/etc/bind/sec")
    pisitools.dosym("/var/bind/named.ca", "/var/bind/root.cache")
    pisitools.remove("/usr/bin/isc-config.sh")
Пример #43
0
def install():
    pisitools.dodir("/usr/share/applications")
    pisitools.dodir("/usr/share/application-registry")
    pisitools.dodir("/usr/share/mime-info")

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

    pisitools.dosym("gimp-remote-2.3", "/usr/bin/gimp-remote")
    pisitools.dosym("gimp-2.3", "/usr/bin/gimp")

    pisitools.dodoc("AUTHORS", "ChangeLog*", "HACKING", "NEWS", "README*")
Пример #44
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

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

    pisitools.dodir("/var/run/openldap")
    pisitools.dodir("/var/run/openldap/slapd")
    pisitools.dodir("/etc/openldap/ssl")

    pisitools.dodoc("ANNOUNCEMENT", "CHANGES", "COPYRIGHT", "README", "LICENSE")
Пример #45
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")
Пример #46
0
def install():
    exportstuff()

    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dodoc("docs/*", "README", "AUTHORS")

    pisitools.dodir("/lib/splash/tmp")
    pisitools.dodir("/lib/splash/cache")
    pisitools.dodir("/lib/splash/bin")

    pisitools.dosym("/lib/splash/bin/fbres", "/sbin/fbres")
    pisitools.dosym("splash_util", "/sbin/splash_util.static")
Пример #47
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodir("/var/lib/nfs/statd/sm")
    pisitools.dodir("/var/lib/nfs/statd/sm.bak")
    pisitools.dodir("/var/lib/nfs/v4recovery")
    pisitools.dodir("/var/lib/nfs/rpc_pipefs")
    # remove conflict man file with nfs-utils
    pisitools.remove("/usr/lib/pkgconfig/libnfsidmap.pc")
    pisitools.remove("/usr/include/nfsidmap_plugin.h")
    pisitools.remove("/usr/include/nfsidmap.h")
    pisitools.remove("/usr/share/man/man5/idmapd.conf.5")
    pisitools.removeDir("/usr/lib/pkgconfig")
    pisitools.removeDir("/usr/include")

    pisitools.insinto("/etc", "utils/mount/nfsmount.conf")

    pisitools.domove("/usr/sbin/rpc.statd", "/sbin/")
    pisitools.dodoc("README", "COPYING")
Пример #48
0
def install():
    shelltools.export("LC_ALL", "C")

    pisitools.dodir("/usr/lib/perl5/5.8.8/i686-linux/CORE")
    pisitools.dosym("../../../../libperl.so.1.5.8", "/usr/lib/perl5/5.8.8/i686-linux/CORE/libperl.so.1.5.8")
    pisitools.dosym("../../../../libperl.so.1.5.8", "/usr/lib/perl5/5.8.8/i686-linux/CORE/libperl.so.1")
    pisitools.dosym("../../../../libperl.so.1.5.8", "/usr/lib/perl5/5.8.8/i686-linux/CORE/libperl.so")

    pisitools.dodir("/usr/lib/perl5/site_perl/5.8.8/i686-linux")

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

    pisitools.remove("/usr/bin/perl")
    pisitools.dosym("perl5.8.8", "/usr/bin/perl")

    # This is to fix a missing c flag for backwards compat
    pisitools.dosed("%s/usr/lib/perl5/5.8.8/i686-linux/Config.pm" % get.installDIR(), "ccflags='", "ccflags='-DPERL5 ")
    pisitools.dosed("%s/usr/lib/perl5/5.8.8/i686-linux/Config.pm" % get.installDIR(), "cppflags='", "cppflags='-DPERL5 ")

    # Perl5 library
    pisitools.dolib("libperl.so.1.5.8")
    libtools.preplib()

    # Remove duplicated docs
    pisitools.remove("/usr/share/man/man3/Digest::MD5.3pm")
    pisitools.remove("/usr/share/man/man3/Digest.3pm")
    pisitools.remove("/usr/share/man/man3/Digest::base.3pm")
    pisitools.remove("/usr/share/man/man3/Digest::file.3pm")
    pisitools.remove("/usr/share/man/man3/Net::Netrc.3pm")
    pisitools.remove("/usr/share/man/man3/Net::libnetFAQ.3pm")
    pisitools.remove("/usr/share/man/man3/Net::Config.3pm")
    pisitools.remove("/usr/share/man/man3/Net::FTP.3pm")
    pisitools.remove("/usr/share/man/man3/Net::NNTP.3pm")
    pisitools.remove("/usr/share/man/man3/Net::Time.3pm")
    pisitools.remove("/usr/share/man/man3/Net::Domain.3pm")
    pisitools.remove("/usr/share/man/man3/Net::POP3.3pm")
    pisitools.remove("/usr/share/man/man3/Net::SMTP.3pm")
    pisitools.remove("/usr/share/man/man3/Net::Cmd.3pm")
    pisitools.remove("/usr/share/man/man3/MIME::Base64.3pm")
    pisitools.remove("/usr/share/man/man3/MIME::QuotedPrint.3pm")
    pisitools.remove("/usr/share/man/man3/Time::HiRes.3pm")

    # Docs
    pisitools.dodir("/usr/share/doc/%s/html" % get.srcTAG())
    shelltools.system("./perl installhtml \
                       --podroot='.' \
                       --podpath='lib:ext:pod:vms' \
                       --recurse \
                       --htmldir=\"%s/usr/share/doc/%s/html\" \
                       --libpods='perlfunc:perlguts:perlvar:perlrun:perlop'" % (get.installDIR(), get.srcTAG()))

    pisitools.dodoc("Changes*", "Artistic", "Copying", "README", "Todo*", "AUTHORS")
Пример #49
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")
Пример #50
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # clean pyc/pyo's
    pythonmodules.fixCompiledPy()

    # needs to exist for the system socket
    pisitools.dodir("/var/run/dbus")
    pisitools.dodir("usr/lib/dbus-1.0/services")
    pisitools.dodir("/usr/share/dbus-1/services")

    pisitools.dodoc("AUTHORS", "ChangeLog", "HACKING", "NEWS", "README", "doc/TODO")
    pisitools.dohtml("doc/")
Пример #51
0
def install():
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib install-world" %
                         (get.installDIR(), get.installDIR()))

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

    pisitools.dodir("/var/lib/pgsql")
    pisitools.dodir("/var/lib/pgsql/data")
    pisitools.dodir("/var/lib/pgsql/backups")

    pisitools.dodoc("README", "HISTORY", "COPYRIGHT", "doc/README.*",
                    "doc/TODO", "doc/bug.template")
Пример #52
0
def install():
    pisitools.dodir("/usr/share/cups/model")
    pisitools.dodir("/usr/lib/cups/filter")
    pisitools.dodir("/opt")
    pisitools.insinto(
        "/usr/share/cups/model",
        "%s/opt/brother/Printers/HL1210W/cupswrapper/brother-HL1210W-cups-en.ppd"
        % get.workDIR())
    pisitools.insinto(
        "/usr/lib/cups/filter",
        "%s/opt/brother/Printers/HL1210W/cupswrapper/brother_lpdwrapper_HL1210W"
        % get.workDIR())
    pisitools.insinto("/opt", "opt/*")
Пример #53
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodir("/run/clamav")
    pisitools.dodir("/var/lib/clamav")
    pisitools.dodir("/var/log/clamav")
    shelltools.touch(get.installDIR() + "/var/log/freshclam.log")
    shelltools.chmod(get.installDIR() + "/var/log/freshclam.log", 0600)
    shelltools.chown("%s/var/log/freshclam.log" % get.installDIR(), "clamav",
                     "clamav")

    pisitools.dodoc("AUTHORS", "BUGS", "COPYING*", "NEWS", "README",
                    "ChangeLog", "FAQ")
Пример #54
0
def install():
    autotools.rawInstall(
        "V=1 libdir=/lib usrlibdir=/usr/lib EXTRAS=\"%s\" DESTDIR=%s" %
        (extras, get.installDIR()))

    # Use upstream's persistent rules for devices
    pisitools.insinto("/etc/udev/rules.d", "etc/udev/rules.d/60-*.rules")
    pisitools.insinto("/etc/udev/rules.d", "extras/rule_generator/75-*.rules")
    pisitools.doexe("extras/rule_generator/write_*_rules", "lib/udev/")
    pisitools.doexe("extras/rule_generator/rule_generator.functions",
                    "lib/udev/")

    # create needed directories
    pisitools.dodir("/lib/udev/devices")
    pisitools.dodir("/lib/udev/devices/net")
    pisitools.dodir("/lib/udev/devices/pts")
    pisitools.dodir("/lib/udev/devices/shm")

    pisitools.dodoc("COPYING", "ChangeLog", "FAQ", "HOWTO-udev_for_dev",
                    "README", "TODO", "RELEASE-NOTES")
Пример #55
0
def install():
    pisitools.doman("*.8")
    pisitools.dodoc("README", "README.modules", "ChangeLog")

    pisitools.insinto("/sbin", "sbin/hotplug")

    pisitools.insinto("/etc/hotplug", "etc/hotplug/blacklist")
    pisitools.insinto("/etc/hotplug", "etc/hotplug/hotplug.functions")
    pisitools.insinto("/etc/hotplug", "etc/hotplug/*map")

    pisitools.doexe("etc/hotplug/*.agent", "/etc/hotplug")
    pisitools.doexe("etc/hotplug/*.rc", "/etc/hotplug")
    pisitools.doexe("etc/hotplug/*.permissions", "/etc/hotplug")

    pisitools.dodir("/usr/lib/hotplug/firmware")
    pisitools.dodir("/etc/hotplug/usb")
    pisitools.dodir("/etc/hotplug/pci")
    pisitools.doexe("etc/hotplug.d/default/default.hotplug",
                    "/etc/hotplug.d/default/")

    pisitools.dodir("/var/run/usb")
Пример #56
0
def install():
    pisitools.dodir("/usr/bin")
    pisitools.dodir("/usr/share/man/man1")
    pisitools.dodir("/usr/share/vnc/classes")

    shelltools.cd("vnc_unixsrc")
    shelltools.system("./vncinstall %s/usr/bin %s/usr/share/man" %
                      (get.installDIR(), get.installDIR()))
    pisitools.dodoc("ChangeLog", "LICENCE.TXT", "README", "WhatsNew")

    shelltools.cd("..")
    shelltools.cd("vnc_javasrc")
    autotools.rawInstall("INSTALL_DIR=%s/usr/share/vnc/classes" %
                         get.installDIR())
Пример #57
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")
Пример #58
0
def install():
    pisitools.dosbin("vsftpd")

    pisitools.dodir("/home/ftp")
    pisitools.dodir("/home/ftp/incoming")
    pisitools.dodir("/usr/share/vsftpd/empty")

    pisitools.newdoc("vsftpd.conf", "vsftpd.conf.example")
    pisitools.doman("vsftpd.conf.5", "vsftpd.8")
    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "SECURITY")
    pisitools.insinto("/usr/share/doc/%s" % get.srcTAG(), "EXAMPLE")
    pisitools.dodoc("AUDIT", "BENCHMARKS", "BUGS", "Changelog", "FAQ",\
                    "LICENSE", "README*", "REFS", "REWARD", "SIZE", \
                    "SPEED", "TODO", "TUNING")
Пример #59
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dosed("libzen.pc", "^(Version:).*", r"\1 %s" % get.srcVERSION())
    pisitools.dosed("libzen.pc", "^Libs_Static.*$")
    pisitools.dodir("/usr/lib/pkgconfig")
    pisitools.insinto("/usr/lib/pkgconfig", "libzen.pc")
    shelltools.cd("../../../")
    pisitools.dodoc("*.txt")
    shelltools.cd("Source/ZenLib")
    pisitools.dodir("/usr/include/ZenLib")
    pisitools.insinto("/usr/include/ZenLib", "*.h")
    for it in ["HTTP_Client", "Format/Html", "Format/Http"]:
        pisitools.dodir("/usr/include/ZenLib/%s" % it)
        pisitools.insinto("/usr/include/ZenLib/%s" % it, "%s/*.h" % it)
Пример #60
0
def install():
    shelltools.export("ZLIBSRC", ZLIBSRC)
    shelltools.export("LPNGSRC", LPNGSRC)
    shelltools.export("JPEGSRC", JPEGSRC)
    shelltools.export("FT2SRC", FT2SRC)

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

    pisitools.dodoc("docs/*", "README", "AUTHORS")

    pisitools.dodir("/lib/splash/tmp")
    pisitools.dodir("/lib/splash/cache")
    pisitools.dodir("/lib/splash/bin")
    pisitools.dosym("/lib/splash/bin/fbres", "/sbin/fbres")