def install(): shelltools.cd("build-shared") autotools.make("libdb=libdb-3.2.a libcxx=libcxx_3.2.a prefix=%s/usr libdir=%s/usr/lib install" % (get.installDIR(), get.installDIR())) shelltools.cd("../build-static") # slot libraries pisitools.dolib_a("libdb.a") pisitools.rename("/usr/lib/libdb.a", "libdb-3.2.a") pisitools.dolib_a("libdb_cxx.a") pisitools.rename("/usr/lib/libdb_cxx.a", "libdb_cxx-3.2.a") # create needed symlink pisitools.remove("/usr/lib/libdb.so") pisitools.remove("/usr/lib/libdb_cxx.so") pisitools.dosym("/usr/lib/libdb-3.2.so", "/usr/lib/libdb.so.3") # slot all program names to avoid overwriting for file in shelltools.ls("%s/usr/bin/db_*" % get.installDIR()): sourceFile = file.replace(get.installDIR(), "") destinationFile = shelltools.baseName(file.replace("_", "3.2_")) destinationDirectory = shelltools.dirName(sourceFile) pisitools.domove(sourceFile, destinationDirectory, destinationFile) # remove unneeded docs pisitools.removeDir("/usr/docs") # slot headers pisitools.dodir("/usr/include/db3/") pisitools.domove("/usr/include/*.h", "/usr/include/db3/") shelltools.cd("../") pisitools.dodoc("README", "LICENSE")
def install(): for app in ["tcpd", "tcpdchk", "tcpdmatch", "safe_finger", "try-from"]: pisitools.dosbin(app) pisitools.insinto("/usr/include", "tcpd.h") pisitools.dolib_a("libwrap.a") # FIXME: this seems not necessary anymore # pisitools.domove("libwrap.so", "libwrap.so.0.%s" % get.srcVERSION()) pisitools.dolib_so("libwrap.so.0.%s" % get.srcVERSION(), "/lib") pisitools.dosym("libwrap.so.0.%s" % get.srcVERSION(), "/lib/libwrap.so.0") pisitools.dosym("libwrap.so.0", "/lib/libwrap.so") libtools.gen_usr_ldscript("libwrap.so") pisitools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.allow.5") pisitools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.deny.5") pisitools.doman("*.3", "*.5", "*.8") pisitools.dodoc("BLURB", "CHANGES", "DISCLAIMER", "README*") # absolute path fix pisitools.dosed("%s/usr/lib/libwrap.so" % get.installDIR(), r"^GROUP\s*\(.*", "GROUP ( ../../lib/libwrap.so )")
def install(): shelltools.cd("PORT/linux") shelltools.move("libdb.a", "libdb1.a") pisitools.dolib_a("libdb1.a") shelltools.move("libdb.so.2", "libdb1.so.2") pisitools.dolib_so("libdb1.so.2") pisitools.dosym("libdb1.so.2", "/usr/lib/libdb1.so") pisitools.dosym("libdb1.so.2", "/usr/lib/libdb.so.2") pisitools.dosym("libdb1.so.2", "/usr/lib/libndbm.so") pisitools.dosym("libdb1.a", "/usr/lib/libndbm.a") pisitools.insinto("/usr/include/db1", "include/db.h") pisitools.insinto("/usr/include/db1", "include/mpool.h") pisitools.dosed("include/ndbm.h", "<db.h>", "<db1/db.h>") pisitools.insinto("/usr/include/db1", "include/ndbm.h") pisitools.dosym("db1/ndbm.h", "/usr/include/ndbm.h") shelltools.move("db_dump185", "db1_dump185") pisitools.dobin("db1_dump185") pisitools.dodoc("../../changelog", "../../README", "../../docs/*.ps")
def install(): shelltools.cd("PORT/linux") shelltools.move("libdb.a", "libdb1.a") pisitools.dolib_a("libdb1.a") shelltools.move("libdb.so.2", "libdb1.so.2") pisitools.dolib_so("libdb1.so.2") pisitools.dosym("libdb1.so.2", "/usr/lib/libdb1.so") pisitools.dosym("libdb1.so.2", "/usr/lib/libdb.so.2") pisitools.dosym("libdb1.so.2", "/usr/lib/libndbm.so") pisitools.dosym("libdb1.a", "/usr/lib/libndbm.a") pisitools.insinto("/usr/include/db1", "../../include/db.h") pisitools.insinto("/usr/include/db1", "../../include/mpool.h") pisitools.dosed("include/ndbm.h", "<db.h>", "<db1/db.h>") pisitools.insinto("/usr/include/db1", "include/ndbm.h") pisitools.dosym("db1/ndbm.h", "/usr/include/ndbm.h") shelltools.move("db_dump185", "db1_dump185") pisitools.dobin("db1_dump185") pisitools.dodoc("../../changelog", "../../README", "../../docs/*.ps")
def install(): pisitools.dobin("cdda2wav/OBJ/*/cdda2wav") pisitools.dobin("cdrecord/OBJ/*/cdrecord") pisitools.dobin("mkisofs/OBJ/*/mkisofs") pisitools.dobin("readcd/OBJ/*/readcd") pisitools.dobin("rscsi/OBJ/*/rscsi") pisitools.insinto("/usr/include", "incs/*/align.h") pisitools.insinto("/usr/include", "incs/*/avoffset.h") pisitools.insinto("/usr/include", "incs/*/xconfig.h") pisitools.dobin("sofs/diag/OBJ/*/devdump") pisitools.dobin("sofs/diag/OBJ/*/isodump") pisitools.dobin("sofs/diag/OBJ/*/isoinfo") pisitools.dobin("sofs/diag/OBJ/*/isovfy") pisitools.insinto("/etc/default", "rscsi/rscsi.dfl") pisitools.insinto("/etc/default", "cdrecord/cdrecord.dfl") pisitools.dolib_a("libs/*/*.a") pisitools.insinto("/usr/include/scsilib", "include/*.h") pisitools.insinto("/usr/include/scsilib/scg", "include/sch/*.h") pisitools.dodoc("ABOUT", "Changelog", "README*", "START", "doc/*.ps") pisitools.doman("*/*.1", "*/*.8")
def install(): pisitools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.allow.5") pisitools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.deny.5") pisitools.dosbin("tcpd") pisitools.dosbin("tcpdchk") pisitools.dosbin("tcpdmatch") pisitools.dosbin("safe_finger") pisitools.dosbin("try-from") pisitools.doman("*.3", "*.5", "*.8") pisitools.insinto("/usr/include/", "tcpd.h") pisitools.dolib_a("libwrap.a") pisitools.domove("libwrap.so", "libwrap.so.0.%s" % get.srcVERSION()) pisitools.dolib_so("libwrap.so.0.%s" % get.srcVERSION(), "/lib") pisitools.dosym("/lib/libwrap.so.0.%s" % get.srcVERSION(), "/lib/libwrap.so.0") pisitools.dosym("/lib/libwrap.so.0", "/lib/libwrap.so") libtools.gen_usr_ldscript("libwrap.so") pisitools.dodoc("BLURB", "CHANGES", "DISCLAIMER", "README*", "hosts.allow.example")
def install(): autotools.install("sbindir=\"%s/sbin\" libdir=\"%s/lib\"" % (get.installDIR(), get.installDIR())) pisitools.dolib_a("lib/ioctl/libdevmapper.a") libtools.gen_usr_ldscript("libdevmapper.so") pisitools.dodoc("COPYING*", "INSTALL", "INTRO", "README", "VERSION", "WHATS_NEW")
def install(): pisitools.dolib_a("libalpng.a") pisitools.insinto("/usr/include/", "src/alpng.h") shelltools.chmod("%s/usr/include/alpng.h" % get.installDIR(), 0644) pisitools.dodoc("changes.txt") pisitools.dohtml("doc.html")
def install(): autotools.install('DESTDIR=%(D)s \ libdir=%(D)s/lib \ includedir=%(D)s/usr/include' % {"D": get.installDIR()}) pisitools.dolib_a("lib/ioctl/libdevmapper.a") libtools.gen_usr_ldscript("libdevmapper.so") pisitools.dodoc("COPYING*", "INSTALL", "INTRO", "README", "VERSION", "WHATS_NEW")
def install(): # driver portion shelltools.cd(wdir) pisitools.dolib("nvidia_drv.so", "/usr/lib/xorg/modules/drivers") kdir = "/lib64/modules/%s/kernel/drivers/video" % kversion # libGL replacement - conflicts libs = ["libGL", "libEGL", "libGLESv1_CM", "libGLESv2", "libglx"] for lib in libs: abi = '2' if lib == "libGLESv2" else "1" link_install(lib, "/usr/lib/glx-provider/nvidia", abi) # non-conflict libraries libs = [ "libnvidia-glcore", "libnvidia-eglcore", "libnvidia-glsi", "libnvidia-ifr", "libnvidia-fbc", "libnvidia-encode", "libnvidia-cfg", "libnvidia-ml", "tls/libnvidia-tls", "libcuda", "libnvcuvid", "libnvidia-gtk2", "libnvidia-gtk3" ] for lib in libs: link_install(lib) # vdpau provider link_install("libvdpau_nvidia", "/usr/lib/vdpau") # binaries bins = [ "nvidia-debugdump", "nvidia-xconfig", "nvidia-settings", "nvidia-bug-report.sh", "nvidia-smi", "nvidia-modprobe", "nvidia-cuda-mps-control", "nvidia-cuda-mps-server", "nvidia-persistenced" ] for bin in bins: pisitools.dobin(bin) # data files pisitools.dosed("nvidia-settings.desktop", "__UTILS_PATH__", "/usr/bin") pisitools.dosed("nvidia-settings.desktop", "__PIXMAP_PATH__", "/usr/share/pixmaps") pisitools.insinto("/usr/share/applications", "nvidia-settings.desktop") pisitools.insinto("/usr/share/pixmaps", "nvidia-settings.png") pisitools.insinto("/etc/OpenCL/vendors", "nvidia.icd") # kernel portion, i.e. /lib/modules/3.19.7/kernel/drivers/video/nvidia.ko shelltools.cd("kernel") pisitools.dolib_a("nvidia.ko", kdir) shelltools.cd("uvm") pisitools.dolib_a("nvidia-uvm.ko", kdir) # Blacklist nouveau pisitools.dodir("/etc/modprobe.d") shelltools.echo("%s/etc/modprobe.d/nvidia.conf" % get.installDIR(), "blacklist nouveau")
def install(): pisitools.dolib_so("libflint.so.0") pisitools.dosym("libflint.so.0", "/usr/lib/libflint.so") pisitools.dolib_a("libflint.a") for header in [h for h in shelltools.ls(".") if h.endswith(".h")]: pisitools.insinto("/usr/include/flint", header) pisitools.dodoc("doc/*.pdf") pisitools.dodoc("CHANGES.txt", "gpl-2.0.txt", "todo.txt")
def install(): autotools.rawInstall('DESTDIR="%s"' % get.installDIR()) pisitools.insinto("/usr/include", "include/iptables.h") pisitools.insinto("/usr/include", "include/ip6tables.h") pisitools.insinto("/usr/include/libiptc", "include/libiptc/*.h") pisitools.dolib_a("libiptc/libiptc.a") pisitools.dodir("/var/lib/iptables") pisitools.dodir("/etc/iptables")
def install(): pisitools.dolib_so("libflint.so.0") pisitools.dosym("libflint.so.0", "/usr/lib/libflint.so") pisitools.dolib_a("libflint.a") for header in [h for h in shelltools.ls(".") if h.endswith(".h")]: pisitools.insinto("/usr/include/flint", header) pisitools.dodoc("doc/*.pdf") pisitools.dodoc("CHANGES.txt","gpl-2.0.txt","todo.txt")
def install(): autotools.install() pisitools.dobin("src/libst-config") pisitools.insinto("/usr/include/sox", "src/st.h") pisitools.insinto("/usr/include/sox", "src/ststdint.h") # Doesn't allow shared libs and we need this static lib for mlt pisitools.dolib_a("src/libst.a") pisitools.dodoc("Changelog", "README", "TODO", "*.txt")
def install(): pisitools.dobin("rtaudio-config") pisitools.dolib("librtaudio.so.4.0.9") pisitools.dosym("/usr/lib/librtaudio.so.4.0.9", "/usr/lib/librtaudio.so") pisitools.dolib_a("librtaudio.a") pisitools.insinto("/usr/include", "*.h") pisitools.insinto("/usr/include", "include/*") pisitools.dohtml("doc/html/*") pisitools.dodoc("readme", "doc/release.txt")
def install(): #not works for now #cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.insinto("/opt/rigsofrods/resources", "bin/resources/*") pisitools.dobin("bin/RoR", "/opt/rigsofrods") pisitools.dobin("bin/rorconfig", "/opt/rigsofrods") pisitools.dobin("bin/tdr2svg", "/opt/rigsofrods") pisitools.dolib_a("bin/libangelscript_addons.a", "/opt/rigsofrods") #pisitools.insinto("/opt/rigsofrods", "bin/plugins.cfg") pisitools.dodoc("COPYING", "LICENSE.txt", "readme.txt")
def install(): # driver portion shelltools.cd(wdir) pisitools.dolib("nvidia_drv.so", "/usr/lib/xorg/modules/drivers") kdir = "/lib64/modules/%s/kernel/drivers/video" % kversion # libGL replacement - conflicts libs = ["libGL", "libEGL", "libGLESv1_CM", "libGLESv2", "libglx"] for lib in libs: abi = '2' if lib == "libGLESv2" else "1" link_install(lib, "/usr/lib/glx-provider/nvidia", abi) # non-conflict libraries libs = ["libnvidia-glcore", "libnvidia-eglcore", "libnvidia-glsi", "libnvidia-ifr", "libnvidia-fbc", "libnvidia-encode", "libnvidia-cfg", "libnvidia-ml", "tls/libnvidia-tls", "libcuda", "libnvcuvid", "libnvidia-gtk2", "libnvidia-gtk3"] for lib in libs: link_install(lib) # vdpau provider link_install("libvdpau_nvidia", "/usr/lib/vdpau") # binaries bins = ["nvidia-debugdump", "nvidia-xconfig", "nvidia-settings", "nvidia-bug-report.sh", "nvidia-smi", "nvidia-modprobe", "nvidia-cuda-mps-control", "nvidia-cuda-mps-server", "nvidia-persistenced"] for bin in bins: pisitools.dobin(bin) # data files pisitools.dosed("nvidia-settings.desktop", "__UTILS_PATH__", "/usr/bin") pisitools.dosed("nvidia-settings.desktop", "__PIXMAP_PATH__", "/usr/share/pixmaps") pisitools.insinto("/usr/share/applications", "nvidia-settings.desktop") pisitools.insinto("/usr/share/pixmaps", "nvidia-settings.png") pisitools.insinto("/etc/OpenCL/vendors", "nvidia.icd") # kernel portion, i.e. /lib/modules/3.19.7/kernel/drivers/video/nvidia.ko shelltools.cd("kernel") pisitools.dolib_a("nvidia.ko", kdir) shelltools.cd("uvm") pisitools.dolib_a("nvidia-uvm.ko", kdir) # Blacklist nouveau pisitools.dodir("/etc/modprobe.d") shelltools.echo("%s/etc/modprobe.d/nvidia.conf" % get.installDIR(), "blacklist nouveau")
def install(): pisitools.dobin("rpm/INSTALL/usr/bin/*") # install lib_a pisitools.dolib_a("lib/gpicd.a") # install samples pisitools.insinto("usr/share/gpicd/sample", "sample/*") pisitools.remove("/usr/share/gpicd/sample/Makefile") # Icon file pisitools.insinto("/usr/share/pixmaps", "gui/chip.xpm", "gpicd.xpm") # Documets pisitools.dohtml("doc/*") pisitools.dodoc("ChangeLog", "README")
def install(): shelltools.cd("wiringPi/wiringPi") pisitools.dolib_so("libwiringPi.so*") pisitools.dolib_a("libwiringPi.a") pisitools.insinto("/usr/include", "*.h") pisitools.dosym("/usr/lib/libwiringPi.so.2.32", "/usr/lib/libwiringPi.so") shelltools.cd("../../wiringPi/devLib") pisitools.dolib_so("libwiringPiDev.so*") pisitools.dolib_a("libwiringPiDev.a") pisitools.insinto("/usr/include", "*.h") pisitools.dosym("/usr/lib/libwiringPiDev.so.2.32", "/usr/lib/libwiringPiDev.so") shelltools.cd("../../wiringPi/gpio") pisitools.dobin("gpio") pisitools.doman("gpio.1")
def install(): autotools.rawInstall("DESTDIR=%s tooldir=/usr" % get.installDIR()) # Copy plugin-api.h file to build LLVM with LLVM gold plugin pisitools.insinto("/usr/include", "include/plugin-api.h") # Rebuild libiberty with -fPIC autotools.make("-C libiberty clean") autotools.make('CFLAGS="-fPIC %s" -C libiberty' % get.CFLAGS()) # Rebuild libbfd with -fPIC autotools.make("-C bfd clean") autotools.make('CFLAGS="-fPIC %s" -C bfd' % get.CFLAGS()) # Rebuild libopcodes with -fPIC autotools.make("-C opcodes clean") autotools.make('CFLAGS="-fPIC %s" -C opcodes' % get.CFLAGS()) # Install rebuilt static libraries pisitools.dolib_a("bfd/libbfd.a") pisitools.dolib_a("libiberty/libiberty.a") pisitools.dolib_a("opcodes/libopcodes.a") # Install header for libiberty pisitools.insinto("/usr/include", "include/libiberty.h") # Prevent programs to link against libbfd and libopcodes dynamically, # they are changing far too often pisitools.remove("/usr/lib/libopcodes.so") pisitools.remove("/usr/lib/libbfd.so") # Remove Windows/Novell specific man pages pisitools.remove("/usr/share/man/man1/dlltool.1") pisitools.remove("/usr/share/man/man1/nlmconv.1") pisitools.remove("/usr/share/man/man1/windres.1")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dolib_a("Lib7Zip/lib7zip.a") pisitools.insinto("/usr/include", "Lib7Zip/lib7zip.h")
def install(): pisitools.dolib_a("lib/linux/libalfont.a") pisitools.insinto("/usr/include", "include/alfont*.h") pisitools.dodoc("CHANGES.txt", "README.txt", "docs/*")