OpenSDE Packages Database (without history before r20070)
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.

69 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../util-vserver/util-vserver.conf
  5. # Copyright (C) 2006 - 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. vserver_cqtools() {
  16. cd $builddir
  17. tar $taropt `match_source_file -p " cq-tools"`
  18. cd cq-tools-*
  19. eval "$MAKE $makeopt all"
  20. # no `make install`
  21. cp -vdf $( grep '^all:' Makefile | cut -f2 ) $root$sbindir
  22. }
  23. var_append patchfiles ' ' $( match_source_file -p patch-$ver )
  24. if [ "$SDECFG_PKG_VSERVER_QUOTA" = "1" ]; then
  25. hook_add postmake 5 'vserver_cqtools'
  26. fi
  27. var_remove_regex makeopt ' ' 'CC=.*'
  28. # install test scripts
  29. vserver_tests() {
  30. echo "Installing test*.sh scripts..."
  31. cp -v $( match_source_file -p testme ) $root$docdir/testme.sh
  32. cp -v $( match_source_file -p testfs ) $root$docdir/testfs.sh
  33. chmod +x $root$docdir/test{me,fs}.sh
  34. }
  35. hook_add postmake 5 "vserver_tests"
  36. # some help to crosscompile
  37. #
  38. for x in ip iptables vconfig wget; do
  39. # which package?
  40. case "$x" in
  41. ip)
  42. y="iproute2" ;;
  43. vconfig)
  44. y="vlan" ;;
  45. *)
  46. y="$x" ;;
  47. esac
  48. z=$( echo "$x" | tr '[a-z]' '[A-Z]' )
  49. pkgprefix -t $y
  50. # where is it?
  51. case "$x" in
  52. wget|vconfig)
  53. x_path=bindir ;;
  54. *)
  55. x_path=sbindir ;;
  56. esac
  57. var_append configcache ' ' ac_cv_path_$z=$( pkgprefix $x_path $y )/$x
  58. done