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

    # add missing gzcat
    pisitools.dosym("zcat", "/bin/gzcat")

    pisitools.dodoc("ChangeLog", "NEWS", "README", "THANKS", "TODO", "algorithm.doc", "gzip.doc")
Exemple #2
0
def install():
    autotools.rawInstall("BASEDIR=%s" % get.installDIR())

    pisitools.dosbin("ether-wake")
    pisitools.dosym("/bin/hostname", "/usr/bin/hostname")

    pisitools.dodoc("README", "README.ipv6", "TODO")
Exemple #3
0
def install():
    pisitools.insinto("/usr/include", "*.h")
    pisitools.dolib("libtinyxml.so.0.%s" % get.srcVERSION())
    pisitools.dosym("/usr/lib/libtinyxml.so.0.%s" % get.srcVERSION(), "/usr/lib/libtinyxml.so.0")
    pisitools.dosym("/usr/lib/libtinyxml.so.0.%s" % get.srcVERSION(), "/usr/lib/libtinyxml.so")
    pisitools.dodoc("changes.txt", "readme.txt")
    pisitools.dohtml("docs/*")
Exemple #4
0
def install():
    pisitools.insinto("/usr/share/fonts/Type1", "*.afm")
    pisitools.insinto("/usr/share/fonts/Type1", "*.pfb")

    pisitools.dosym("/usr/share/fonts/urw", "/etc/X11/fontpath.d/urw")

    pisitools.dodoc("ChangeLog", "COPYING", "README", "README.tweaks")
Exemple #5
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # Prepare chroot jail
    for d in ("dev", "etc/bind", "etc/pki/dnssec-keys", "lib/bind", "var/tmp", "var/log", "var/run/named", "var/named"):
        pisitools.dodir("%s/%s" % (CHROOT, d))

    # At least drop a file in it
    shelltools.echo("%s%s/README" % (get.installDIR(), CHROOT), "Chroot jail for named")

    # Create directories
    pisitools.dodir("/var/run/named")
    for d in ("pri", "sec", "slaves", "data", "dynamic"):
        pisitools.dodir("%s/%s" % (BINDDIR, d))

    # Create symlinks
    for src, dest in [
        ("named.ca", "%s/root.cache" % BINDDIR),
        ("%s/pri" % BINDDIR, "/etc/bind/pri"),
        ("%s/sec" % BINDDIR, "/etc/bind/sec"),
    ]:
        pisitools.dosym(src, dest)

    # Documentation
    pisitools.dodoc("CHANGES", "COPYRIGHT", "FAQ", "README")
    pisitools.dodoc("doc/misc/*", "contrib/scripts/named-bootconf.sh", "contrib/scripts/nanny.pl")
    pisitools.dohtml("doc/arm/*")
    pisitools.remove("/usr/share/doc/%s/Makefile*" % get.srcNAME())
Exemple #6
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "README*", "TODO")
    pisitools.dosym("/usr/lib/essential", "/usr/share/emovix/codecs")

    fixperms("%s/usr/share/emovix/mplayer-fonts" % get.installDIR())
Exemple #7
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")
Exemple #8
0
def install():
    autotools.install("prefix=%(D)s/usr \
                       BINDIR=%(D)s/usr/bin \
                       LIBDIR=%(D)s/usr/lib \
                       CONFDIR=%(D)s/usr/share/mplayer \
                       DATADIR=%(D)s/usr/share/mplayer \
                       MANDIR=%(D)s/usr/share/man" % {"D": get.installDIR()})

    # set the default skin for gui
    shelltools.copytree("default_skin", "%s/usr/share/mplayer/skins/default" % get.installDIR())

    # codecs conf, not something user will interact with
    pisitools.insinto("/usr/share/mplayer", "etc/codecs.conf")

    # example dvb conf
    pisitools.insinto("/usr/share/mplayer", "etc/dvb-menu.conf")

    # just for fast access to conf
    pisitools.dosym("/etc/mplayer.conf", "/usr/share/mplayer/mplayer.conf")
    pisitools.dosym("/etc/mencoder.conf", "/usr/share/mplayer/mencoder.conf")

    # install docs, tools, examples
    pisitools.dodoc("AUTHORS", "ChangeLog", "README")
    pisitools.insinto("/usr/share/doc/%s/" % get.srcTAG(), "TOOLS")
    pisitools.insinto("/usr/share/doc/%s/" % get.srcTAG(), "DOCS/tech")
    pythonmodules.fixCompiledPy("/usr/share/doc")

    # we will use our own desktop file and icon
    pisitools.remove("/usr/share/applications/mplayer.desktop")
    pisitools.remove("/usr/share/pixmaps/mplayer.xpm")
Exemple #9
0
def install():
    autotools.rawInstall("BUILDROOT=%s" % get.installDIR())

    pisitools.dodir("/usr/share/cups/profiles")
    pisitools.dodir("/usr/libexec/cups/driver")
    pisitools.dodir("/var/log/cups")
    pisitools.dodir("/var/run/cups/certs")
    pisitools.dodir("/var/cache/cups")
    pisitools.dodir("/var/spool/cups/tmp")

    pisitools.dodoc("CHANGES.txt", "CREDITS.txt", "ENCRYPTION.txt", "LICENSE.txt", "README.txt")

    pisitools.dosym("/usr/share/cups/docs", "/usr/share/doc/%s/html" % get.srcTAG())

    # cleanups
    pisitools.removeDir("/etc/pam.d")
    pisitools.removeDir("/usr/share/applications")

    # allow raw printing
    pisitools.dosed("%s/etc/cups/mime.types" % get.installDIR(), "^#application/octet-stream", "application/octet-stream")

    # Enable network connections use PCL drivers, for other OS clients (yes, raw printing)
    pisitools.dosed("%s/etc/cups/mime.convs" % get.installDIR(), "^#application/octet-stream", "application/octet-stream")

    # Let cups use all available protocols, like slp
    pisitools.dosed("%s/etc/cups/cupsd.conf" % get.installDIR(), "^#BrowseProtocols.*", "BrowseProtocols all")
Exemple #10
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")
Exemple #11
0
def install():
    autotools.rawInstall("DESTDIR=%s -j1" % get.installDIR())

    pisitools.domove("%s/system.mwmrc" % mwmlibdir, "%s/" % mwmconfigdir)
    pisitools.dosym("%s/system.mwmrc" % mwmconfigdir, "%s/system.mwmrc" % mwmlibdir)

    pisitools.dodoc("ChangeLog", "README*", " BUGREPORT", "RELEASE", "RELNOTES", "TODO")
Exemple #12
0
def install():
    shelltools.cd("src")
    autotools.rawInstall("DESTDIR=\"%s\" docdir=/%s/%s" % (get.installDIR(), get.docDIR(), get.srcNAME()))

    # Install symnlinks for easier usage
    for f in ["connect", "relay", "server", "setup", "sniff", "start", "status", "stop"]:
        pisitools.dosym("pppoe-%s" % f, "/usr/sbin/adsl-%s" % f)
Exemple #13
0
def install():
    autotools.rawInstall("DESTDIR=\%s" % get.installDIR())

    pisitools.dodoc("README")

    # We maintain this symlink so pisi always uses the correct automake
    pisitools.dosym ("/usr/share/automake-1.14/", "/usr/share/gnuconfig")
Exemple #14
0
def install():
    autotools.install()

    pisitools.insinto("/usr/include", "wvinternal.h")
    pisitools.dosym("/usr/share/man/man1/wvWare.1", "/usr/share/man/man1/wvConvert.1")

    pisitools.dodoc("COPYING", "README")
Exemple #15
0
def install():
    pisitools.insinto("/usr/share/fonts/arkpandora/", "*.ttf")
    pisitools.insinto("/etc/fonts/conf.avail/", "local.conf.arkpandora", "62-arkpandora-fonts.conf")

    pisitools.dosym("../conf.avail/62-arkpandora-fonts.conf", "/etc/fonts/conf.d/62-arkpandora-fonts.conf")

    pisitools.dodoc("COPYRIGHT.TXT", "CHANGELOG.TXT")
Exemple #16
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dosym("libid3-3.8.so.3", "/usr/lib/libid3-3.8.so.0.0.0")
    pisitools.dosym("libid3-3.8.so.0.0.0", "/usr/lib/libid3-3.8.so.0")

    pisitools.dodoc("AUTHORS", "ChangeLog", "HISTORY", "INSTALL", "README", "THANKS", "TODO")
Exemple #17
0
def install():
    texlivemodules.install()

    # Install texmf bin scripts
    bindocs=["epspdf","epspdftk"]
    for i in bindocs:
        pisitools.dosym("%s/%s/texmf-dist/scripts/epspdf/%s" % (get.workDIR(), WorkDir, i), "/usr/bin/%s" % i)
Exemple #18
0
def install():
    autotools.install("prefix=%(D)s/usr \
                       BINDIR=%(D)s/usr/bin \
                       LIBDIR=%(D)s/usr/lib \
                       CONFDIR=%(D)s/usr/share/mplayer \
                       DATADIR=%(D)s/usr/share/mplayer \
                       MANDIR=%(D)s/usr/share/man" % {"D": get.installDIR()})

    # set the default skin for gui
    shelltools.copytree("default_skin", "%s/usr/share/mplayer/skins/default" % get.installDIR())

    # codecs conf, not something user will interact with
    pisitools.insinto("/usr/share/mplayer", "etc/codecs.conf")

    # example dvb conf
    pisitools.insinto("/usr/share/mplayer", "etc/dvb-menu.conf")

    # just for fast access to conf
    pisitools.dosym("/etc/mplayer.conf", "/usr/share/mplayer/mplayer.conf")
    pisitools.dosym("/etc/mencoder.conf", "/usr/share/mplayer/mencoder.conf")

    # install docs, tools, examples
    pisitools.dodoc("AUTHORS", "Changelog", "README", "LICENSE")
    pisitools.insinto("/%s/%s/" % (get.docDIR(), get.srcNAME()), "TOOLS")
    pisitools.insinto("/%s/%s/" % (get.docDIR(), get.srcNAME()), "DOCS/tech")
    pythonmodules.fixCompiledPy("/usr/share/doc")
Exemple #19
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dosym("libinput.so.5.0.0","/usr/lib/libinput.so.0")
    
    #pisitools.remove("/usr/lib/udev/rules.d/80-libinput-device-groups.rules")
    #pisitools.remove("/usr/lib/udev/rules.d/90-libinput-model-quirks.rules")
    pisitools.dodoc("COPYING", "README")
Exemple #20
0
def install():
    # Install into /usr/lib/pardus so we can protect ourself from python updates
    pythonmodules.install("--install-lib=/usr/lib/pardus")

    pisitools.dosym("pisi-cli", "/usr/bin/pisi")

    pisitools.insinto("/etc/pisi", "pisi.conf-%s" % get.ARCH(), "pisi.conf")
Exemple #21
0
def install():
    shelltools.export("ARCH", "")
    autotools.rawInstall('EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
                          EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
                          HOSTCC="%s" CC="%s" \
                          KLIBCARCH=i386 \
                          KLIBCASMARCH=x86 \
                          libdir=/usr/lib \
                          SHLIBDIR=/lib \
                          mandir=/usr/share/man \
                          INSTALLROOT="%s" \
                          INSTALLDIR=/usr/lib/klibc' % (get.CC(), get.CC(), get.installDIR()))

    asmSrcDir = "linux/arch/x86/include/asm"
    asmTargetDir = "/usr/lib/klibc/include/asm"

    # just a workaround for installer bug with 2.6.24, will make it sane later
    pisitools.remove(asmTargetDir)
    pisitools.dosym("asm-x86", asmTargetDir)

    # yet another new kernel compatibility workaround for 2.6.28 and above
    for f in shelltools.ls(asmSrcDir):
        pisitools.insinto(asmTargetDir, "%s/%s" % (asmSrcDir, f))

    fixperms("%s/usr/lib/klibc/include" % get.installDIR())

    for f in ["gunzip", "zcat"]:
        pisitools.remove("/usr/lib/klibc/bin/%s" % f)
        pisitools.dosym("gzip", "/usr/lib/klibc/bin/%s" % f)

    pisitools.dodoc("README", "usr/klibc/LICENSE", "usr/klibc/CAVEATS")

    for f in docs:
        pisitools.newdoc(f, docs[f])
Exemple #22
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")
Exemple #23
0
def install():
    pythonmodules.install()

    # Move PİSİ into /usr/lib/pisi so we can protect ourself from python updates
    pisitools.domove("/usr/lib/%s/site-packages/pisi/" % get.curPYTHON(), "/usr/lib/pardus/", "pisi")
    
    pisitools.dosym("/usr/bin/pisi-cli", "/usr/bin/pisi")
Exemple #24
0
def install():
    pisitools.insinto("/opt/sublime_text_3","*")
    for i in [16,32,48,128,256]:
        pisitools.domove("/opt/sublime_text_3/Icon/{0}x{0}/sublime-text.png".format(i),"/usr/share/icons/hicolor/{0}x{0}/apps".format(i))
    pisitools.removeDir("/opt/sublime_text_3/Icon")    
    for i in ['-','_']:
        pisitools.dosym("/opt/sublime_text_3/sublime_text","/usr/bin/sublime%stext_3" % i)        
Exemple #25
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")
Exemple #26
0
def install():
    #pisitools.insinto("/usr/share/applications/", "sofa.desktop")
    pisitools.insinto("/usr/share/sofastats/", "./sofa_main/*")
    #pisitools.insinto("/usr/share/sofastats/", "usr/share/java/e-takip/etakip.sh")
    pisitools.insinto("/usr/bin/", "./sofa_main/start.py")
    pisitools.dosym("/usr/share/sofastats/start.py", "/usr/bin/sofastats")
    #pisitools.insinto("/usr/share/pixmaps/", "sofa.png")
Exemple #27
0
def install():
    pisitools.insinto("/usr/lib", ".", "lazarus")

    pisitools.dosym("../lib/lazarus/lazarus", "/usr/bin/lazarus")
    pisitools.dosym("../../lib/lazarus/images/ide_icon48x48.png", "/usr/share/pixmaps/lazarus.png")

    pisitools.dodoc("*.txt")
Exemple #28
0
def install():
    pisitools.insinto("/etc", "dist/config/conf.ini", "zemberek-server.ini")
    pisitools.insinto("/etc/dbus-1/system.d", "dist/config/zemberek-server.conf")
    pisitools.insinto("/usr/share/java", "dist/zemberek-server-%s.jar" % get.srcVERSION())
    pisitools.dosym("zemberek-server-%s.jar" % get.srcVERSION(), "/usr/share/java/zemberek-server.jar")

    pisitools.dodoc("dist/lisanslar/zemberek-licence.txt")
def install():
	autotools.rawInstall("DESTDIR=%s" % get.installDIR())
	
	pisitools.domove ("/lib/pkgconfig", "/usr/lib/")
	# Provide links for module control	
	for target in ["modprobe", "modinfo", "rmmod", "insmod", "depmod", "lsmod"]:
		pisitools.dosym ("/bin/kmod", "/sbin/%s" % target)
Exemple #30
0
def install():
    autotools.make("DESTDIR=%s install" % get.installDIR())
    autotools.make("DESTDIR=%s fontdir" % get.installDIR())

    pisitools.dosym("../conf.avail/63-terminus-fonts-fontconfig.conf", "/etc/fonts/conf.d/63-terminus-fonts-fontconfig.conf")

    pisitools.dodoc("README")
Exemple #31
0
def install():
    kde5.install()

    pisitools.dosym("/usr/include/KDE/Phonon", "/usr/include/Phonon")
Exemple #32
0
def install():
    qt4.install("DESTDIR=%s" % get.installDIR())
    pisitools.dosym("/usr/games/glpeces", "/usr/bin/glpeces")
Exemple #33
0
def install():
    pisitools.insinto("/usr/bin/", "AndroidPINCrack.py")
    shelltools.chmod(get.installDIR() + "/usr/bin/AndroidPINCrack.py",
                     mode=0755)
    pisitools.dosym("/usr/bin/AndroidPINCrack.py", "/usr/bin/androidpincrack")
    pisitools.insinto("/usr/share/doc/AndroidPINCrack/", "README.md")
Exemple #34
0
def install():
    shutil.rmtree("PhpStorm-%s/jre64" % Build)
    pisitools.insinto("/opt/phpstorm", "PhpStorm-%s/*" % Build)
    pisitools.dosym("/opt/phpstorm/bin/phpstorm.sh", "/usr/bin/phpstorm")
Exemple #35
0
def install():
    pisitools.dobin("arch/x86/usr/X11R6/bin/*")
    pisitools.dosbin("arch/x86/usr/sbin/*")
    pisitools.dosbin("common/usr/sbin/*")

    DIRS = {
        "common/usr/share/doc/fglrx/examples/etc/acpi/events": "/etc/acpi",
        "common/etc": "/",
        "common/usr/X11R6/include": "/usr",
        "arch/x86/usr/X11R6/lib": "/usr",
        "common/usr/include/GL/": "/usr/lib/xorg/fglrx/include",
        "common/usr/share": "/usr"
    }

    for source, target in DIRS.items():
        pisitools.insinto(target, source)

    pisitools.domove("/usr/lib/modules", "/usr/lib/xorg")
    pisitools.insinto("/usr/lib/xorg/modules", "x710/usr/X11R6/lib/modules/*")

    pisitools.domove("/usr/lib/libGL.so.1.2", "/usr/lib/xorg/fglrx/lib")

    pisitools.dosym("libfglrx_dm.so.1.0", "/usr/lib/libfglrx_dm.so.1")
    pisitools.dosym("libfglrx_dm.so.1", "/usr/lib/libfglrx_dm.so")

    pisitools.dosym("libfglrx_gamma.so.1.0", "/usr/lib/libfglrx_gamma.so.1")
    pisitools.dosym("libfglrx_gamma.so.1", "/usr/lib/libfglrx_gamma.so")

    pisitools.dosym("libfglrx_pp.so.1.0", "/usr/lib/libfglrx_pp.so.1")
    pisitools.dosym("libfglrx_pp.so.1", "/usr/lib/libfglrx_pp.so")

    pisitools.dosym("libfglrx_tvout.so.1.0", "/usr/lib/libfglrx_tvout.so.1")
    pisitools.dosym("libfglrx_tvout.so.1", "/usr/lib/libfglrx_tvout.so")

    # compability links
    pisitools.dosym("/usr", "/usr/X11R6")
    pisitools.dosym("xorg/modules", "/usr/lib/modules")

    # copy compiled kernel module
    pisitools.insinto(
        "/lib/modules/%s/kernel/drivers/char/drm" % get.curKERNEL(),
        "common/lib/modules/fglrx/fglrx.%s.ko" % get.curKERNEL(), "fglrx.ko")

    # Fix library permissions
    shelltools.chmod("%s/usr/lib/lib*.so*" % get.installDIR(), 0755)

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

    # No kitty
    pisitools.removeDir("/usr/share/gnome")
Exemple #36
0
def install():
    pisitools.insinto("/usr/share/frostwire", "*")
    pisitools.insinto("/usr/share/applications", "frostwire.desktop")
    pisitools.dosym("/usr/share/frostwire/frostwire", "/usr/bin/frostwire")

    pisitools.dodoc("changelog", "COPYING", "EULA*")
Exemple #37
0
def install():
    # Install into /usr/lib/pardus so we can protect ourself from python updates
    pythonmodules.install("--install-lib=/usr/lib/pardus")

    pisitools.dosym("pisi-cli", "/usr/bin/pisi")
Exemple #38
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("CREDITS", "ChangeLog", "NEWS", "README", "TODO")

    for f in ["depmod", "insmod", "insmod.static", "modinfo"]:
        pisitools.rename("/sbin/" + f, f + ".old")

    pisitools.remove("/sbin/kallsyms")
    pisitools.dosym("insmod.old", "/sbin/kallsyms")
    pisitools.remove("/sbin/kallsyms.static")
    pisitools.dosym("insmod.static.old", "/sbin/kallsyms.static")
    pisitools.remove("/sbin/ksyms")
    pisitools.dosym("insmod.old", "/sbin/ksyms")
    pisitools.remove("/sbin/ksyms.static")
    pisitools.dosym("insmod.static.old", "/sbin/ksyms.static")
    pisitools.remove("/sbin/lsmod")
    pisitools.dosym("insmod.old", "/sbin/lsmod.old")
    pisitools.remove("/sbin/modprobe")
    pisitools.dosym("insmod.old", "/sbin/modprobe.old")
    pisitools.remove("/sbin/rmmod")
    pisitools.dosym("insmod.old", "/sbin/rmmod.old")

    manDir = "/usr/share/man/man8/"

    for m in ["lsmod", "modprobe", "rmmod", "depmod", "insmod"]:
        pisitools.rename(manDir + m + ".8", m + ".old.8")
Exemple #39
0
def install():
    pisitools.insinto("/", "opt")
    pisitools.insinto("/usr", "usr/bin")
    pisitools.insinto("/usr/share/applications", "google-earth.desktop")
    pisitools.dosym("ld-linux-x86-64.so.2", "/lib/ld-lsb-x86-64.so.3")
Exemple #40
0
def install():
    pisitools.insinto("/usr/lib/chromium-browser/WidevineCdm",
                      "./opt/google/chrome/WidevineCdm/*")
    pisitools.dosym("/usr/lib/chromium-browser/WidevineCdm",
                    "/usr/lib/chromium-dev/WidevineCdm")
Exemple #41
0
def install():
    pythonmodules.install()

    pisitools.remove("%s/bin/pisi-kga" % get.kdeDIR())
    pisitools.dosym("%s/share/apps/pisi_kga/PisiKga.py" % get.kdeDIR(),
                    "%s/bin/pisi-kga" % get.kdeDIR())
Exemple #42
0
def install():
    pisitools.dodir("/usr/share/pixmaps")
    shelltools.copytree("data", "%s/%s" % (get.installDIR(), sharedir))
    pisitools.dosym("/usr/share/magicor/sprites/sun.png",
                    "/usr/share/pixmaps/magicor.png")
Exemple #43
0
def install():
    if get.buildTYPE() == "emul32":
        qt4.install("INSTALL_ROOT=%s32" % get.installDIR())
        shelltools.move("%s32/usr/lib32" % get.installDIR(),
                        "%s/usr" % get.installDIR())
        return

    qt4.install()
    pisitools.dodir(qt4.bindir)

    #Remove phonon, we use KDE's phonon but we have to build Qt with Phonon support for webkit and some other stuff
    pisitools.remove("%s/libphonon*" % qt4.libdir)
    pisitools.removeDir("%s/phonon" % qt4.includedir)
    if shelltools.isDirectory("%s/%s/phonon_backend" %
                              (get.installDIR(), qt4.plugindir)):
        pisitools.removeDir("%s/phonon_backend" % qt4.plugindir)
    pisitools.remove("%s/pkgconfig/phonon*" % qt4.libdir)
    # Phonon 4.5 provides libphononwidgets.so file
    pisitools.remove("%s/designer/libphononwidgets.so" % qt4.plugindir)

    #Remove lost /usr/tests directory
    #pisitools.removeDir("usr/tests")

    # Turkish translations
    shelltools.export("LD_LIBRARY_PATH",
                      "%s%s" % (get.installDIR(), qt4.libdir))
    shelltools.system("%s%s/lrelease l10n-tr/*.ts" %
                      (get.installDIR(), bindirQt4))
    pisitools.insinto(qt4.translationdir, "l10n-tr/*.qm")

    # Fix all occurances of WorkDir in pc files
    pisitools.dosed(
        "%s%s/pkgconfig/*.pc" % (get.installDIR(), qt4.libdir),
        "%s/qt-x11-opensource-src-%s" % (get.workDIR(), get.srcVERSION()),
        qt4.prefix)

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

    mkspecPath = "%s/mkspecs" % qtbase

    for root, dirs, files in os.walk("%s%s" % (get.installDIR(), qtbase)):
        # Remove unnecessary spec files..
        if root.endswith(mkspecPath):
            for dir in dirs:
                if not dir.startswith("linux") and dir not in [
                        "common", "qws", "features", "default"
                ]:
                    pisitools.removeDir(os.path.join(mkspecPath, dir))
        for name in files:
            if name.endswith(".prl"):
                pisitools.dosed(os.path.join(root, name),
                                "^QMAKE_PRL_BUILD_DIR.*", "")

    # Remove useless image directory, images of HTML docs are in doc/html/images
    #pisitools.removeDir("%s/src" % qt4.docdir)

    pisitools.removeDir("/usr/share/qt4/phrasebooks")

    pisitools.dodoc("changes-*", "LGPL_EXCEPTION.txt", "LICENSE.*", "README")
Exemple #44
0
def install():
    shutil.rmtree("pycharm-community-%s/jre" % Version)
    pisitools.insinto("/opt/pycharm-ce", "pycharm-community-%s/*" % Version)
    pisitools.dosym("/opt/pycharm-ce/bin/pycharm.sh", "/usr/bin/pycharm-ce")
Exemple #45
0
def install():
    shelltools.system(
        "awk '$1 ~ /Version:/ { print gensub(/([0-9]+)\.([0-9]+).*/, \"\\\\1\\\\2\", \"g\", $2) }' /usr/lib/pkgconfig/xorg-server.pc > XorgVersion"
    )
    with open("XorgVersion", "r") as f:
        XorgVersion = f.readline().strip()
    pisitools.insinto("/etc/vbox", "vbox.cfg")
    shelltools.chmod("src/VBox/Additions/x11/Installer/98vboxadd-xclient",
                     0755)
    pisitools.insinto("/usr/bin",
                      "src/VBox/Additions/x11/Installer/98vboxadd-xclient",
                      "VBoxClient-all")
    #pisitools.insinto("/lib/udev/rules.d", "src/VBox/Additions/linux/installer/70-xorg-vboxmouse.rules")
    pisitools.insinto("/usr/share/X11/pci",
                      "src/VBox/Additions/x11/Installer/vboxvideo.ids")
    #pisitools.insinto("/usr/share/X11/xorg.conf.d", "src/VBox/Additions/x11/Installer/50-vboxmouse.conf")

    arch = "amd64" if get.ARCH() == "x86_64" else "x86"
    shelltools.cd("out/linux.%s/release/bin" % arch)

    # libraries installation. The files below are unnecessary files.
    # TODO: change loop and make it more discrete (i.e copying each single file)
    exclude = ("additions", "icons", "nls", "scm", "sdk", "src", "SUP",
               "vboxkeyboard", "VBox.sh", "VBoxSysInfo.sh",
               "VBoxCreateUSBNode.sh", "VBoxTunctl", "testcase", "tst",
               "xpidl")

    for _file in shelltools.ls("."):
        if _file.startswith(exclude):
            continue

        print "Installing %s ..." % _file
        pisitools.insinto(VBoxLibDir, _file)

    pisitools.dobin("VBox*.sh", VBoxDataDir)
    pisitools.insinto(VBoxDataDir, "nls")

    # TODO: Add vboxwebsrv when ready
    # Binaries and Wrapper with Launchers
    apps = ("VBoxHeadless", "VBoxManage", "VBoxSDL", "VBoxVRDP", "VirtualBox",
            "VBoxBalloonCtrl")
    for link in apps:
        pisitools.dosym("../share/virtualbox/VBox.sh", "/usr/bin/%s" % link)

    pisitools.dobin("VBoxTunctl")

    # Desktop file, mimetype file for xml and icon
    pisitools.domove("%s/*.desktop" % VBoxLibDir, "/usr/share/applications")
    pisitools.domove("%s/*.png" % VBoxLibDir, "/usr/share/pixmaps")
    pisitools.domove("%s/*.xml" % VBoxLibDir, "/usr/share/mime/packages")

    # Mimetypes icons
    for size in ["16", "20", "24", "32", "48", "64", "72", "96", "128", "256"]:
        pisitools.insinto(
            "/usr/share/icons/hicolor/%sx%s/mimetypes" % (size, size),
            "icons/%sx%s/*.png" % (size, size))

    # Guest additions
    pisitools.dobin("additions/VBoxClient")
    pisitools.dobin("additions/VBoxControl")

    pisitools.dosbin("additions/VBoxService")
    pisitools.dosbin("additions/mount.vboxsf", "/sbin")

    pisitools.insinto("/lib/security", "additions/pam_vbox.so")

    pisitools.dolib("additions/VBoxOGL*")
    pisitools.dosym("../../../VBoxOGL.so",
                    "/usr/lib/xorg/modules/dri/vboxvideo_dri.so")

    #pisitools.insinto("/usr/lib/xorg/modules/drivers", "additions/vboxvideo_drv_system.so", "vboxvideo.so")
    #pisitools.insinto("/usr/lib/xorg/modules/input",   "additions/vboxmouse_drv_%s.so" % XorgVersion, "vboxmouse_drv.so")

    # Python bindings
    pisitools.insinto("%s/sdk/bindings/xpcom" % VBoxLibDir,
                      "sdk/bindings/xpcom/python")

    shelltools.cd("sdk/installer")
    shelltools.copy("vboxapisetup.py", "setup.py")
    shelltools.export("VBOX_INSTALL_PATH", VBoxLibDir)
    pythonmodules.install()

    shelltools.cd("../..")
    mvb_name = "module-virtualbox-%s" % get.srcVERSION()
    mvbg_name = "module-virtualbox-guest-%s" % get.srcVERSION()

    shelltools.copy("src", "%s/%s" % (get.workDIR(), mvb_name))
    shelltools.copy("additions/src", "%s/%s" % (get.workDIR(), mvbg_name))
    shelltools.cd(get.workDIR())
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((mvb_name, ) * 2))
    shelltools.unlinkDir(mvb_name)
    shelltools.system("tar c %s | xz -9 > %s.tar.xz" % ((mvbg_name, ) * 2))
    shelltools.unlinkDir(mvbg_name)
Exemple #46
0
def install():
    pythonmodules.install()
    pisitools.dosym("/usr/bin/network", "/bin/network")
Exemple #47
0
 def install_lib():
     pisitools.dolib("libQt4Pas.so.5.2.1")
     pisitools.dosym("libQt4Pas.so.5.2.1", "/usr/lib/libQt4Pas.so")
     pisitools.dosym("libQt4Pas.so.5.2.1", "/usr/lib/libQt4Pas.so.5")
     pisitools.dosym("libQt4Pas.so.5.2.1", "/usr/lib/libQt4Pas.so.5.2")
Exemple #48
0
def install():

    pisitools.insinto("/usr/share/cups/model",
                      "usr/share/cups/model/canonmp210.ppd")

    pisitools.dolib_so("usr/lib/libcnbpcmcm316.so.6.61.1")
    pisitools.dolib_so("usr/lib/libcnbpcnclapi316.so.3.3.0")
    pisitools.dolib_so("usr/lib/libcnbpcnclbjcmd316.so.3.3.0")
    pisitools.dolib_so("usr/lib/libcnbpcnclui316.so.3.3.0")
    pisitools.dolib_so("usr/lib/libcnbpess316.so.3.0.9")
    pisitools.dolib_so("usr/lib/libcnbpo316.so.1.0.1")

    pisitools.dosym("/usr/lib/libcnbpcmcm316.so.6.61.1",
                    "/usr/lib/libcnbpcmcm316.so.6")
    pisitools.dosym("/usr/lib/libcnbpcmcm316.so.6.61.1",
                    "/usr/lib/libcnbpcmcm316.so")
    pisitools.dosym("/usr/lib/libcnbpcnclapi316.so.3.3.0",
                    "/usr/lib/libcnbpcnclapi316.so.3")
    pisitools.dosym("/usr/lib/libcnbpcnclapi316.so.3.3.0",
                    "/usr/lib/libcnbpcnclapi316.so")
    pisitools.dosym("/usr/lib/libcnbpcnclbjcmd316.so.3.3.0",
                    "/usr/lib/libcnbpcnclbjcmd316.so.3")
    pisitools.dosym("/usr/lib/libcnbpcnclbjcmd316.so.3.3.0",
                    "/usr/lib/libcnbpcnclbjcmd316.so")
    pisitools.dosym("/usr/lib/libcnbpcnclui316.so.3.3.0",
                    "/usr/lib/libcnbpcnclui316.so.3")
    pisitools.dosym("/usr/lib/libcnbpcnclui316.so.3.3.0",
                    "/usr/lib/libcnbpcnclui316.so")
    pisitools.dosym("/usr/lib/libcnbpess316.so.3.0.9",
                    "/usr/lib/libcnbpess316.so.3")
    pisitools.dosym("/usr/lib/libcnbpess316.so.3.0.9",
                    "/usr/lib/libcnbpess316.so")
    pisitools.dosym("/usr/lib/libcnbpo316.so.1.0.1",
                    "/usr/lib/libcnbpo316.so.1")
    pisitools.dosym("/usr/lib/libcnbpo316.so.1.0.1", "/usr/lib/libcnbpo316.so")

    pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/cifmp210.conf")
    pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/cnb_3160.tbl")
    pisitools.insinto("/usr/lib/bjlib", "usr/lib/bjlib/cnbpname316.tbl")

    for f in shelltools.ls("usr/local/bin/"):
        pisitools.dobin("usr/local/bin/%s" % f, "/usr/local/bin")

    for f in shelltools.ls("usr/local/share/cngpijmonmp210/pixmaps"):
        pisitools.insinto("/usr/local/share/cngpijmonmp210/pixmaps",
                          "usr/local/share/cngpijmonmp210/pixmaps/%s" % f)

    for f in shelltools.ls("usr/local/share/printuimp210"):
        pisitools.insinto("/usr/local/share/printuimp210",
                          "usr/local/share/printuimp210/%s" % f)
Exemple #49
0
def install():
    # Copy to install directory
    shelltools.copytree("gen/buildroot/", get.installDIR())

    # Move headers
    pisitools.remove("/usr/include/*")
    pisitools.domove("/opt/firebird/include", "/usr/include", "firebird")

    # Fix client libraries symlinks
    pisitools.removeDir("/usr/lib*")
    for libs in os.listdir("%s/opt/firebird/lib" % get.installDIR()):
        pisitools.dosym("/opt/firebird/lib/%s" % libs, "/usr/lib/%s" % libs)
    pisitools.dosym("/opt/firebird/plugins/libfbtrace.so",
                    "/usr/lib/libfbtrace.so")

    # Add support for old client's
    pisitools.dosym("libfbclient.so", "/usr/lib/libgds.so")
    pisitools.dosym("libfbclient.so", "/usr/lib/libgds.so.0")
    pisitools.dosym("libfbclient.so", "/opt/firebird/lib/libgds.so")
    pisitools.dosym("libfbclient.so", "/opt/firebird/lib/libgds.so.0")

    # Move configuration files and security DB to /etc/firebird for painless upgrade
    pisitools.domove("/opt/firebird/aliases.conf", "/etc/firebird")
    pisitools.domove("/opt/firebird/firebird.conf", "/etc/firebird")
    pisitools.domove("/opt/firebird/security2.fdb", "/etc/firebird")
    pisitools.dosym("/etc/firebird/aliases.conf", "/opt/firebird/aliases.conf")
    pisitools.dosym("/etc/firebird/firebird.conf",
                    "/opt/firebird/firebird.conf")
    pisitools.dosym("/etc/firebird/security2.fdb",
                    "/opt/firebird/security2.fdb")

    # Set PID directory
    shelltools.makedirs("%s/var/run/firebird" % get.installDIR())
    #pisitools.dodir("/opt/firebird/run")

    # Set permissions
    shelltools.chmod("%s/etc/firebird/security2.fdb" % get.installDIR(), 0600)
    shelltools.chmod("%s/var/run/firebird" % get.installDIR(), 0755)
    #shelltools.chmod("%s/opt/firebird/run" % get.installDIR(), 0755)

    pisitools.dosym("/var/log/firebird.log", "/opt/firebird/firebird.log")

    # Useless init.d stuff
    pisitools.removeDir("/opt/firebird/misc/")

    # Prevent to conflict isql with UnixODBC's
    pisitools.domove("/opt/firebird/bin/isql", "/opt/firebird/bin", "fb_isql")
Exemple #50
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dosym("/usr/sbin/update-usbids.sh", "/usr/sbin/update-usbids")
    pisitools.dosym("/usr/sbin/update-usbids.sh", "/sbin/update-usbids")
Exemple #51
0
def install():
    pisitools.insinto("/opt/", "./opt/*")
    pisitools.dosym("/opt/Citrix/ICAClient/desktop/wfcmgr.desktop", "/usr/share/applications/wfcmgr.desktop")
    pisitools.dosym("/opt/Citrix/ICAClient/nls/en/appsrv.ini", "/opt/Citrix/ICAClient/config/appsrv.ini")
    pisitools.dosym("/opt/Citrix/ICAClient/nls/en/module.ini", "/opt/Citrix/ICAClient/config/module.ini")
    pisitools.dosym("/opt/Citrix/ICAClient/nls/en/wfclient.ini", "/opt/Citrix/ICAClient/config/wfclient.ini")
Exemple #52
0
def install():
    pisitools.insinto("/usr/share/AdminpageFinder/", "AdminpageFinder.py.txt")
    shelltools.chmod(get.installDIR() + "/usr/share/AdminpageFinder/AdminpageFinder.py.txt", mode=0755)
    pisitools.dosym("/usr/share/AdminpageFinder/AdminpageFinder.py.txt", "/usr/bin/adminpagefinder")
Exemple #53
0
def install():
    pisitools.insinto("/usr/share/jes/", "jes.jar")
    pisitools.insinto("/usr/share/pixmaps/", "jes.png")
    pisitools.insinto("/usr/share/pixmaps/", "jes.xpm")
    pisitools.dosym("/usr/share/jes/jes.sh", "/usr/bin/jes")