From e68ba356da6ea1dccc5b9f525b41d886744a4b47 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 16 May 2011 17:07:10 +0200 Subject: [PATCH] lirc: fixed to only install a udev rules file when udev is installed --- multimedia/lirc/lirc.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/multimedia/lirc/lirc.conf b/multimedia/lirc/lirc.conf index 3f9faf9d4..9a7cbb27f 100644 --- a/multimedia/lirc/lirc.conf +++ b/multimedia/lirc/lirc.conf @@ -2,6 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../lirc/lirc.conf +# Copyright (C) 2011 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -19,7 +20,9 @@ lirc_install () { mkdir -p $datadir/lirc cp -av contrib/{irman2lirc,lircd.conf,lircmd.conf,lircrc,lircs} $datadir/lirc - [ -d $sysconfdir/udev/rules.d ] && cp -av contrib/lirc.rules $root/etc/udev/rules.d + if pkginstalled -f udev; then + cp -av contrib/lirc.rules $( pkgprefix libdir udev )/udev/rules.d/ + fi } hook_add postmake 5 "lirc_install"