# $Id: Portfile 124956 2014-09-01 02:32:19Z jmr@macports.org $ PortSystem 1.0 name SleepTight version 1.0.1 categories aqua sysutils license GPL-2+ maintainers nomaintainer description provides a simple way to lock machine when it goes to sleep long_description \ SleepTight provides a simple way to lock your machine when \ it goes to sleep or lock from a keyboard hotkey. SleepTight \ is only as secure as the Apple screensaver it launches. homepage http://www.ragingmenace.com/software/sleeptight platforms macosx master_sites http://www.ragingmenace.com/software/download distname ${name}_${version} checksums md5 d3c41edcd613c2b0f07bda7990971a8f \ sha1 011513bb6794a8743469374f54a25aa0aa807094 use_configure no build.type pbx build.target -target ${name} build.args build destroot { system "cd ${worksrcpath} && ${build.cmd} install INSTALL_MODE_FLAG=go-w,a+rX \ INSTALL_PATH=/Applications/MacPorts DSTROOT=${destroot}" xinstall -m 755 -d ${destroot}/Library/PreferencePanes file copy ${worksrcpath}/build/${name}.prefPane \ ${destroot}/Library/PreferencePanes } livecheck.type regex livecheck.url ${homepage} livecheck.regex ${name}_(\[0-9.\]+)${extract.suffix}