SHA256
1
0
forked from pool/v4l-utils
v4l-utils/udev-rules-dir.patch
Asterios Dramis a0e5998bdb Accepting request 138923 from openSUSE:Factory:Staging:Systemd
Add udev-rules-dir.patch and BuildRequires udev to fix build with new udev rules directory location.

OBS-URL: https://build.opensuse.org/request/show/138923
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/v4l-utils?expand=0&rev=19
2012-10-21 12:32:27 +00:00

22 lines
822 B
Diff

Index: v4l-utils-0.8.8/utils/keytable/Makefile
===================================================================
--- v4l-utils-0.8.8.orig/utils/keytable/Makefile
+++ v4l-utils-0.8.8/utils/keytable/Makefile
@@ -1,4 +1,5 @@
TARGETS = ir-keytable
+UDEVRULESDIR=/lib/udev/rules.d
all: $(TARGETS)
@@ -37,8 +38,8 @@ install: $(TARGETS)
install -m 644 -p rc_maps.cfg $(DESTDIR)/etc
install -m 755 -d $(DESTDIR)/etc/rc_keymaps
install -m 644 -p rc_keymaps/* $(DESTDIR)/etc/rc_keymaps
- install -m 755 -d $(DESTDIR)/lib/udev/rules.d
- install -m 644 -p 70-infrared.rules $(DESTDIR)/lib/udev/rules.d
+ install -m 755 -d $(DESTDIR)/$(UDEVRULESDIR)
+ install -m 644 -p 70-infrared.rules $(DESTDIR)/$(UDEVRULESDIR)
install -m 755 -d $(DESTDIR)$(MANDIR)/man1
install -m 644 -p ir-keytable.1 $(DESTDIR)$(MANDIR)/man1