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.

44 lines
1.5 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../modutils/modutils.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  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. # --- T2-COPYRIGHT-NOTE-END ---
  15. modutils_pm() {
  16. cp -vf $confdir/modules.conf.data $root/etc/modules.conf
  17. mv -fv $root/sbin/lsmod$postfix $root/bin/
  18. if [ -h $root/bin/lsmod$postfix ] ; then
  19. # correct the symlink destination
  20. rm $root/bin/lsmod$postfix
  21. ln -sfv ../sbin/modprobe$postfix $root/bin/lsmod$postfix
  22. fi
  23. }
  24. hook_add postmake 5 "modutils_pm"
  25. var_append confopt " " "--sbindir=/sbin"
  26. var_append CFLAGS " " "-I$root/usr/src/linux/include"
  27. var_remove GCC_WRAPPER_APPEND " " "-s"
  28. postfix=""
  29. if pkginstalled module-init-tools ; then
  30. var_append patchfiles " " $confdir/use_old_postfix.diff
  31. # we need to break the flist-del variable name so Check-PkgFormat
  32. # doesn't think that we would add something to the variable ...
  33. var_remove flist''del '|' ".*\\.old"
  34. hook_add postinstall 5 "ln -sfv genksyms.old $root/sbin/genksyms"
  35. postfix=".old"
  36. fi
  37. var_append makeinstopt " " "STRIP="