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.

58 lines
1.7 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. local node=
  21. echo "Creating base nodes ..."
  22. mkdir -p "$devdir"
  23. $confdir/create_nodes.sh $devdir < $confdir/udev_device_nodes.txt | while read node; do
  24. add_flist "$node"
  25. done
  26. }
  27. udev_rules() {
  28. local rulesd=$root$sysconfdir/udev/rules.d
  29. echo "Installing our .rules files..."
  30. for x in $confdir/rules/*.rules; do
  31. [ ! -e "etc/udev/rules.d/${x##*/}" ] || echo_warning "${x##*/}: conflict detected."
  32. install -v -m 644 $x $rulesd/
  33. done
  34. }
  35. hook_add postmake 5 'udev_devices'
  36. hook_add postmake 6 'udev_rules'
  37. var_append makeopt ' ' "LD=$CC"
  38. var_append makeopt ' ' 'DEBUG=true'
  39. # FIXME: For now we have to build it static by default because of our initrd!
  40. #if [ "$SDECFG_STATIC" == "1" ]; then
  41. var_append makeopt ' ' "VOLUME_ID_STATIC=true"
  42. var_append patchfiles ' ' "$confdir/no_libvolume_id_so.diff"
  43. #fi
  44. # list of extra helpers to build and install
  45. hook_add postpatch 5 "export extras=\$( ls -1d extras/* | grep -v '\.sh' | tr '\n' ' ' )"
  46. var_append makeopt ' ' 'EXTRAS="$extras"'
  47. var_append makeinstopt ' ' 'EXTRAS="$extras"'