summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez/bluez4-4.101/fix-udev-paths.patch
blob: 80899148eed61d123172eb7919a7dd9e9b1d0c76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Add udevdir/udevrulesdir options

Upstream-Status: Inappropriate [configuration]
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>

Index: bluez-4.101/Makefile.am
===================================================================
--- bluez-4.101.orig/Makefile.am
+++ bluez-4.101/Makefile.am
@@ -395,7 +395,7 @@ EXTRA_DIST += audio/bluetooth.conf
 include Makefile.tools
 
 if DATAFILES
-rulesdir = @UDEV_DIR@/rules.d
+rulesdir = @UDEV_RULES_DIR@
 
 udev_files =
 
Index: bluez-4.101/configure.ac
===================================================================
--- bluez-4.101.orig/configure.ac
+++ bluez-4.101/configure.ac
@@ -61,4 +61,14 @@ if (test -n "${path_systemdunit}"); then
 fi
 AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
 
+AC_ARG_WITH([udevdir],
+    AS_HELP_STRING([--with-udevdir=DIR], [udev directory]),
+    [], [with_udevdir=/lib/udev/])
+AC_SUBST([UDEV_DIR], [$with_udevdir])
+
+AC_ARG_WITH([udevrulesdir],
+    AS_HELP_STRING([--with-udevrulesdir=DIR], [udev rules directory]),
+    [], [with_udevrulesdir=/lib/udev/rules.d])
+AC_SUBST([UDEV_RULES_DIR], [$with_udevrulesdir])
+
 AC_OUTPUT(Makefile doc/version.xml src/bluetoothd.8 src/bluetooth.service bluez.pc)