def install(): pisitools.dobin("release/mumble") pisitools.dobin("release/mumble11x") pisitools.dobin("scripts/mumble-overlay") pisitools.dosbin("release/murmurd") pisitools.insinto("/usr/lib/mumble", "release/*.so*") pisitools.doexe("release/plugins/*.so", "/usr/lib/mumble") pisitools.insinto("/usr/share/applications", "scripts/mumble.desktop") pisitools.insinto("/usr/share/kde4/services", "scripts/mumble.protocol") pisitools.insinto("/usr/share/mumble/translations", "src/mumble/*.qm") pisitools.insinto("/usr/share/mumble11x/translations", "src/mumble11x/*.qm") for size in ("16x16", "32x32", "48x48", "64x64"): pisitools.insinto( "/usr/share/icons/hicolor/%s/apps" % size, "src/mumble11x/resources/mumble.%s.png" % size, "mumble.png" ) pisitools.insinto("/usr/share/icons/hicolor/scalable/apps", "icons/mumble.svg") pisitools.insinto("/etc/murmur", "scripts/murmur.ini") pisitools.dosym("murmur/murmur.ini", "/etc/mumble-server.ini") pisitools.dodir("/var/lib/mumble-server") pisitools.dodir("/var/log/mumble-server") pisitools.dodir("/run/mumble-server") pisitools.doman("man/*") pisitools.dodoc("CHANGES", "LICENSE", "README*", "scripts/weblist*")
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")
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(): pisitools.dosbin("logrotate") pisitools.doman("logrotate.8") pisitools.dodir("/etc/logrotate.d") pisitools.dodoc("examples/logrotate*") pisitools.dodoc("CHANGES", "COPYING", "README*")
def install(): pisitools.dodir("/usr/bin") pisitools.dodir("/usr/sbin") autotools.install("PREFIX=\"%s\" ROOT=\"%s\" MANDIR=\"%s/usr/share/man\"" % (get.installDIR(), get.installDIR(), get.installDIR())) # irda-utils's install-etc installs files in /etc/sysconfig if # that directory exists on the system, so clean up just in case. # This is for bug 1797 (17 Jan 2004 agriffis) # rm -rf ${D}/etc/sysconfig 2>/dev/null pisitools.dobin("irsockets/irdaspray") pisitools.dobin("irsockets/ias_query") pisitools.dobin("irsockets/irprintf") pisitools.dobin("irsockets/irprintfx") pisitools.dobin("irsockets/irscanf") pisitools.dobin("irsockets/recv_ultra") pisitools.dobin("irsockets/send_ultra") pisitools.dosbin("findchip/gfindchip") pisitools.dodoc("README") pisitools.dodoc("etc/modules.conf.irda") # install README's into /usr/share/doc for i in ["irattach", "irdadump", "irdaping", "irsockets", "tekram"]: pisitools.newdoc(i + "/README", "README." + i)
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) autotools.rawInstall("-C tools/ DESTDIR=%s" % get.installDIR()) autotools.rawInstall("-C test/ DESTDIR=%s" % get.installDIR()) # Install oui file pisitools.insinto("/usr/share/misc", "oui.txt") # Install shipped udev for serial PCMCIA devices pisitools.insinto("/lib/udev/rules.d", "scripts/bluetooth-serial.rules", "97-bluetooth-pcmcia.rules") # Install shipped udev script pisitools.dobin("scripts/bluetooth_serial", "/lib/udev") # Install conf files for i in ["audio", "input", "network"]: pisitools.insinto("/etc/bluetooth", "%s/%s.conf" % (i,i)) # Simple test tools for i in ["simple-agent", "simple-service", "monitor-bluetooth", "list-devices", "apitest", "hsmicro", "hsplay", "test-adapter", "test-device", "test-discovery", "test-manager", "test-serial", "test-service", "test-telephony", "hstest", "attest", "sdptest", "scotest"]: pisitools.dobin("test/%s" % i) # Additional tools pisitools.dosbin("tools/hcisecfilter") pisitools.dosbin("tools/ppporc") # Install documents pisitools.dodoc("AUTHORS", "ChangeLog", "README")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.insinto("/etc", "mdadm.conf-example", "mdadm.conf") pisitools.dosbin("mdadm.static", "/sbin") pisitools.dosbin("mdassemble.static", "/sbin")
def install(): # First install the executables for b in ("usr/iscsid", "usr/iscsiadm", "utils/iscsi-iname", "usr/iscsistart"): pisitools.dosbin(b, "/sbin") # Install libraries and headers pisitools.dolib_so("libiscsi/libiscsi.so.0") pisitools.dosym("libiscsi.so.0", "/usr/lib/libiscsi.so") pisitools.insinto("/usr/include", "libiscsi/libiscsi.h") # Install conf file for the daemon pisitools.insinto("/etc/iscsi", "etc/iscsid.conf") # Create localstate directories pisitools.dodir("/var/lock/iscsi") pisitools.dodir("/var/lib/iscsi") for d in ("nodes", "send_targets", "static", "isns", "slp", "ifaces"): pisitools.dodir("/var/lib/iscsi/%s" % d) # Documentation pisitools.doman("doc/*.8") pisitools.dodoc("Changelog", "COPYING", "README") # Install python module shelltools.cd("libiscsi") pythonmodules.install()
def install(): pisitools.dosbin("lsof") pisitools.insinto("/usr/share/lsof/scripts", "scripts/*") pisitools.doman("lsof.8") pisitools.dodoc("00*")
def install(): pisitools.insinto("/lib/modules/%s/extra" % get.curKERNEL(), "drivers/*.ko") pisitools.insinto("/usr/sbin", "modem/modem_test", "slmodem_test") pisitools.dosbin("modem/slmodemd") pisitools.dodir("/var/lib/slmodem") pisitools.dodoc("Changes", "README")
def install(): pisitools.dobin("mt") pisitools.dosbin("stinit") pisitools.doman("mt.1") pisitools.doman("stinit.8") pisitools.dodoc("stinit.def.examples", "README*")
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(): pisitools.dosbin("lsmsr") pisitools.dosbin("x86info") pisitools.doman("x86info.1", "lsmsr.8") pisitools.dodoc("COPYING", "README", "TODO")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) autotools.rawInstall("-C tools/ DESTDIR=%s" % get.installDIR()) autotools.rawInstall("-C test/ DESTDIR=%s" % get.installDIR()) # Replace helper with its full path pisitools.dosed("scripts/bluetooth.rules", "RUN\+\=\"bluetooth_serial\"", "RUN+=\"/lib/udev/bluetooth_serial\"") # Install udev rule for PCMCIA devices pisitools.insinto("/lib/udev/rules.d", "scripts/bluetooth.rules", "70-bluetooth-pcmcia.rules") # Install udev script pisitools.dobin("scripts/bluetooth_serial", "/lib/udev") # Install conf files for i in ["audio", "input", "network"]: pisitools.insinto("/etc/bluetooth", "%s/%s.conf" % (i,i)) # Simple test tools pisitools.dobin("test/passkey-agent") pisitools.dobin("test/auth-agent") pisitools.dobin("test/hsmicro") pisitools.dobin("test/hsplay") pisitools.dobin("test/hstest") pisitools.dobin("test/attest") pisitools.dobin("test/apitest") pisitools.dobin("input/test-input") # Additional tools pisitools.dosbin("tools/hcisecfilter") pisitools.dosbin("tools/ppporc") # Install documents pisitools.dodoc("AUTHORS", "ChangeLog", "README")
def install(): pisitools.dosbin("hping3") for i in ["", "2"]: pisitools.dosym("hping3", "/usr/sbin/hping%s" % i) pisitools.doman("docs/hping3.8") pisitools.dodoc("NEWS", "README", "TODO", "AUTHORS", "BUGS", "CHANGES")
def install(): for app in ["cdrecord","cdda2wav","mkisofs","readcd"]: pisitools.dobin("%s/OBJ/*/%s" % (app,app)) for app in ["devdump","isodump","isoinfo","isovfy"]: pisitools.dobin("mkisofs/diag/OBJ/*/%s" % app) pisitools.dosbin("rscsi/OBJ/*/rscsi") pisitools.insinto("/usr/lib","libs/*/pic/*.so*") pisitools.insinto("/usr/include", "incs/*/align.h") pisitools.insinto("/usr/include", "incs/*/avoffset.h") pisitools.insinto("/usr/include", "incs/*/xconfig.h") pisitools.insinto("/usr/include/schily", "include/schily/*.h") pisitools.insinto("/usr/include/scg", "libscg/scg/*.h") pisitools.insinto("/etc/default", "rscsi/rscsi.dfl") pisitools.insinto("/etc/default", "cdrecord/cdrecord.dfl") for man in ["btcflash/btcflash.1", "cdda2wav/cdda2ogg.1", "cdda2wav/cdda2wav.1", "cdda2wav/cdda2wav.1", "cdrecord/cdrecord.1", "readcd/readcd.1", "rscsi/rscsi.1"]: pisitools.dosed(man, "/opt/schily", "/usr") pisitools.doman("*/*.1", "*/*.8") pisitools.dodoc("ABOUT", "Changelog", "READMEs/README.linux")
def install(): pisitools.dobin("compiler/iasl") for i in ["acpisrc", "acpiexec", "acpixtract"]: pisitools.dosbin("tools/%s/%s" % (i, i)) pisitools.dodoc("changes.txt", "README")
def install(): pisitools.dosbin("Utilities/fbmngplay") pisitools.dosbin("Utilities/fbtruetype") pisitools.dosbin("Utilities/splash", "/sbin") pisitools.dosbin("Utilities/splashpbm", "/sbin") pisitools.dosbin("Utilities/fbresolution", "/sbin")
def install(): pisitools.dobin("airpwn") pisitools.dobin("wep_keygen") pisitools.dosbin("ma*.sh") shelltools.copytree("conf/", "%s/usr/share/airpwn/conf/" % get.installDIR()) shelltools.copytree("content/", "%s/usr/share/airpwn/" % get.installDIR()) shelltools.copytree("pyscripts/", "%s/usr/share/airpwn/" % get.installDIR())
def install(): pisitools.dosbin("wpa_supplicant") pisitools.dobin("wpa_cli") pisitools.dobin("wpa_passphrase") pisitools.dobin("wpa_gui/wpa_gui") pisitools.newdoc("wpa_supplicant.conf", "wpa_supplicant.conf.example") pisitools.dodoc("ChangeLog", "COPYING", "eap_testing.txt", "README", "todo.txt", "examples/*") pisitools.doman("doc/docbook/*.8")
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")
def install(): pisitools.doman("mcelog.8") pisitools.dosbin("mcelog") pisitools.insinto("/etc/mcelog/triggers", "triggers/*") pisitools.insinto("/etc/logrotate.d", "*logrotate") pisitools.dodoc("README")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dobin("imap/mailutil/mailutil") pisitools.dosbin("imap/mlock/mlock") pisitools.dohtml("doc/tech-notes/*.html") pisitools.dodoc("doc/tech-notes.txt", "NOTICE", "LICENSE", "README", "VERSION")
def install(): pisitools.dosbin("smartd") pisitools.dosbin("smartctl") pisitools.doman("smartd.8", "smartctl.8", "smartd.conf.5") pisitools.dodoc("AUTHORS","NEWS","README","WARNINGS","smartd.conf") pisitools.insinto("/etc/", "smartd.conf")
def install(): pisitools.dobin("arch/x86/usr/X11R6/bin/*") pisitools.dobin("common/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") pisitools.dosym("libAMDXvBA.so.1.0", "/usr/lib/libAMDXvBA.so.1") pisitools.dosym("libAMDXvBA.so.1", "/usr/lib/libAMDXvBA.so") pisitools.dosym("libXvBAW.so.1.0", "/usr/lib/libXvBAW.so.1") pisitools.dosym("libXvBAW.so.1", "/usr/lib/libXvBAW.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")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("AUTHORS", "ChangeLog", "README") pisitools.insinto("/etc/conf.d/", "scripts/bluetooth.default", "bluetooth") # optional bluetooth utils pisitools.dobin("hcid/passkey-agent") pisitools.dosbin("tools/hcisecfilter") pisitools.dosbin("tools/ppporc")
def install(): pisitools.dodir("/var/www/localhost/htdocs/squid-reports") pisitools.dodir("/etc/sarg") pisitools.dosbin("sarg") pisitools.insinto("/etc/sarg", "images") pisitools.insinto("/etc/sarg","languages") pisitools.insinto("/etc/sarg","fonts") pisitools.doman("sarg.1") pisitools.dodoc("BETA-TESTERS", "CONTRIBUTORS", "README", "ChangeLog", "htaccess")
def install(): pisitools.doman("crontab.1", "crontab.5", "cron.8") pisitools.dodoc("CHANGES", "CONVERSION", "FEATURES", "MAIL", "README", "THANKS") pisitools.dosbin("cron") pisitools.dobin("crontab") pisitools.dodir("/var/spool/cron/crontabs") pisitools.dodir("/etc/cron.d")
def install(): pisitools.dosbin("smbldap-*") pisitools.remove("/usr/sbin/smbldap-tools.spec") pisitools.dosbin("smbldap_tools.pm") pisitools.dodir("/etc/smbldap-tools") pisitools.insinto("/etc/smbldap-tools", "smbldap.conf") pisitools.insinto("/etc/smbldap-tools", "smbldap_bind.conf") pisitools.dodoc("CONTRIBUTORS", "COPYING", "ChangeLog", "FILES", "INFRA", \ "INSTALL", "README", "TODO", "configure.pl", "*.conf") pisitools.dohtml("doc/html/*.html")
def install(): for f in ["src/iptraf", "src/rawtime", "src/rvnamed"]: pisitools.dosbin(f) pisitools.dodoc("TODO", "README*", "FAQ", "CHANGES", "RELEASE-NOTES") pisitools.doman("Documentation/*.8") pisitools.dohtml("Documentation/*") for d in ["lib", "log", "run"]: pisitools.dodir("/var/%s/iptraf" % d)
def install(): pisitools.dosbin("coolplug", "/sbin")
def install(): pisitools.dosbin("microcode_ctl") pisitools.doman("microcode_ctl.8") pisitools.dodoc("Changelog", "README") pisitools.insinto("/etc", "intel-ia32microcode-*.txt", "microcode.dat")
def install(): # dkms packages with open("env.sh") as f: for l in f.readlines(): if l.startswith("BUILD_PLATFORM_ARCH"): a = l.split("=")[1].strip()[1:-1] break pisitools.dosed("dkms.conf", "@VERSION@", get.srcVERSION()) pisitools.dosed("dkms-guest.conf", "@VERSION@", get.srcVERSION()) pisitools.insinto("/usr/src/%s-%s" % (get.srcNAME(), get.srcVERSION()), "out/linux.%s/release/bin/src/*" % a) pisitools.insinto("/usr/src/%s-%s" % (get.srcNAME(), get.srcVERSION()), "include") pisitools.insinto("/usr/src/%s-%s" % (get.srcNAME(), get.srcVERSION()), "dkms.conf") pisitools.insinto( "/usr/src/%s-guest-%s" % (get.srcNAME(), get.srcVERSION()), "out/linux.%s/release/bin/additions/src/*" % a) pisitools.insinto( "/usr/src/%s-guest-%s" % (get.srcNAME(), get.srcVERSION()), "dkms-guest.conf", "dkms.conf") 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("/etc/xdg/autostart", "src/VBox/Additions/x11/Installer/vboxclient.desktop") #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.dobin("additions/VBoxDRMClient") 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)
def install(): install_dir = get.installDIR() pisitools.dobin("arch/x86/usr/X11R6/bin/*") pisitools.dosbin("arch/x86/usr/sbin/*") pisitools.dosbin("common/usr/sbin/*") DIRS = { "common/etc": "/", "common/usr/X11R6/include": "/usr", "arch/x86/usr/X11R6/lib": "/usr/lib/opengl/ati", "common/usr/include/GL/": "/usr/lib/opengl/ati/include", "common/usr/share": "/usr" } for source, target in DIRS.items(): pisitools.insinto(target, source) pisitools.insinto("/usr/lib/xorg/modules", "x710/usr/X11R6/lib/modules/*") pisitools.dosym("/usr/lib/opengl/ati/lib/modules/dri/fglrx_dri.so", "/usr/lib/xorg/modules/dri/fglrx_dri.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libGL.so.1.2", "/usr/lib/opengl/ati/lib/libGL.so.1") pisitools.dosym("/usr/lib/opengl/ati/lib/libGL.so.1.2", "/usr/lib/opengl/ati/lib/libGL.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_pp.so.1.0", "/usr/lib/opengl/ati/lib/libfglrx_pp.so.1") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_pp.so.1.0", "/usr/lib/opengl/ati/lib/libfglrx_pp.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_gamma.so.1.0", "/usr/lib/opengl/ati/lib/libfglrx_gamma.so.1") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_gamma.so.1.0", "/usr/lib/opengl/ati/lib/libfglrx_gamma.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_dm.so.1.0", "/usr/lib/opengl/ati/lib/libfglrx_dm.so.1") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_dm.so.1.0", "/usr/lib/opengl/ati/lib/libfglrx_dm.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_tvout.so.1.0", "/usr/lib/opengl/ati/lib/libfglrx_tvout.so.1") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_tvout.so.1.0", "/usr/lib/opengl/ati/lib/libfglrx_tvout.so") # links to /usr/lib pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_pp.so.1.0", "/usr/lib/libfglrx_pp.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_pp.so.1.0", "/usr/lib/libfglrx_pp.so.1") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_gamma.so.1.0", "/usr/lib/libfglrx_gamma.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_gamma.so.1.0", "/usr/lib/libfglrx_gamma.so.1") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_dm.so.1.0", "/usr/lib/libfglrx_dm.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_dm.so.1.0", "/usr/lib/libfglrx_dm.so.1") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_tvout.so.1.0", "/usr/lib/libfglrx_tvout.so") pisitools.dosym("/usr/lib/opengl/ati/lib/libfglrx_tvout.so.1.0", "/usr/lib/libfglrx_tvout.so.1") # remove previous libGL links pisitools.remove("/usr/lib/libGL.so") pisitools.remove("/usr/lib/libGL.so.1") # compability links pisitools.dosym("/usr/", "/usr/X11R6") # PiSi BUG: That destination is directory before, so pisi cant handle that, postInstall script used instead pisitools.dosym("/usr/lib/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") # remove static libs pisitools.remove("/usr/lib/opengl/ati/lib/*.a") pisitools.remove("/usr/lib/xorg/modules/*.a") # No kitty pisitools.removeDir("/usr/share/gnome")
def install(): 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_%s.so" % XorgVersion, "vboxvideo_drv.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()
def install(): pisitools.insinto("/etc/vbox", "vbox.cfg") pisitools.insinto("/etc/X11/Xsession.d", "src/VBox/Additions/x11/Installer/98vboxadd-xclient", "98-vboxclient.sh") pisitools.insinto("/usr/share/X11/pci", "src/VBox/Additions/x11/Installer/vboxvideo.ids") pisitools.insinto("/usr/share/hal/fdi/policy/20thirdparty", "src/VBox/Additions/linux/installer/90-vboxguest.fdi") shelltools.cd("out/linux.x86/release/bin") exclude = ("additions", "nls", "scm", "sdk", "src", "SUP", "vboxkeyboard", "VBox.sh", "VBoxSysInfo.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("VBoxTunctl") pisitools.dobin("VBox*.sh", VBoxDataDir) pisitools.insinto(VBoxDataDir, "nls") # Symlinks # TODO: Add vboxwebsrv when ready apps = ("VBoxHeadless", "VBoxManage", "VBoxSDL", "VBoxVRDP", "VirtualBox") for link in apps: pisitools.dosym("../share/virtualbox/VBox.sh", "/usr/bin/%s" % link) # Desktop file and icon pisitools.domove("%s/*.desktop" % VBoxLibDir, "/usr/share/applications") pisitools.domove("%s/*.png" % VBoxLibDir, "/usr/share/pixmaps") # 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_%s.so" % XorgVersion, "vboxvideo_drv.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()
def install(): pisitools.dosbin("mkcramfs", "/sbin") pisitools.dosbin("cramfsck", "/sbin") pisitools.dodoc("README", "NOTES")
def install(): pisitools.dosbin("syslogd") pisitools.dosbin("klogd") pisitools.doman("*.[1-9]") pisitools.dodoc("ANNOUNCE", "CHANGES", "MANIFEST", "NEWS", "README.1st", "README.linux")
def install(): pisitools.dobin("arch/x86/usr/X11R6/bin/*") pisitools.dobin("common/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/lib", "arch/x86/usr/lib/*": "/usr/lib", "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", "x740/usr/X11R6/lib/modules/*") pisitools.domove("/usr/lib/libGL.so.1.2", "/usr/lib/xorg/fglrx/lib") pisitools.domove("/usr/lib/xorg/modules/extensions", "/usr/lib/xorg/fglrx") 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_tvout.so.1.0", "/usr/lib/libfglrx_tvout.so.1") pisitools.dosym("libfglrx_tvout.so.1", "/usr/lib/libfglrx_tvout.so") pisitools.dosym("libAMDXvBA.so.1.0", "/usr/lib/libAMDXvBA.so.1") pisitools.dosym("libAMDXvBA.so.1", "/usr/lib/libAMDXvBA.so") pisitools.dosym("libXvBAW.so.1.0", "/usr/lib/libXvBAW.so.1") pisitools.dosym("libXvBAW.so.1", "/usr/lib/libXvBAW.so") # compability links pisitools.dosym("/usr", "/usr/X11R6") pisitools.dosym("xorg/modules", "/usr/lib/modules") # copy compiled kernel module pisitools.insinto("/lib/modules/%s/extra" % KDIR, "common/lib/modules/fglrx/fglrx.%s.ko" % KDIR, "fglrx.ko") # remove static libs pisitools.remove("/usr/lib/*.a") pisitools.remove("/usr/lib/xorg/modules/*.a") # not needed as xdg-utils package provides xdg-su pisitools.remove("/usr/bin/amdxdg-su") pisitools.domove("/usr/share/icons/ccc_large.xpm", "/usr/share/pixmaps", "amdcccle.xpm") pisitools.removeDir("/usr/share/icons") # Fix file permissions exec_file_suffixes = (".sh", ".so") exec_dir_suffixes = ("/bin", "/sbin", "/lib") import os for root, dirs, files in os.walk(get.installDIR()): for name in files: filePath = os.path.join(root, name) if root.endswith(exec_dir_suffixes) \ or name.endswith(exec_file_suffixes): shelltools.chmod(filePath, 0755) else: shelltools.chmod(filePath, 0644)
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dosym("/usr/lib", "/usr/lib/apache2/lib") pisitools.dosym("/var/log/apache2", "/usr/lib/apache2/logs") pisitools.dosym("/etc/apache2", "/usr/lib/apache2/conf") pisitools.dosbin("support/split-logfile") pisitools.dosbin("support/list_hooks.pl") pisitools.dosbin("support/logresolve.pl") pisitools.dosbin("support/log_server_status") pisitools.dosbin("support/ab-ssl") pisitools.dosbin("apache2") # Tidy pisitools.domove("/usr/sbin/apachectl", "/usr/sbin", "apache2ctl") pisitools.domove("/usr/sbin/list_hooks.pl", "/usr/sbin", "list_hooks2.pl") pisitools.domove("/usr/sbin/logresolve.pl", "/usr/sbin", "logresolve2.pl") pisitools.domove("/usr/sbin/ab-ssl", "/usr/sbin", "ab2-ssl") pisitools.domove("/usr/sbin/suexec", "/usr/sbin", "suexec2") for i in ["htdigest", "htpasswd", "logresolve", "apxs", "ab", "rotatelogs", "dbmmanage", "checkgid", "split-logfile"]: pisitools.domove("/usr/sbin/%s" % i, "/usr/sbin", "%s2" % i) for i in ["htdigest", "htpasswd", "dbmmanage"]: pisitools.domove("/usr/share/man/man1/%s.1" % i, "/usr/share/man/man1", "%s2.1" % i) for i in ["ab", "apxs", "logresolve", "rotatelogs"]: pisitools.domove("/usr/share/man/man8/%s.8" % i, "/usr/share/man/man8", "%s2.8" % i) pisitools.domove("/usr/share/man/man8/apachectl.8", "/usr/share/man/man8", "apache2ctl.8") pisitools.domove("/usr/share/man/man8/httpd.8", "/usr/share/man/man8", "apache2.8") pisitools.domove("/usr/share/man/man8/suexec.8", "/usr/share/man/man8", "suexec2.8") pisitools.domove("/usr/sbin/envvars*", "/usr/lib/apache2/build") pisitools.dosed("%s/usr/sbin/apxs2" % get.installDIR(), \ "my \$envvars = get_vars\(\"sbindir\"\) \. \"/envvars\";", \ "my $envvars = \"$installbuilddir/envvars\";") # Clean-up pisitools.remove("/etc/apache2/*") pisitools.remove("/var/www/localhost/htdocs/*") # Add conf.d for 3rd party configuration files pisitools.dodir("/etc/apache2/conf.d") # ssl enabled apache needs that one pisitools.dodir("/var/cache/apache2") # Fix wrong libtool path pisitools.dosed("%s/usr/lib/apache2/build/config_vars.mk" % get.installDIR(), \ "/usr/lib/apache2/build/libtool", \ "/usr/bin/libtool") # Remove cgi scripts which are vulnerable, see CVE-2007-4049 pisitools.remove("/var/www/localhost/cgi-bin/*") pisitools.dodoc("ABOUT_APACHE", "CHANGES", "LAYOUT", "LICENSE", "README*")
def install(): # Controlcenter binaries pisitools.dobin("arch/%s/usr/X11R6/bin/*" % Target) pisitools.dobin("common/usr/X11R6/bin/*") pisitools.dosbin("arch/%s/usr/sbin/*" % Target) pisitools.dosbin("common/usr/sbin/*") # Controlcenter libraries # The other files under /usr/share are common files like icon,man,doc ,etc .. DIRS = { "common/usr/share/doc/fglrx/examples/etc/acpi/events": "/etc/acpi", "common/etc/ati": "/etc", "arch/%s/usr/X11R6/lib*/*" % Target: "/usr/lib", "arch/%s/usr/lib*/*" % Target: "/usr/lib", "common/usr/share": "/usr" } for source, target in DIRS.items(): pisitools.insinto(target, source) # X.org drivers pisitools.domove("/usr/lib/modules", "/usr/lib/fglrx") pisitools.insinto("/usr/lib/fglrx/modules", "%s/usr/X11R6/lib*/modules/*" % XDir) pisitools.domove("/usr/lib/libGL.so.1.2", "/usr/lib/fglrx") pisitools.domove("/usr/lib/fglrx/modules/dri", "/usr/lib/xorg/modules/") # Necessary symlinks pisitools.dosym("/usr/lib/xorg/modules/dri/fglrx_dri.so", "/usr/lib/dri/fglrx_dri.so") pisitools.dosym("libatiuki.so.1.0", "/usr/lib/libatiuki.so.1") pisitools.dosym("libatiuki.so.1", "/usr/lib/libatiuki.so") 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("libAMDXvBA.so.1.0", "/usr/lib/libAMDXvBA.so.1") pisitools.dosym("libAMDXvBA.so.1", "/usr/lib/libAMDXvBA.so") pisitools.dosym("libXvBAW.so.1.0", "/usr/lib/libXvBAW.so.1") pisitools.dosym("libXvBAW.so.1", "/usr/lib/libXvBAW.so") # compatibility links pisitools.dosym("/usr", "/usr/X11R6") pisitools.dosym("xorg/modules", "/usr/lib/modules") # copy compiled kernel module pisitools.insinto("/lib/modules/%s/extra" % KDIR, "common/lib/modules/fglrx/fglrx.%s.ko" % KDIR, "fglrx.ko") # remove static libs pisitools.remove("/usr/lib/*.a") if shelltools.isFile("%s/usr/lib/fglrx/modules/esut.a" % get.installDIR()): pisitools.remove("/usr/lib/fglrx/modules/esut.a") # control script for ACPI lid state and AC adapter state pisitools.insinto( "/etc/acpi", "common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh") # not needed as xdg-utils package provides xdg-su pisitools.remove("/usr/bin/amdxdg-su") pisitools.domove("/usr/share/icons/ccc_large.xpm", "/usr/share/pixmaps", "amdcccle.xpm") pisitools.removeDir("/usr/share/icons") # Fix file permissions exec_file_suffixes = (".sh", ".so", ".so.1.2") exec_dir_suffixes = ("/bin", "/sbin", "/lib") import os for root, dirs, files in os.walk(get.installDIR()): for name in files: filePath = os.path.join(root, name) if os.path.islink(filePath): continue if root.endswith(exec_dir_suffixes) \ or name.endswith(exec_file_suffixes): shelltools.chmod(filePath, 0755) else: shelltools.chmod(filePath, 0644)
def install(): pisitools.dosbin("logrotate") pisitools.doman("logrotate.8") pisitools.dodoc("examples/logrotate*") pisitools.dodir("/etc/logrotate.d")
def install(): pisitools.dosbin("traceroute") pisitools.dosym("/usr/sbin/traceroute", "/bin/traceroute") pisitools.doman("traceroute.8") pisitools.dodoc("CHANGES", "INSTALL")
def install(): pisitools.dosbin("tcpdump") pisitools.doman("tcpdump.1") pisitools.dodoc("CHANGES", "LICENSE", "README", "CREDITS", "*.awk")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dosbin("update-usbids") pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")
def install(): pisitools.doman("irqbalance.1") pisitools.dosbin("irqbalance") pisitools.dodoc("COPYING", "AUTHORS")
def install(): pisitools.dosbin("usb_modeswitch") pisitools.insinto("/etc", "usb_modeswitch.conf")
def install(): # Setup files in /etc pisitools.dodir("/etc") shelltools.move("etc/", "%s/etc" % get.installDIR()) shelltools.chmod("%s/etc/shadow" % get.installDIR(), 0600) # 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"): pisitools.domove("/etc/%s" % file, "/usr/share/baselayout") # Install init scripts shelltools.move("init.d/", "%s/etc/init.d" % get.installDIR()) shelltools.move("rc-lists", "%s/usr/share/baselayout/rc-lists" % get.installDIR()) # sysvinit is its own package again, and provides the inittab itself pisitools.remove("/etc/inittab") # Setup files related to /dev pisitools.dosbin("sbin/MAKEDEV", "/sbin") pisitools.dosym("../../sbin/MAKEDEV", "/usr/sbin/MAKEDEV") pisitools.dosym("../sbin/MAKEDEV", "/dev/MAKEDEV") # Setup files in /bin pisitools.dobin("bin/rc-status", "/bin") pisitools.dobin("bin/bashlogin", "/bin") pisitools.dobin("bin/xlogin", "/bin") # Setup files in /sbin pisitools.dosbin("sbin/rc", "/sbin") pisitools.dosbin("sbin/rc-update", "/sbin") # Need this in /sbin, as it could be run before /usr is mounted. pisitools.dosbin("sbin/modules-update", "/sbin") # Compat symlinks until I can get things synced. pisitools.dosym("modules-update", "/sbin/update-modules") pisitools.dosym("../../sbin/modules-update", "/usr/sbin/update-modules") # These moved from /etc/init.d/ to /sbin to help newb systems from breaking pisitools.dosbin("sbin/runscript.sh", "/sbin") pisitools.dosbin("sbin/functions.sh", "/sbin") pisitools.dosbin("sbin/livecd-functions.sh", "/sbin") # Compat symlinks between /etc/init.d and /sbin (some stuff have hardcoded paths) pisitools.dosym("../../sbin/depscan.sh", "/etc/init.d/depscan.sh") pisitools.dosym("../../sbin/runscript.sh", "/etc/init.d/runscript.sh") pisitools.dosym("../../sbin/functions.sh", "/etc/init.d/functions.sh") # Setup files in /lib/rcscript pisitools.doexe("sbin/rc-services.sh", "/lib/rcscripts/sh") pisitools.doexe("sbin/rc-daemon.sh", "/lib/rcscripts/sh") pisitools.doexe("sbin/rc-help.sh", "/lib/rcscripts/sh") # This is for new depscan.sh and env-update.sh written in awk pisitools.dosbin("sbin/depscan.sh", "/sbin") pisitools.dosbin("sbin/env-update.sh", "/sbin") pisitools.insinto("/lib/rcscripts/awk", "src/awk/cachedepends.awk") pisitools.insinto("/lib/rcscripts/awk", "src/awk/functions.awk") pisitools.insinto("/lib/rcscripts/awk", "src/awk/gendepends.awk") pisitools.insinto("/lib/rcscripts/awk", "src/awk/genenviron.awk") # Install baselayout documentation pisitools.doman("man/*.*") pisitools.dodoc("ChangeLog") # i18n support for Turkish pisitools.insinto("/etc", "i18n/init.tr") # Install baselayout utilities shelltools.cd("src") autotools.rawInstall("DESTDIR=\"%s\"" % get.installDIR()) # Create needed directories !!! create_directories()
def install(): pisitools.dosbin("interbench") pisitools.dodoc("COPYING", "readme", "readme.interactivity") pisitools.doman("interbench.8")
def install(): # Controlcenter binaries if not get.buildTYPE() == 'emul32': pisitools.dobin("arch/%s/usr/X11R6/bin/*" % Target) pisitools.dobin("common/usr/X11R6/bin/*") pisitools.dosbin("arch/%s/usr/sbin/*" % Target) pisitools.dobin("arch/%s/usr/bin/*" % Target) pisitools.dosbin("common/usr/sbin/*") # Controlcenter libraries # The other files under /usr/share are common files like icon,man,doc ,etc .. DIRS = { "common/usr/share/doc/fglrx/examples/etc/acpi/events": "/etc/acpi", "common/etc/*": "/etc", "arch/%s/etc/OpenCL/*" % Target: "/etc/OpenCL", "arch/%s/usr/X11R6/lib*/*" % Target: Libdir, "arch/%s/usr/lib*/*" % Target: Libdir, "common/usr/share/*": "/usr/share" } # Emul32 package don't need files that belongs to /usr/share if get.buildTYPE() == "emul32": del DIRS["common/usr/share/*"] del DIRS["common/etc/*"] del DIRS["common/usr/share/doc/fglrx/examples/etc/acpi/events"] for source, target in DIRS.items(): pisitools.insinto(target, source) # pisitools.insinto("usr/share/ati/lib64", "arch/%s/usr/share/ati/lib*/*" % Target) # X.org drivers pisitools.domove("%s/modules" % Libdir, "%s/fglrx" % Libdir) pisitools.insinto("%s/fglrx/modules" % Libdir, "%s/usr/X11R6/lib*/modules/*" % XDir) pisitools.insinto("%s/xorg/modules" % Libdir, "%s/usr/X11R6/lib*/modules/*" % XDir) # libGl library name changed to fglrx-libGl since 1.15 pisitools.domove("%s/fglrx/fglrx-libGL.so.1.2" % Libdir, "%s/fglrx" % Libdir, "libGL.so.1.2.0") pisitools.domove("%s/fglrx/modules/dri" % Libdir, "%s/xorg/modules/" % Libdir) pisitools.domove( "%s/fglrx/modules/extensions/fglrx/fglrx-libglx.so" % Libdir, "%s/fglrx/modules/extensions" % Libdir, "libglx.so") # Necessary symlinks pisitools.dosym("%s/xorg/modules/dri/fglrx_dri.so" % Libdir, "%s/dri/fglrx_dri.so" % Libdir) pisitools.dosym("libatiuki.so.1.0", "%s/libatiuki.so.1" % Libdir) pisitools.dosym("libatiuki.so.1", "%s/libatiuki.so" % Libdir) pisitools.dosym("libfglrx_dm.so.1.0", "%s/libfglrx_dm.so.1" % Libdir) pisitools.dosym("libfglrx_dm.so.1", "%s/libfglrx_dm.so" % Libdir) pisitools.dosym("libAMDXvBA.so.1.0", "%s/libAMDXvBA.so.1" % Libdir) pisitools.dosym("libAMDXvBA.so.1", "%s/libAMDXvBA.so" % Libdir) pisitools.dosym("libXvBAW.so.1.0", "%s/libXvBAW.so.1" % Libdir) pisitools.dosym("libXvBAW.so.1", "%s/libXvBAW.so" % Libdir) # remove static libs pisitools.remove("%s/*.a" % Libdir) if shelltools.isFile("%s%s/fglrx/modules/esut.a" % (get.installDIR(), Libdir)): pisitools.remove("%s/fglrx/modules/esut.a" % Libdir) # compatibility links pisitools.dosym("xorg/modules", "%s/modules" % Libdir) # OK, That's the end of emul32 build, it's time to exit. if get.buildTYPE() == "emul32": return # Another compatibility link pisitools.dosym("/usr", "/usr/X11R6") pisitools.dosym("../security/console.apps/amdcccle-su", "/etc/pam.d/amdcccle-su") # copy compiled kernel module pisitools.insinto("/lib/modules/%s/extra/fglrx" % KDIR, "common/lib/modules/fglrx/fglrx.%s.ko" % KDIR, "fglrx.ko") pisitools.insinto("/lib/modules/%s/kernel/drivers/char/drm" % KDIR, "common/lib/modules/fglrx/fglrx.%s.ko" % KDIR, "fglrx.ko") # control script for ACPI lid state and AC adapter state pisitools.insinto( "/etc/acpi", "common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh") # not needed as xdg-utils package provides xdg-su pisitools.remove("/usr/bin/amdxdg-su") pisitools.domove("/usr/share/icons/ccc_large.xpm", "/usr/share/pixmaps", "amdcccle.xpm") pisitools.removeDir("/usr/share/icons") #LICENSE information pisitools.dodoc("LICENSE.TXT") # Fix file permissions exec_file_suffixes = (".sh", ".so", ".so.1.2.0") exec_dir_suffixes = ("/bin", "/sbin", "/lib") import os for root, dirs, files in os.walk(get.installDIR()): for name in files: filePath = os.path.join(root, name) if os.path.islink(filePath): continue if root.endswith(exec_dir_suffixes) \ or name.endswith(exec_file_suffixes): shelltools.chmod(filePath, 0755) else: shelltools.chmod(filePath, 0644)
def install(): pisitools.dosbin("br2684ctl") pisitools.doman("br2684ctl.8") pisitools.dodoc("COPYING")
def install(): pisitools.dosbin("br2684ctl") pisitools.doman("br2684ctl.8")
def install(): pisitools.dosbin("cowpatty")
def install(): autotools.install() pisitools.dosbin("snapmerge") pisitools.dodoc("INSTALL", "NEWS", "README", "ChangeLog", "patch-kernel.sh")
def install(): pisitools.dobin("udevinfo", "/bin") pisitools.dobin("udevtest", "/bin") pisitools.dobin("udevmonitor", "/bin") pisitools.dosbin("udev", "/sbin") pisitools.dosbin("udevd", "/sbin") pisitools.dosbin("udevsend", "/sbin") pisitools.dosbin("udevstart", "/sbin") pisitools.dosbin("udeveventrecorder", "/sbin") pisitools.dosbin("udevcontrol", "/sbin") pisitools.dosbin("extras/run_directory/udev_run_devd", "/sbin") pisitools.dosbin("extras/run_directory/udev_run_hotplugd", "/sbin") pisitools.dosbin("extras/ata_id/ata_id", "/sbin") pisitools.dosbin("extras/volume_id/vol_id", "/sbin") pisitools.dosbin("extras/scsi_id/scsi_id", "/sbin") pisitools.dosbin("extras/usb_id/usb_id", "/sbin") pisitools.dosbin("extras/cdrom_id/cdrom_id", "/sbin") pisitools.dosbin("extras/path_id", "/sbin") pisitools.dosbin("extras/floppy/create_floppy_devices", "/sbin") pisitools.dosbin("extras/firmware/firmware_helper" "/sbin") pisitools.doexe("extras/ide-devfs.sh", "/etc/udev/scripts/") pisitools.doexe("extras/raid-devfs.sh", "/etc/udev/scripts/") pisitools.doexe("extras/scsi-devfs.sh", "/etc/udev/scripts/") pisitools.doexe("extras/dvb.sh", "/etc/udev/scripts/") pisitools.insinto("/etc/udev/rules.d/", "etc/udev/gentoo/udev.rules", "50-udev.rules") # scsi_id configuration pisitools.insinto("/etc", "extras/scsi_id/scsi_id.config") # set up symlinks in /etc/hotplug.d/default pisitools.dodir("/etc/hotplug.d/default") pisitools.dosym("../../../sbin/udevsend", "/etc/hotplug.d/default/10-udev.hotplug") # set up the /etc/dev.d directory tree pisitools.dodir("/etc/dev.d/default") pisitools.dodir("/etc/dev.d/net") pisitools.doexe("extras/run_directory/dev.d/net/hotplug.dev", "/etc/dev.d/net") pisitools.doman("*.8") pisitools.doman("extras/ata_id/ata_id.8") pisitools.doman("extras/edd_id/edd_id.8") pisitools.doman("extras/scsi_id/scsi_id.8") pisitools.doman("extras/volume_id/vol_id.8") pisitools.doman("extras/dasd_id/dasd_id.8") pisitools.doman("extras/cdrom_id/cdrom_id.8") pisitools.dodoc("COPYING", "ChangeLog", "FAQ", "HOWTO-udev_for_dev", "README", "TODO", "RELEASE-NOTES") pisitools.dodoc("docs/overview", "docs/udev_vs_devfs") pisitools.dodoc("docs/writing_udev_rules/*") pisitools.newdoc("extras/volume_id/README", "README_volume_id") # Generate static one for initrd generateStatic()
def install(): pisitools.dosbin("hdparm", "/sbin") pisitools.dosbin("contrib/idectl", "/sbin") pisitools.doman("hdparm.8") pisitools.dodoc("hdparm.lsm", "Changelog", "README.acoustic")
def install(): pisitools.dosbin("fping") pisitools.doman("fping.8") pisitools.dodoc("ChangeLog", "COPYING", "README")
def install(): for i in ["sabishape", "sabishaperc"]: pisitools.dosbin(i) for i in ["sabishape.8", "sabishaperc.5"]: pisitools.doman(i)
def install(): pisitools.dosbin("flashrom") pisitools.doman("flashrom.8") pisitools.dodoc("ChangeLog", "COPYING", "README")
def install(): pisitools.dosbin("microcode_ctl") pisitools.doman("microcode_ctl.8") pisitools.dodoc("Changelog","README")