Portfile

# $Id: Portfile 20471 2006-11-03 15:27:05Z blair@macports.org $
PortSystem 1.0

name sleepnow
version 20040616
categories sysutils
maintainers nomaintainer@macports.org
description command-line tool to put Mac OS X machine to sleep
long_description SleepNow is a Mac OS X command-line tool which puts \
the machine to sleep, just as though someone had \
used the Sleep menu command while sitting in front \
of the machine. The advantage is that SleepNow can \
be run while logged in to the machine from anywhere \
on the net.
homepage http://www.snoize.com/SleepNow/
master_sites ${homepage}
distname SleepNow
dist_subdir ${name}/${version}
checksums md5 d54f8a40999eb8020d600c782bbf0fcc
platforms darwin

use_configure no

build.dir ${worksrcpath}/Source
build.type pbx
build.target -buildstyle Deployment -target SleepNow

destroot {
cd ${worksrcpath}/Source
xinstall -d -m 0755 ${destroot}${prefix}/bin
xinstall -m 0755 build/SleepNow ${destroot}${prefix}/bin/sleepnow
}