Don't rely on autodetection as this will fail, eg when building
in a chroot without /dev/uinput, and result in lircd-uinput missing
Signed-off-by: Matthias Reichl <hias@horus.com>
The patch accidentally dropped installation of pkgconfig files which
lead to libirman not detecting lirc
Signed-off-by: Matthias Reichl <hias@horus.com>
When building lirc after alsa-utils, the following unwanted alsa libraries are built by lirc:
NEW FILE Delta: 10,536 devel-20190115185543-5767941: 10,536 devel-20190115133317-5767941: n/a /usr/lib/lirc/plugins/alsa_usb.so
NEW FILE Delta: 19,176 devel-20190115185543-5767941: 19,176 devel-20190115133317-5767941: n/a /usr/lib/lirc/plugins/audio_alsa.so
Add helper scripts for lircd and lircd-uinput so that we can
override lirc_options.conf and lircd.conf via files in
/storage/.config
Use separate systemd units for lircd and lircd-uinput, like in
upstream, and just add a ConditionPathExists to enable/disable
the services.
The lirc socket is managed by systemd via lircd.socket, like
in upstream.
Remove udev file for enabling lirc, this is now handled via
systemd only.
Based on upstream lirc_options.conf with the following changes:
- socket set to /run/lirc/lircd.socket, the default clashes with eventlircd
- pidfile in /run instead of /var/run
- driver set to default
- device set to /dev/lirc0