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

Last change on this file since 28371 was 28371, checked in by sfiera@…, 12 years ago

port lint fix for sleuthkit, lirc, autopsy, lsdvd, txt2man, MPlayer, p5-csp

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