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.

49 lines
1.5 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) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. if [ $prefix_auto = 1 ] ; then
  17. prefix=""
  18. set_confopt
  19. fi
  20. # udev identification helper apps
  21. hook_add postpatch 5 "export uxp=\$( ls -1d extras/* | grep -v '\.sh' | tr '\n' ' ' )"
  22. udev_pm(){
  23. echo_status "Installing u/dev configuration and scripts ..."
  24. cp -fv $confdir/rules/[0-9]*.rules $root$sysconfdir/udev/rules.d/
  25. for x in $confdir/scripts/* extras/*.sh ; do
  26. cp -fv $x $root/lib/udev/
  27. chmod +x $root/lib/udev/${x##*/}
  28. done
  29. }
  30. var_append makeopt " " "LD=$CC"
  31. var_append makeopt " " "LDFLAGS="
  32. var_append makeopt " " "udevdir=${SDECFG_PKG_UDEV_DEVDIR:-/dev}"
  33. var_append makeopt " " 'EXTRAS="$uxp"'
  34. var_append makeopt " " 'VOLUME_ID_STATIC=true'
  35. makeinstopt="$makeopt install"
  36. var_append makeinstopt " " "DESTDIR=$root"
  37. var_append makeinstopt " " "prefix="
  38. hook_add premake 5 "mkdir -p $root/lib/udev"
  39. hook_add postmake 5 "udev_pm"