[Pkg-lirc-maint] Bug#554826: lirc: Init script with irexec wrapper and rearranged output

Alessandro Vietta at.tarf at gmail.com
Fri Nov 6 20:30:50 UTC 2009


Package: lirc
Version: 0.8.3-5
Severity: wishlist
Tags: patch


I'm filing this wishlist bug because I like to run irexec as an unprivileged user.

I use it to execute some commands, like running VLC setting lirc as control interface, Festival, mpc, ecc...
Given that "VLC is not supposed to be run as root" and I don't actually need irexec, VLC nor the other programs to be run as root, I added a wrapper to the init script.

User, group for the wrapper and a custom lircrc file can be defined into the file /etc/default/irexec:
# Irexec configuration file
# This file is loaded by /etc/init.d/lirc.

IREXEC_USER=user
IREXEC_GROUP=group
IREXEC_CONFIG=/PATH/TO/CUSTOM/lircrc

If these variables are defined, start-stop-daemon will change irexec user and group.
IREXEC_CONFIG allows to redefine the custom lircrc file.

I also modified the output messages because now they miss a bit of formatting...

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (800, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30.5-phoenix
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lirc depends on:
ii  debconf [debconf-2.0]        1.5.28      Debian configuration management sy
ii  libasound2                   1.0.21a-1   shared library for ALSA applicatio
ii  libc6                        2.10.1-5    GNU C Library: Shared libraries
ii  liblircclient0               0.8.3-5     infra-red remote control support -
ii  libusb-0.1-4                 2:0.1.12-13 userspace USB programming library
ii  lsb-base                     3.2-23      Linux Standard Base 3.2 init scrip

lirc recommends no packages.

Versions of packages lirc suggests:
ii  lirc-modules-source           0.8.3-5    infra-red remote control support -
pn  lirc-svga                     <none>     (no description available)
pn  lirc-x                        <none>     (no description available)

-- debconf information:
  lirc/take_care_of_old_config:
  lirc/install_devices: true
  lirc/irq:
  lirc/lircd_conf:
  lirc/reconfigure: false
  lirc/lircmd_conf:
  lirc/remove_var-log-lircd: true
  lirc/driver:
  lirc/port:
  lirc/device:
  lirc/should-use-IntelliMouse:
  lirc/cflags:
  lirc/timer:
  lirc/modules:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lirc
Type: text/x-shellscript
Size: 5383 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lirc-maint/attachments/20091106/22331a3b/attachment.bin>


More information about the Pkg-lirc-maint mailing list