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