diff options
author | Alexander Nedotsukov <bland@FreeBSD.org> | 2007-01-19 02:27:23 +0000 |
---|---|---|
committer | Alexander Nedotsukov <bland@FreeBSD.org> | 2007-01-19 02:27:23 +0000 |
commit | 4d529a51ea9d19ca077683562a0ab9d1030cc1a0 (patch) | |
tree | a8634d1b033958b30d7e905d149df24d1df1c093 /comms/lirc/files | |
parent | 0f3556420c3b69c7179d57afcc317096c4defa0e (diff) |
Notes
Diffstat (limited to 'comms/lirc/files')
-rw-r--r-- | comms/lirc/files/lircd.sh.in | 31 | ||||
-rw-r--r-- | comms/lirc/files/patch-configure | 23 |
2 files changed, 51 insertions, 3 deletions
diff --git a/comms/lirc/files/lircd.sh.in b/comms/lirc/files/lircd.sh.in new file mode 100644 index 000000000000..fd282eb70b65 --- /dev/null +++ b/comms/lirc/files/lircd.sh.in @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: lircd +# REQUIRE: DAEMON +# +# Add the following line to /etc/rc.conf to enable lircd: +# +# lircd_enable="YES" +# + +. %%RC_SUBR%% + +name="lircd" +rcvar=`set_rcvar` + +load_rc_config ${name} +: ${lircd_enable="NO"} +: ${lircd_device="/dev/lirc0"} + + +prefix=%%PREFIX%% +procname=${prefix}/sbin/lircd +pidfile=/var/run/lircd.pid +lircd_config="${prefix}/etc/lircd.conf" +required_files=${lircd_config} +command="${prefix}/sbin/lircd" +command_args="-d ${lircd_device} ${lircd_config}" + +run_rc_command "$1" diff --git a/comms/lirc/files/patch-configure b/comms/lirc/files/patch-configure index c10e895f5801..a7eda964bbfb 100644 --- a/comms/lirc/files/patch-configure +++ b/comms/lirc/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig Sun Oct 16 21:23:22 2005 -+++ configure Sun Oct 16 21:23:37 2005 -@@ -7815,6 +7815,7 @@ +--- configure.orig Sat Jan 21 18:03:45 2006 ++++ configure Wed Nov 15 12:58:20 2006 +@@ -7816,6 +7816,7 @@ # use fifo instead of devnode (required on mac os x) @@ -8,3 +8,20 @@ if test "$use_fifos" = "yes"; then USE_FIFOS_TRUE= +@@ -9378,6 +9379,8 @@ + { echo "configure: error: *** you need to have the ALSA libraries and drivers + from at least version 1.0.9 for this driver" 1>&2; exit 1; } + ;; ++ any) ++ ;; + *) + { echo "configure: error: *** it is not possible to install the specified driver + on this system" 1>&2; exit 1; } +@@ -9387,6 +9390,7 @@ + + + if test "$lirc_driver" = "none" || \ ++ test "$lirc_driver" = "any" || \ + test "$lirc_driver" = "alsa_usb" || \ + test "$lirc_driver" = "userspace" || \ + test "$lirc_driver" = "atilibusb" || \ |