Browse Source

lirc: fixed to only install a udev rules file when udev is installed

stable/0.2
Christian Wiese 14 years ago
parent
commit
e68ba356da
  1. 5
      multimedia/lirc/lirc.conf

5
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"

Loading…
Cancel
Save