Ignore:
Timestamp:
Oct 30, 2006, 9:35:00 PM (18 years ago)
Author:
rainer
Message:

Support installation of init scripts on MaxOS X.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samhain-install.sh.in

    r59 r71  
    757757
    758758    case "$platform" in
     759    Darwin/*)
     760        DVER="MACOSX"
     761        test -z "$verbose" || echo "MacOS X system detected"
     762        rc_main="/Library/StartupItems/${samhain}"
     763        ${mkinstalldirs} ${rc_main}
     764        rc_dirz=
     765        rc_inst="(cd /Library/StartupItems/${samhain} && echo '{' >StartupParameters.plist && echo '  Description        = \"@install_name@\";'  >>StartupParameters.plist && echo '  Provides           = (\"@install_name@\");' >>StartupParameters.plist && echo '  Requires           = (\"Network\");'      >>StartupParameters.plist && echo '  OrderPreference     = \"Last\";' >>StartupParameters.plist && echo '}' >>StartupParameters.plist && chmod 644 StartupParameters.plist; )"
     766        rc_uinst="rm -rf /Library/StartupItems/@install_name@"
     767        ;;
     768
    759769    IRIX*/*)
    760770        DVER="IRIX"
Note: See TracChangeset for help on using the changeset viewer.