mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
for pf in */*/Portfile
do
ed -s "$pf" <<-'EOF'
1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
1g/^[[:space:]]*$/d
w
q
EOF
done
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
PortSystem 1.0
|
|
name heyu
|
|
version 2.0beta.7.2
|
|
categories comms
|
|
platforms darwin
|
|
maintainers keithws.net:heyu
|
|
homepage http://heyu.tanj.com
|
|
description HEYU is a text-based console program for remotely \
|
|
controlling lights and appliances in the home or \
|
|
office.
|
|
long_description Heyu uses the CM11A computer interface to send X10 \
|
|
control signals over the AC power lines to modules \
|
|
which can turn On, Off, or Dim attached lamps or \
|
|
appliances. It can store a schedule of timed \
|
|
events in the CM11A memory for execution when the \
|
|
computer is turned off or disconnected. Heyu can \
|
|
also use an optional CM17A interface to transmit \
|
|
X10 RF signals.
|
|
|
|
master_sites ${homepage}/download/
|
|
|
|
checksums md5 303efa8b97b2a65df42d98b99047e5a4
|
|
extract.suffix .tgz
|
|
|
|
patchfiles patch-Makefile.in
|
|
|
|
configure.args darwin
|
|
configure.cmd ./Configure
|
|
|
|
post-patch {
|
|
reinplace "s|OWNER *= *root|OWNER = ${install.user}|g" ${worksrcpath}/Configure
|
|
reinplace "s|GROUP *= *wheel|GROUP = ${install.group}|g" ${worksrcpath}/Configure
|
|
}
|
|
|
|
post-destroot {
|
|
xinstall -d ${destroot}${prefix}/etc/heyu
|
|
file copy ${worksrcpath}/x10config.sample ${destroot}${prefix}/etc/heyu/x10.conf.sample
|
|
}
|
|
|
|
destroot.destdir BIN=${destroot}${prefix}/bin \
|
|
MAN=${destroot}${prefix}/share/man/man1 \
|
|
MAN5=${destroot}${prefix}/share/man/man5
|
|
|
|
post-activate {
|
|
# install default config file only if no previous config file exists
|
|
if {![file exists ${prefix}/etc/heyu/x10.conf]} {
|
|
file copy ${prefix}/etc/heyu/x10.conf.sample \
|
|
${prefix}/etc/heyu/x10.conf
|
|
}
|
|
}
|
|
|
|
|
|
variant nocm17a { configure.args-append -nocm17a }
|
|
|
|
variant noext0 { configure.args-append -noext0 }
|
|
|