#!/bin/bash                                                                                                             
#  $Id$                                                                                                                 
# -----------------------------------------------------------------------------                                         
#  Name:    mgears:install.root                                                                                         
#  Purpose: mgears specific activation steps by root                                                                  
#                                                                                                                       
#  Note:    started from base:activate                                                                              
#                                                                                                                       
#  env:     following variables are avaiable:                                                                           
#                APL                         HTTPD_CONF          TARGET_OS                                              
#                APL_CONF     APL_DB_USR     HTTPD_DIRS          DYLIB_SUFFIX                                           
#                APL_USR      APL_HTTPD_GRP  HTTPD_MOD_DIR                                                              
#                APL_VAR      APL_HTTPD_USR  HTTPD_SHORT_MOD_DIR                                                        
#  www:     module defined apache loc and dir should be placed in HTTPD_DIRS                                            
# -----------------------------------------------------------------------------                                         
#  Author: A Teetov                                                                                                     
#  Edited by:                                                                                                           
#  QA by:..                                                                                                             
#  Copyright: videoNEXT LLC                                                                                             
# -----------------------------------------------------------------------------   

if [ $TARGET_OS == "Darwin" ] ; then
[ -d $APL/sly/Darwin/etc/SKM.prefpane ] && ln -s -f $APL/sly/Darwin/etc/SKM.prefpane /Library/PreferencePanes/SKM.prefPane
#cp $APL/sly/Darwin/etc/org.apache-i386.httpd.plist /Library/LaunchDaemons/
cp $APL/sly/Darwin/etc/com.videonext.skm-patrol.plist /Library/LaunchDaemons/
fi
