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.

55 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../udev/udev.conf
  5. # Copyright (C) 2007 - 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. if [ "$prefix_auto" = 1 ] ; then
  15. prefix=
  16. set_confopt
  17. fi
  18. udev_devices() {
  19. local devdir="$root/lib/udev/devices"
  20. echo "Creating base nodes ..."
  21. mkdir -p "$devdir"
  22. $confdir/create_nodes.sh $devdir < $confdir/udev_device_nodes.txt
  23. }
  24. udev_rules() {
  25. local rulesd=$root$sysconfdir/udev/rules.d
  26. echo "Installing our .rules files..."
  27. for x in $confdir/rules/*.rules; do
  28. [ ! -e "etc/udev/rules.d/${x##*/}" ] || echo_warning "${x##*/}: conflict detected."
  29. install -v -m 644 $x $rulesd/
  30. done
  31. }
  32. hook_add postmake 5 'udev_devices'
  33. hook_add postmake 6 'udev_rules'
  34. var_append makeopt ' ' "LD=$CC"
  35. var_append makeopt ' ' 'DEBUG=true'
  36. # FIXME: For now we have to build it static by default because of our initrd!
  37. #if [ "$SDECFG_STATIC" == "1" ]; then
  38. var_append makeopt ' ' "VOLUME_ID_STATIC=true"
  39. var_append patchfiles ' ' "$confdir/no_libvolume_id_so.diff"
  40. #fi
  41. # list of extra helpers to build and install
  42. hook_add postpatch 5 "export extras=\$( ls -1d extras/* | grep -v '\.sh' | tr '\n' ' ' )"
  43. var_append makeopt ' ' 'EXTRAS="$extras"'
  44. var_append makeinstopt ' ' 'EXTRAS="$extras"'