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.5 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.2.0.tar.bz2",
  15. "fixesproto": PROTO + "fixesproto-4.1.1.tar.bz2",
  16. "resourceproto": PROTO + "resourceproto-1.1.0.tar.bz2",
  17. "fontsproto": PROTO + "fontsproto-2.1.0.tar.bz2",
  18. "bigreqsproto": PROTO + "bigreqsproto-1.1.0.tar.bz2",
  19. "kbproto": PROTO + "kbproto-1.0.4.tar.bz2",
  20. "inputproto": PROTO + "inputproto-2.0.tar.bz2",
  21. "glproto": PROTO + "glproto-1.4.12.tar.bz2",
  22. "xineramaproto": PROTO + "xineramaproto-1.2.tar.bz2",
  23. "randrproto": PROTO + "randrproto-1.3.1.tar.bz2",
  24. "scrnsaverproto": PROTO + "scrnsaverproto-1.2.0.tar.bz2",
  25. "renderproto": PROTO + "renderproto-0.11.tar.bz2",
  26. "xcmiscproto": PROTO + "xcmiscproto-1.2.0.tar.bz2",
  27. "xextproto": PROTO + "xextproto-7.1.1.tar.bz2",
  28. "xf86driproto": PROTO + "xf86driproto-2.1.0.tar.bz2",
  29. "dri2proto": PROTO + "dri2proto-2.1.tar.bz2",
  30. "compositeproto": PROTO + "compositeproto-0.4.1.tar.bz2",
  31. "xf86vidmodeproto": PROTO + "xf86vidmodeproto-2.3.tar.bz2",
  32. "videoproto": PROTO + "videoproto-2.3.0.tar.bz2",
  33. "xproto": PROTO + "xproto-7.0.16.tar.bz2",
  34. "libxkbfile": LIB + "libxkbfile-1.0.6.tar.bz2",
  35. "libXxf86vm": LIB + "libXxf86vm-1.1.0.tar.bz2",
  36. "libXext": LIB + "libXext-1.1.2.tar.bz2",
  37. "libfontenc": LIB + "libfontenc-1.0.5.tar.bz2",
  38. "libXau": LIB + "libXau-1.0.6.tar.bz2",
  39. "libXfont": LIB + "libXfont-1.4.2.tar.bz2",
  40. "libXfixes": LIB + "libXfixes-4.0.5.tar.bz2",
  41. "libSM": LIB + "libSM-1.1.1.tar.bz2",
  42. "libXi": LIB + "libXi-1.3.2.tar.bz2",
  43. "libXmu": LIB + "libXmu-1.0.5.tar.bz2",
  44. "libX11": LIB + "libX11-1.3.5.tar.bz2",
  45. "libXdmcp": LIB + "libXdmcp-1.0.3.tar.bz2",
  46. "xtrans": LIB + "xtrans-1.2.5.tar.bz2",
  47. "libXt": LIB + "libXt-1.0.8.tar.bz2",
  48. "libpciaccess": LIB + "libpciaccess-0.12.0.tar.bz2",
  49. "libICE": LIB + "libICE-1.0.6.tar.bz2",
  50. "pixman": LIB + "pixman-0.19.2.tar.bz2",
  51. "libXdamage": LIB + "libXdamage-1.1.3.tar.bz2",
  52. "util-macros": UTIL + "util-macros-1.10.0.tar.bz2",
  53. "xorg-server": SERVER + "xorg-server-1.8.2.tar.bz2",
  54. "libdrm": "http://dri.freedesktop.org/libdrm/libdrm-2.4.21.tar.bz2",
  55. "Mesa": "ftp://ftp.freedesktop.org/pub/mesa/beta/MesaLib-7.8.3-rc1.tar.bz2",
  56. "libpthread-stubs": "http://xcb.freedesktop.org/dist/libpthread-stubs-0.3.tar.bz2",
  57. "freetype": "http://downloads.sourceforge.net/freetype/freetype-2.4.2.tar.bz2",
  58. }
  59. def main():
  60. dir = os.path.expanduser("~")+"/.tigervnc-xorg-7.5"
  61. cwd = os.getcwd()
  62. if not os.path.exists(dir):
  63. os.mkdir(dir)
  64. os.chdir(dir)
  65. for pkg in packages.keys():
  66. loc = packages[pkg]
  67. if ".tar.bz2" in loc:
  68. fname = pkg + ".tar.bz2"
  69. else :
  70. fname = pkg + ".tar.gz"
  71. if not os.path.exists(fname):
  72. assert 0 == os.spawnvp(os.P_WAIT, "wget", ["-N", "-c", "-O", fname, loc])
  73. os.chdir(cwd)
  74. main()