1
0

adkprepare.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #!/bin/sh
  2. # This file is part of the OpenADK project. OpenADK is copyrighted
  3. # material, please see the LICENCE file in the top-level directory.
  4. os=$(uname)
  5. ver=$(uname -r)
  6. arch=$(uname -m)
  7. linux() {
  8. echo "Preparing Linux for OpenADK is not implemented, yet"
  9. exit 1
  10. }
  11. darwin() {
  12. echo "Preparing MacOS X for OpenADK, is not implemented, yet"
  13. exit 1
  14. }
  15. openbsd() {
  16. echo "Preparing OpenBSD for OpenADK"
  17. PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/${ver}/packages/${arch}/"
  18. export PKG_PATH
  19. pkg_add -v gmake
  20. pkg_add -v rsync--
  21. pkg_add -v git
  22. pkg_add -v bash
  23. pkg_add -v unzip
  24. pkg_add -v wget
  25. pkg_add -v gtar--
  26. pkg_add -v gawk
  27. pkg_add -v gsed
  28. pkg_add -v xz
  29. pkg_add -v lzop
  30. pkg_add -v intltool
  31. pkg_add -v screen--
  32. pkg_add -v vim--no_x11
  33. }
  34. netbsd() {
  35. echo "Preparing NetBSD for OpenADK"
  36. PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${arch}/${ver}/All/"
  37. export PKG_PATH
  38. pkg_add -vu xz
  39. pkg_add -vu scmgit
  40. pkg_add -vu gmake
  41. pkg_add -vu bash
  42. pkg_add -vu wget
  43. pkg_add -vu unzip
  44. pkg_add -vu gtar
  45. pkg_add -vu gsed
  46. pkg_add -vu gawk
  47. pkg_add -vu intltool
  48. pkg_add -vu vim
  49. pkg_add -vu screen
  50. pkg_add -vu mksh
  51. }
  52. freebsd() {
  53. echo "Preparing FreeBSD for OpenADK"
  54. pkg_add -r git gmake bash wget unzip gtar gsed gawk intltool screen mksh vim
  55. }
  56. case $os in
  57. Linux)
  58. linux
  59. ;;
  60. FreeBSD)
  61. freebsd
  62. ;;
  63. OpenBSD)
  64. openbsd
  65. ;;
  66. NetBSD)
  67. netbsd
  68. ;;
  69. Darwin)
  70. darwin
  71. ;;
  72. *)
  73. echo "OS not supported"
  74. ;;
  75. esac