source: trunk/dports/comms/heyu/Portfile

Last change on this file was 83010, checked in by jmr@…, 6 years ago

heyu: fix hardcoded installing of files as root/wheel (#26356)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 83010 2011-08-23 08:39:47Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    heyu
5version                 2.0beta.7.2
6categories              comms
7platforms               darwin
8maintainers             keithws.net:heyu
9homepage                http://heyu.tanj.com
10description             HEYU is a text-based console program for remotely \
11                        controlling lights and appliances in the home or \
12                        office.
13long_description        Heyu uses the CM11A computer interface to send X10 \
14                        control signals over the AC power lines to modules \
15                        which can turn On, Off, or Dim attached lamps or \
16                        appliances.  It can store a schedule of timed \
17                        events in the CM11A memory for execution when the \
18                        computer is turned off or disconnected.   Heyu can \
19                        also use an optional CM17A interface to transmit \
20                        X10 RF signals.
21
22master_sites            ${homepage}/download/
23
24checksums               md5 303efa8b97b2a65df42d98b99047e5a4
25extract.suffix          .tgz
26
27patchfiles              patch-Makefile.in
28
29configure.args          darwin
30configure.cmd           ./Configure
31
32post-patch {
33  reinplace "s|OWNER *= *root|OWNER = ${install.user}|g" ${worksrcpath}/Configure
34  reinplace "s|GROUP *= *wheel|GROUP = ${install.group}|g" ${worksrcpath}/Configure
35}
36
37post-destroot {
38        xinstall -d ${destroot}${prefix}/etc/heyu
39        file copy ${worksrcpath}/x10config.sample ${destroot}${prefix}/etc/heyu/x10.conf.sample
40}
41
42destroot.destdir        BIN=${destroot}${prefix}/bin \
43                        MAN=${destroot}${prefix}/share/man/man1 \
44                        MAN5=${destroot}${prefix}/share/man/man5
45
46post-activate {
47        # install default config file only if no previous config file exists
48        if {![file exists ${prefix}/etc/heyu/x10.conf]} {
49                file copy ${prefix}/etc/heyu/x10.conf.sample \
50                ${prefix}/etc/heyu/x10.conf
51        }
52}
53
54
55variant nocm17a { configure.args-append         -nocm17a }
56
57variant noext0  { configure.args-append         -noext0  }
58
Note: See TracBrowser for help on using the repository browser.