1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../udev/udev.conf
5 # Copyright (C) 2007 - 2008 The OpenSDE Project
7 # More information can be found in the files COPYING and README.
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 ---
15 if [ "$prefix_auto" = 1 ] ; then
21 local devdir="$root/lib/udev/devices"
23 echo "Creating base nodes ..."
25 $confdir/create_nodes.sh $devdir < $confdir/udev_device_nodes.txt
29 local rulesd=$root$sysconfdir/udev/rules.d
31 echo "Installing our .rules files..."
33 for x in $confdir/rules/*.rules; do
34 [ ! -e "etc/udev/rules.d/${x##*/}" ] || echo_warning "${x##*/}: conflict detected."
35 install -v -m 644 $x $rulesd/
39 hook_add postmake 5 'udev_devices'
40 hook_add postmake 6 'udev_rules'
42 var_append makeopt ' ' "LD=$CC"
44 var_append makeopt ' ' 'DEBUG=true'
46 # FIXME: For now we have to build it static by default because of our initrd!
47 #if [ "$SDECFG_STATIC" == "1" ]; then
48 var_append makeopt ' ' "VOLUME_ID_STATIC=true"
49 var_append patchfiles ' ' "$confdir/no_libvolume_id_so.diff"
52 # list of extra helpers to build and install
53 hook_add postpatch 5 "export extras=\$( ls -1d extras/* | grep -v '\.sh' | tr '\n' ' ' )"
54 var_append makeopt ' ' 'EXTRAS="$extras"'
55 var_append makeinstopt ' ' 'EXTRAS="$extras"'