Ticket #13162: lirc_Portfile.patch
File lirc_Portfile.patch, 2.3 KB (added by ecronin (Eric Cronin), 17 years ago) |
---|
-
Portfile
old new 1 # $Id: Portfile 28371 2007-08-29 19:30:31Z sfiera@macports.org$1 # $Id: Portfile 502 2007-11-06 21:06:44Z ecronin $ 2 2 3 3 PortSystem 1.0 4 4 5 5 name lirc 6 6 version 0.8.2 7 revision 1 7 8 categories sysutils net 8 9 maintainers ecronin@gizmolabs.org 9 10 platforms darwin … … 12 13 LIRC is a package that allows you to decode and send infra-red \ 13 14 signals of many (but not all) commonly used remote controls. \ 14 15 NOTE: This port does not support any IR devices directly. You \ 15 must connect to a remote lircd (--connect=example.org:8765) for \ 16 must connect to a remote lircd (--connect=example.org:8765) or \ 17 listen for UDP packets (--driver=udp --device=<portnum>) for \ 16 18 lirc to be of any use locally. 17 19 18 20 homepage http://www.lirc.org … … 22 24 sha1 84025603692836106714a2895e6201f6eb60ab37 \ 23 25 rmd160 e806608f8644a1d1f66689a40b2ed27b4cf43bd9 24 26 25 configure.args --with-driver= none--with-devdir=${prefix}/var/run \27 configure.args --with-driver=udp --with-devdir=${prefix}/var/run \ 26 28 --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \ 27 29 --mandir=${prefix}/share/man 28 30 … … 33 35 ${destroot}${prefix}/etc/lircmd.conf.sample 34 36 xinstall -m 644 ${worksrcpath}/contrib/lircrc \ 35 37 ${destroot}${prefix}/etc/lircrc.sample 38 xinstall -m 755 -d ${destroot}${prefix}/var/log 39 destroot.keepdirs ${destroot}${prefix}/var/log 36 40 } 37 41 38 42 post-activate { 39 43 ui_msg "Please edit:" 40 44 ui_msg " '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper'" 41 ui_msg "and specify a valid lircd serverto connect to."45 ui_msg "and specify a valid driver or remote lircd to connect to." 42 46 } 43 47 44 48 startupitem.create yes 45 49 startupitem.start \ 46 "${prefix}/sbin/lircd --driver=null --connect=example.org" \ 50 "#device=\"--connect=example.org:port\" # remote lircd" \ 51 "#device=\"--driver=udp --device=port\" # UDP listener" \ 52 "${prefix}/sbin/lircd --permission=0666 \$\{device\}" \ 47 53 "\[ -r ${prefix}/etc/lircmd.conf \] && \\" \ 48 54 "\t${prefix}/sbin/lircmd" 49 55 startupitem.stop \