You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

download-xorg-7.4 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #!/usr/bin/env python
  2. # -*-mode: python; coding: UTF-8 -*-
  3. import os
  4. import glob
  5. #INDI = "http://ftp.sunet.se/pub/X11/ftp.x.org/individual"
  6. INDI = "http://ftp.x.org/pub/individual/"
  7. PROTO = INDI + "proto/"
  8. LIB = INDI + "lib/"
  9. SERVER = INDI + "xserver/"
  10. UTIL = INDI + "util/"
  11. DATA = INDI + "data/"
  12. APP = INDI + "app/"
  13. packages = {
  14. "damageproto": PROTO + "damageproto-1.1.0.tar.bz2",
  15. "fixesproto": PROTO + "fixesproto-4.0.tar.bz2",
  16. "resourceproto": PROTO + "resourceproto-1.0.2.tar.bz2",
  17. "fontsproto": PROTO + "fontsproto-2.0.2.tar.bz2",
  18. "fontcacheproto" : PROTO + "fontcacheproto-0.1.2.tar.bz2",
  19. "bigreqsproto": PROTO + "bigreqsproto-1.0.2.tar.bz2",
  20. "kbproto": PROTO + "kbproto-1.0.3.tar.bz2",
  21. "inputproto": PROTO + "inputproto-1.5.1.tar.bz2",
  22. "glproto": PROTO + "glproto-1.4.9.tar.bz2",
  23. "xineramaproto": PROTO + "xineramaproto-1.1.2.tar.bz2",
  24. "randrproto": PROTO + "randrproto-1.3.2.tar.bz2",
  25. "scrnsaverproto": PROTO + "scrnsaverproto-1.1.0.tar.bz2",
  26. "renderproto": PROTO + "renderproto-0.9.3.tar.bz2",
  27. "evieext": PROTO + "evieext-1.0.2.tar.bz2",
  28. "xcmiscproto": PROTO + "xcmiscproto-1.1.2.tar.bz2",
  29. "xextproto": PROTO + "xextproto-7.0.3.tar.bz2",
  30. "xf86driproto": PROTO + "xf86driproto-2.0.4.tar.bz2",
  31. "dri2proto": PROTO + "dri2proto-2.1.tar.bz2",
  32. "compositeproto": PROTO + "compositeproto-0.4.tar.bz2",
  33. "xf86vidmodeproto": PROTO + "xf86vidmodeproto-2.2.2.tar.bz2",
  34. "videoproto": PROTO + "videoproto-2.2.2.tar.bz2",
  35. "xproto": PROTO + "xproto-7.0.13.tar.bz2",
  36. "libxkbfile": LIB + "libxkbfile-1.0.5.tar.bz2",
  37. "libXxf86vm": LIB + "libXxf86vm-1.0.2.tar.bz2",
  38. "libXext": LIB + "libXext-1.0.4.tar.bz2",
  39. "libfontenc": LIB + "libfontenc-1.0.4.tar.bz2",
  40. "libXau": LIB + "libXau-1.0.4.tar.bz2",
  41. "libXfont": LIB + "libXfont-1.3.4.tar.bz2",
  42. "libXfixes": LIB + "libXfixes-4.0.3.tar.bz2",
  43. "libSM": LIB + "libSM-1.1.0.tar.bz2",
  44. "libXi": LIB + "libXi-1.1.3.tar.bz2",
  45. "libXmu": LIB + "libXmu-1.0.4.tar.bz2",
  46. "libX11": LIB + "libX11-1.1.5.tar.bz2",
  47. "libXdmcp": LIB + "libXdmcp-1.0.2.tar.bz2",
  48. "xtrans": LIB + "xtrans-1.2.2.tar.bz2",
  49. "libXt": LIB + "libXt-1.0.5.tar.bz2",
  50. "libpciaccess": LIB + "libpciaccess-0.10.4.tar.bz2",
  51. "libICE": LIB + "libICE-1.0.4.tar.bz2",
  52. "pixman": LIB + "pixman-0.16.0.tar.bz2",
  53. "libXdamage": LIB + "libXdamage-1.1.1.tar.bz2",
  54. "util-macros": UTIL + "util-macros-1.1.6.tar.bz2",
  55. "xorg-server": SERVER + "xorg-server-1.6.5.tar.bz2",
  56. "libdrm": "http://dri.freedesktop.org/libdrm/libdrm-2.4.0.tar.bz2",
  57. "Mesa": "http://downloads.sourceforge.net/mesa3d/MesaLib-7.2.tar.bz2",
  58. "libpthread-stubs": "http://xcb.freedesktop.org/dist/libpthread-stubs-0.1.tar.bz2",
  59. "freetype": "http://downloads.sourceforge.net/freetype/freetype-2.3.11.tar.bz2",
  60. }
  61. def main():
  62. dir = os.path.expanduser("~")+"/.tigervnc-xorg-7.4"
  63. cwd = os.getcwd()
  64. if not os.path.exists(dir):
  65. os.mkdir(dir)
  66. os.chdir(dir)
  67. for pkg in packages.keys():
  68. loc = packages[pkg]
  69. fname = pkg + ".tar.bz2"
  70. if not os.path.exists(fname):
  71. assert 0 == os.spawnvp(os.P_WAIT, "wget", ["-N", "-c", "-O", fname, loc])
  72. os.chdir(cwd)
  73. main()