Ticket #26236: sleepwatcher.patch

File sleepwatcher.patch, 2.1 KB (added by Lars.Rasmusson@…, 14 years ago)
  • Portfile

    old new  
    44PortGroup               xcode 1.0
    55
    66name                    sleepwatcher
    7 version                 2.0.5
     7version                 2.1
    88categories              sysutils
    99maintainers             ryandesign
    1010homepage                http://www.bernhard-baehr.de/
    1111master_sites            ${homepage}
    12 distname                ${name}_${version}_src
     12distname                ${name}_${version}
    1313extract.suffix          .tgz
    1414xcode.destroot.path     ${prefix}/sbin
     15worksrcdir              ${distname}/sources
    1516
    1617description \
    1718    monitors sleep, wakeup and idleness of a Mac
     
    2425    time since last user activity.
    2526
    2627checksums \
    27     md5 886fd37f9ae2941e99eb507b312ba236 \
    28     sha1 4c1ca64d94768e0ccffb085d65632b4e37330882 \
    29     rmd160 f2b3a362b71a3b31e3c3774122fb282327e5151e
     28    md5 d4ace64e2e978f4f289ca4dddd21c6f2 \
     29    sha1 54d09ed7a25abd2f2a398bf7f17b0ddc70f1b1d9 \
     30    rmd160 3bd630072825b5cac54e5a28f9d519827b67bdc4
    3031
    3132post-extract {
    32     reinplace "s|/usr/|${prefix}/|" ${worksrcpath}/sleepwatcher.xcodeproj/project.pbxproj
    33     reinplace "s|man/man1|man/man8|" ${worksrcpath}/sleepwatcher.xcodeproj/project.pbxproj
     33    reinplace "s|/usr/local/|${prefix}/|" ${worksrcpath}/Makefile
     34    reinplace "s|/usr/local/|${prefix}/|" ${worksrcpath}/sleepwatcher.xcodeproj/project.pbxproj
    3435}
    3536
    3637variant server {
     
    4041   
    4142    post-destroot {
    4243        xinstall -m 755 -d ${prefix}/etc
    43         xinstall -m 755 "${worksrcpath}/SleepWatcher StartupItem.package/packagemaker.files/private/etc/rc.sleep" ${destroot}${prefix}/etc
    44         xinstall -m 755 "${worksrcpath}/SleepWatcher StartupItem.package/packagemaker.files/private/etc/rc.wakeup" ${destroot}${prefix}/etc
     44        xinstall -m 755 ${worksrcpath}/../config/rc.sleep ${destroot}${prefix}/etc
     45        xinstall -m 755 ${worksrcpath}/../config/rc.wakeup ${destroot}${prefix}/etc
    4546    }
    4647   
    4748    post-install {