Ticket #26236: sleepwatcher.patch
File sleepwatcher.patch, 2.1 KB (added by Lars.Rasmusson@…, 14 years ago) |
---|
-
Portfile
old new 4 4 PortGroup xcode 1.0 5 5 6 6 name sleepwatcher 7 version 2. 0.57 version 2.1 8 8 categories sysutils 9 9 maintainers ryandesign 10 10 homepage http://www.bernhard-baehr.de/ 11 11 master_sites ${homepage} 12 distname ${name}_${version} _src12 distname ${name}_${version} 13 13 extract.suffix .tgz 14 14 xcode.destroot.path ${prefix}/sbin 15 worksrcdir ${distname}/sources 15 16 16 17 description \ 17 18 monitors sleep, wakeup and idleness of a Mac … … 24 25 time since last user activity. 25 26 26 27 checksums \ 27 md5 886fd37f9ae2941e99eb507b312ba236\28 sha1 4c1ca64d94768e0ccffb085d65632b4e37330882\29 rmd160 f2b3a362b71a3b31e3c3774122fb282327e5151e28 md5 d4ace64e2e978f4f289ca4dddd21c6f2 \ 29 sha1 54d09ed7a25abd2f2a398bf7f17b0ddc70f1b1d9 \ 30 rmd160 3bd630072825b5cac54e5a28f9d519827b67bdc4 30 31 31 32 post-extract { 32 reinplace "s|/usr/ |${prefix}/|" ${worksrcpath}/sleepwatcher.xcodeproj/project.pbxproj33 reinplace "s| man/man1|man/man8|" ${worksrcpath}/sleepwatcher.xcodeproj/project.pbxproj33 reinplace "s|/usr/local/|${prefix}/|" ${worksrcpath}/Makefile 34 reinplace "s|/usr/local/|${prefix}/|" ${worksrcpath}/sleepwatcher.xcodeproj/project.pbxproj 34 35 } 35 36 36 37 variant server { … … 40 41 41 42 post-destroot { 42 43 xinstall -m 755 -d ${prefix}/etc 43 xinstall -m 755 "${worksrcpath}/SleepWatcher StartupItem.package/packagemaker.files/private/etc/rc.sleep"${destroot}${prefix}/etc44 xinstall -m 755 "${worksrcpath}/SleepWatcher StartupItem.package/packagemaker.files/private/etc/rc.wakeup"${destroot}${prefix}/etc44 xinstall -m 755 ${worksrcpath}/../config/rc.sleep ${destroot}${prefix}/etc 45 xinstall -m 755 ${worksrcpath}/../config/rc.wakeup ${destroot}${prefix}/etc 45 46 } 46 47 47 48 post-install {