source: trunk/dports/sysutils/lirc/Portfile @ 36536

Last change on this file since 36536 was 36536, checked in by ecronin@…, 11 years ago

sysutils/lirc: Add support for the UDP driver (e.g. HDHomeRun)

Closes #13162

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 36536 2008-05-05 15:56:43Z ecronin@macports.org $
2
3PortSystem 1.0
4
5name            lirc
6version         0.8.3
7revision        1
8categories      sysutils net
9maintainers     ecronin
10platforms       darwin
11description     Linux Infrared Remote Control
12long_description \
13    LIRC is a package that allows you to decode and send infra-red \
14    signals of many (but not all) commonly used remote controls. \
15    NOTE: This port does not support any IR devices directly.  You \
16    must connect to a remote lircd (--connect=example.org:8765) or \
17    listen for UDP packets (--driver=udp --device=<portnum>) for \
18    lirc to be of any use locally.
19
20homepage        http://www.lirc.org
21master_sites    sourceforge
22use_bzip2       yes
23checksums       md5 8e78eeded7b31e5ad02e328970437c0f \
24                sha1 4b5aec19fa9ee15bafaeb1f87c154a0d4e045dcc \
25                rmd160 8948efc3e9dc34426ea32a3c63da63c0efa7dce2
26livecheck.distname  LIRC
27
28configure.args  --with-driver=udp --with-devdir=${prefix}/var/run \
29                --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
30                --mandir=${prefix}/share/man
31
32post-destroot {
33    xinstall -m 644 ${worksrcpath}/contrib/lircd.conf \
34        ${destroot}${prefix}/etc/lircd.conf.sample
35    xinstall -m 644 ${worksrcpath}/contrib/lircmd.conf \
36        ${destroot}${prefix}/etc/lircmd.conf.sample
37    xinstall -m 644 ${worksrcpath}/contrib/lircrc \
38        ${destroot}${prefix}/etc/lircrc.sample
39    xinstall -m 755 -d ${destroot}${prefix}/var/log
40    destroot.keepdirs ${destroot}${prefix}/var/log
41}
42
43post-activate {
44    ui_msg "Please edit:"
45    ui_msg "  '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper'"
46    ui_msg "and specify a valid driver or remote lircd to connect to."
47    ui_msg "Any clients of lirc must be able to read and write to:"
48    ui_msg "${prefix}/var/run/lircd"
49}
50
51startupitem.create  yes
52startupitem.start   \
53    "#device=\"--connect=example.org:port\"  # remote lircd" \
54    "#device=\"--driver=udp --device=port\"  # UDP listener" \
55    "${prefix}/sbin/lircd --permission=0666 \$\{device\}" \
56    "\[ -r ${prefix}/etc/lircmd.conf \] && \\" \
57    "\t${prefix}/sbin/lircmd"
58startupitem.stop    \
59    "killall -TERM lircd" \
60    "killall -TERM lircmd"
Note: See TracBrowser for help on using the repository browser.