most recent changes, diff for lirc
Index: sysutils/lirc/Portfile
--- sysutils/lirc/Portfile (revision 36535)
+++ sysutils/lirc/Portfile (revision 36536)
@@ -13,7 +13,8 @@
LIRC is a package that allows you to decode and send infra-red \
signals of many (but not all) commonly used remote controls. \
NOTE: This port does not support any IR devices directly. You \
- must connect to a remote lircd (--connect=example.org:8765) for \
+ must connect to a remote lircd (--connect=example.org:8765) or \
+ listen for UDP packets (--driver=udp --device=) for \
lirc to be of any use locally.
homepage http://www.lirc.org
@@ -24,7 +25,7 @@
rmd160 8948efc3e9dc34426ea32a3c63da63c0efa7dce2
livecheck.distname LIRC
-configure.args --with-driver=none --with-devdir=${prefix}/var/run \
+configure.args --with-driver=udp --with-devdir=${prefix}/var/run \
--sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
--mandir=${prefix}/share/man
@@ -35,19 +36,23 @@
${destroot}${prefix}/etc/lircmd.conf.sample
xinstall -m 644 ${worksrcpath}/contrib/lircrc \
${destroot}${prefix}/etc/lircrc.sample
+ xinstall -m 755 -d ${destroot}${prefix}/var/log
+ destroot.keepdirs ${destroot}${prefix}/var/log
}
post-activate {
ui_msg "Please edit:"
ui_msg " '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper'"
- ui_msg "and specify a valid lircd server to connect to."
+ ui_msg "and specify a valid driver or remote lircd to connect to."
ui_msg "Any clients of lirc must be able to read and write to:"
ui_msg "${prefix}/var/run/lircd"
}
startupitem.create yes
startupitem.start \
- "${prefix}/sbin/lircd --driver=null --connect=example.org" \
+ "#device=\"--connect=example.org:port\" # remote lircd" \
+ "#device=\"--driver=udp --device=port\" # UDP listener" \
+ "${prefix}/sbin/lircd --permission=0666 \$\{device\}" \
"\[ -r ${prefix}/etc/lircmd.conf \] && \\" \
"\t${prefix}/sbin/lircmd"
startupitem.stop \