Ticket #12545: Portfile

File Portfile, 1.8 KB (added by ecronin (Eric Cronin), 17 years ago)
Line 
1# $Id: Portfile 492 2007-08-22 22:36:38Z ecronin $
2
3PortSystem 1.0
4name            lirc
5version         0.8.2
6categories      sysutils net
7maintainers     ecronin@gizmolabs.org
8platforms       darwin
9description     Linux Infrared Remote Control
10long_description \
11    LIRC is a package that allows you to decode and send infra-red \
12    signals of many (but not all) commonly used remote controls. \
13    NOTE: This port does not support any IR devices directly.  You \
14    must connect to a remote lircd (--connect=example.org:8765) for \
15    lirc to be of any use locally.
16
17homepage        http://www.lirc.org
18master_sites    sourceforge
19use_bzip2       yes
20checksums       md5 83e7060a6693b81075c178d7e3b215af \
21                sha1 84025603692836106714a2895e6201f6eb60ab37 \
22                rmd160 e806608f8644a1d1f66689a40b2ed27b4cf43bd9
23
24configure.args  --with-driver=none --with-devdir=${prefix}/var/run \
25                --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
26                --mandir=${prefix}/share/man
27
28post-destroot {
29    xinstall -m 644 ${worksrcpath}/contrib/lircd.conf \
30        ${destroot}${prefix}/etc/lircd.conf.sample
31    xinstall -m 644 ${worksrcpath}/contrib/lircmd.conf \
32        ${destroot}${prefix}/etc/lircmd.conf.sample
33    xinstall -m 644 ${worksrcpath}/contrib/lircrc \
34        ${destroot}${prefix}/etc/lircrc.sample
35}
36
37post-activate {
38    ui_msg "Please edit:"
39    ui_msg "  '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper'"
40    ui_msg "and specify a valid lircd server to connect to."
41}
42
43startupitem.create  yes
44startupitem.start   \
45    "${prefix}/sbin/lircd --driver=null --connect=example.org" \
46    "\[ -r ${prefix}/etc/lircmd.conf \] && \\" \
47    "\t${prefix}/sbin/lircmd"
48startupitem.stop    \
49    "killall -TERM lircd" \
50    "killall -TERM lircmd"