mirror of the now-defunct rocklinux.org
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.

63 lines
1.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/be-el/sge/sge.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. sge_main() {
  23. cd $builddir/gridengine/source;
  24. # applying linux patches
  25. # aimk checks for glibc 2.2 only...
  26. patch -p0 < $confdir/linux.patch-x
  27. # use rock linux specific site file
  28. mv aimk.site aimk.site.orig
  29. cp $confdir/aimk.site .
  30. # create the dependencies
  31. ./aimk -only-depend
  32. ./scripts/zerodepend
  33. ./aimk depend
  34. # build SGE
  35. # qmon, the monitoring tool of sge, clashed with the lesstif
  36. # library, so disable it
  37. # qrsh, a tools for getting a remote shell on a cluster host,
  38. # got problems with some header files
  39. ./aimk -no-qmon -opt
  40. # create manpages
  41. ./aimk -man
  42. # prepare a local distribution
  43. # according to the documentation, we have to symlink
  44. # scripts/distinst to myinst
  45. ln -s scripts/distinst myinst
  46. # the variable SGE_ROOT defines where to put the distribution
  47. # files. we choose /opt/sge
  48. SGE_ROOT=/opt/sge
  49. export SGE_ROOT
  50. mkdir -p $SGE_ROOT
  51. echo "" | ./myinst -allall glinux
  52. }
  53. custmain="sge_main"