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 $
    22
    33PortSystem 1.0
    44
    55name            lirc
    66version         0.8.2
     7revision        1
    78categories      sysutils net
    89maintainers     ecronin@gizmolabs.org
    910platforms       darwin
     
    1213    LIRC is a package that allows you to decode and send infra-red \
    1314    signals of many (but not all) commonly used remote controls. \
    1415    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 \
    1618    lirc to be of any use locally.
    1719
    1820homepage        http://www.lirc.org
     
    2224                sha1 84025603692836106714a2895e6201f6eb60ab37 \
    2325                rmd160 e806608f8644a1d1f66689a40b2ed27b4cf43bd9
    2426
    25 configure.args  --with-driver=none --with-devdir=${prefix}/var/run \
     27configure.args  --with-driver=udp --with-devdir=${prefix}/var/run \
    2628                --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
    2729                --mandir=${prefix}/share/man
    2830
     
    3335        ${destroot}${prefix}/etc/lircmd.conf.sample
    3436    xinstall -m 644 ${worksrcpath}/contrib/lircrc \
    3537        ${destroot}${prefix}/etc/lircrc.sample
     38    xinstall -m 755 -d ${destroot}${prefix}/var/log
     39    destroot.keepdirs ${destroot}${prefix}/var/log
    3640}
    3741
    3842post-activate {
    3943    ui_msg "Please edit:"
    4044    ui_msg "  '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper'"
    41     ui_msg "and specify a valid lircd server to connect to."
     45    ui_msg "and specify a valid driver or remote lircd to connect to."
    4246}
    4347
    4448startupitem.create  yes
    4549startupitem.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\}" \
    4753    "\[ -r ${prefix}/etc/lircmd.conf \] && \\" \
    4854    "\t${prefix}/sbin/lircmd"
    4955startupitem.stop    \