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.

60 lines
1.4 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 - 2009 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; do
  31. # which package?
  32. case "$x" in
  33. ip)
  34. y="iproute2" ;;
  35. vconfig)
  36. y="vlan" ;;
  37. *)
  38. y="$x" ;;
  39. esac
  40. z=$( echo "$x" | tr '[a-z]' '[A-Z]' )
  41. pkgprefix -t $y
  42. # where is it?
  43. case "$x" in
  44. wget|vconfig)
  45. x_path=bindir ;;
  46. *)
  47. x_path=sbindir ;;
  48. esac
  49. var_append configcache ' ' ac_cv_path_$z=$( pkgprefix $x_path $y )/$x
  50. done