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.

68 lines
1.6 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 - 2010 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. # some help to crosscompile
  29. #
  30. for x in ip iptables vconfig wget cp mv ln; do
  31. # which package or fixed path?
  32. x_path=
  33. case "$x" in
  34. ip)
  35. y="iproute2" ;;
  36. vconfig)
  37. y="vlan" ;;
  38. cp|mv|ln)
  39. x_path="/bin" ;;
  40. *)
  41. y="$x" ;;
  42. esac
  43. z=$( echo "$x" | tr '[a-z]' '[A-Z]' )
  44. # if no fixed path was provided by setting $x_path use pkgprefix
  45. if [ -z "$x_path" ]; then
  46. pkgprefix -t $y
  47. # where is it?
  48. case "$x" in
  49. wget|vconfig)
  50. x_path=bindir ;;
  51. *)
  52. x_path=sbindir ;;
  53. esac
  54. x_path="$( pkgprefix $x_path $y )"
  55. fi
  56. var_append configcache ' ' ac_cv_path_$z=$x_path/$x
  57. done