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

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

Fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 32739 2008-01-12 22:13:07Z ecronin@macports.org $
2
3PortSystem 1.0
4
5name            lirc
6version         0.8.2
7categories      sysutils net
8maintainers     ecronin
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
24livecheck.distname  LIRC
25
26configure.args  --with-driver=none --with-devdir=${prefix}/var/run \
27                --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
28                --mandir=${prefix}/share/man
29
30post-destroot {
31    xinstall -m 644 ${worksrcpath}/contrib/lircd.conf \
32        ${destroot}${prefix}/etc/lircd.conf.sample
33    xinstall -m 644 ${worksrcpath}/contrib/lircmd.conf \
34        ${destroot}${prefix}/etc/lircmd.conf.sample
35    xinstall -m 644 ${worksrcpath}/contrib/lircrc \
36        ${destroot}${prefix}/etc/lircrc.sample
37}
38
39post-activate {
40    ui_msg "Please edit:"
41    ui_msg "  '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper'"
42    ui_msg "and specify a valid lircd server to connect to."
43}
44
45startupitem.create  yes
46startupitem.start   \
47    "${prefix}/sbin/lircd --driver=null --connect=example.org" \
48    "\[ -r ${prefix}/etc/lircmd.conf \] && \\" \
49    "\t${prefix}/sbin/lircmd"
50startupitem.stop    \
51    "killall -TERM lircd" \
52    "killall -TERM lircmd"
Note: See TracBrowser for help on using the repository browser.