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.

27 lines
661 B

  1. vserver_cqtools() {
  2. cd $builddir
  3. tar $taropt $archdir/$( echo "$desc_D" | grep " cq-tools-" | cut -d' ' -f2 )
  4. cd cq-tools-*
  5. make all
  6. cp -vdf $( grep 'all:' Makefile | cut -f2 ) $sbindir
  7. }
  8. vserver_vrtools() {
  9. cd $builddir
  10. tar $taropt $archdir/$( echo "$desc_D" | grep " vr-tools-" | cut -d' ' -f2 )
  11. cd vr-tools-*
  12. make vrsetup
  13. cp -vf vrsetup $sbindir
  14. }
  15. vserver_vproc() {
  16. cd $builddir
  17. tar $taropt $archdir/$( echo "$desc_D" | grep " vproc-" | cut -d' ' -f2 )
  18. cd vproc-*
  19. make vproc
  20. cp -vf vproc $sbindir
  21. }
  22. if [ "$ROCKCFG_PKG_VSERVER_QUOTA" = "1" ]; then
  23. hook_add postdoc 6 'vserver_vrtools; vserver_cqtools'
  24. fi
  25. hook_add postdoc 5 'vserver_vproc'