1 | # $Id: Portfile 492 2007-08-22 22:36:38Z ecronin $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name lirc |
---|
5 | version 0.8.2 |
---|
6 | categories sysutils net |
---|
7 | maintainers ecronin@gizmolabs.org |
---|
8 | platforms darwin |
---|
9 | description Linux Infrared Remote Control |
---|
10 | long_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 | |
---|
17 | homepage http://www.lirc.org |
---|
18 | master_sites sourceforge |
---|
19 | use_bzip2 yes |
---|
20 | checksums md5 83e7060a6693b81075c178d7e3b215af \ |
---|
21 | sha1 84025603692836106714a2895e6201f6eb60ab37 \ |
---|
22 | rmd160 e806608f8644a1d1f66689a40b2ed27b4cf43bd9 |
---|
23 | |
---|
24 | configure.args --with-driver=none --with-devdir=${prefix}/var/run \ |
---|
25 | --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \ |
---|
26 | --mandir=${prefix}/share/man |
---|
27 | |
---|
28 | post-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 | |
---|
37 | post-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 | |
---|
43 | startupitem.create yes |
---|
44 | startupitem.start \ |
---|
45 | "${prefix}/sbin/lircd --driver=null --connect=example.org" \ |
---|
46 | "\[ -r ${prefix}/etc/lircmd.conf \] && \\" \ |
---|
47 | "\t${prefix}/sbin/lircmd" |
---|
48 | startupitem.stop \ |
---|
49 | "killall -TERM lircd" \ |
---|
50 | "killall -TERM lircmd" |
---|