1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../udev/udev.conf
5 # Copyright (C) 2004 - 2020 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
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 ---
16 if [ $prefix_auto = 1 ]; then
24 for x in `ls -d extras/ 2>/dev/null`; do
25 var_append uxp " " "extras/$x"
30 echo "Installing T2 configuration and scripts ..."
31 for x in `ls $confdir/[0-9]*.rules 2>/dev/null`; do
32 cp -fv $x $root$sysconfdir/udev/rules.d/
34 for x in `ls $confdir/scripts_* 2>/dev/null`; do
35 d=${x#*scripts_}; d=${d##*/}
36 cp -fv $x $root/lib/udev/$d
37 chmod +x $root/lib/udev/$d
41 [ $SDECFG_PKG_UDEV_DEVDIR ] || SDECFG_PKG_UDEV_DEVDIR=/dev
43 if pkginstalled gobject-introspection; then
44 var_append confopt " " " --enable-introspection"
46 var_append confopt " " " --disable-introspection"
48 if pkginstalled libusb; then
49 var_append confopt " " " --enable-extras"
51 var_append confopt " " " --disable-extras"
54 var_append confopt " " "--libexecdir=/lib --disable-keymap" # $libdir?
55 var_append confopt " " "--with-pci-ids-path=/usr/share/pci.ids"
56 var_append makeopt " " "LD=$CC LDFLAGS= udevdir=$SDECFG_PKG_UDEV_DEVDIR"
57 var_append makeopt " " 'EXTRAS="$uxp" prefix='
58 var_append makeinstopt " " "LD=$CC LDFLAGS= udevdir=$SDECFG_PKG_UDEV_DEVDIR"
59 var_append makeinstopt " " 'EXTRAS="$uxp" prefix='
60 var_append makeinstopt " " "pkgconfigdir=/usr/lib/pkgconfig"
62 var_append INSTALL_WRAPPER_FILTER '|' 'sed -e s,lib/udev/udevd,sbin/udevd,'
64 hook_add premake 5 "udev_uxp"
65 hook_add premake 5 "mkdir -p $root/lib/udev"
66 hook_add postmake 5 "udev_pm"