Changeset 54383


Ignore:
Timestamp:
Jul 26, 2009, 4:35:17 AM (10 years ago)
Author:
toby@…
Message:

update startup mechanism, and install a sample config file

Location:
trunk/dports/sysutils/smartmontools
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/smartmontools/Portfile

    r54382 r54383  
    55name            smartmontools
    66version         5.38
     7revision        1
    78categories      sysutils
    89maintainers     toby
     
    1718platforms       darwin
    1819master_sites    sourceforge
    19 checksums       sha1 90e36f46af7a35336c63868176aa71deef4c9e66
    20 configure.args  --mandir=${prefix}/share/man
     20checksums       md5 a282846532ecbd6b4a28072373b3a70b \
     21                sha1 90e36f46af7a35336c63868176aa71deef4c9e66 \
     22                rmd160 6fcca6e18b14a14b579e8484c769f36b3ce238ea
     23configure.args  --mandir=${prefix}/share/man --enable-sample
    2124
    2225platform darwin {
    23     configure.args-append --with-initscriptdir=/Library/StartupItems
     26    post-destroot {
     27        file delete -force ${destroot}${prefix}/etc/rc.d
     28
     29        set launchd_path ${destroot}/Library/LaunchDaemons
     30        set launchd_plist net.sourceforge.smartmontools.smartd.plist
     31
     32        xinstall -d ${launchd_path}
     33        xinstall ${filespath}/${launchd_plist} ${launchd_path}
     34        reinplace s|__PREFIX__|${prefix}| ${launchd_path}/${launchd_plist}
     35    }
    2436}
Note: See TracChangeset for help on using the changeset viewer.