| | #!/bin/sh |
---|
| | # Update Various System Files, Ports, etc. |
---|
| | # Copyright (c) 2006-2010, TundraWare Inc, Des Plaines, IL USA |
---|
| | # All Rights Reserved |
---|
| | # $Id: sysupd,v 1.124 2010/07/11 13:03:45 toor Exp $ |
---|
| | # $Id: sysupd,v 1.125 2010/08/30 13:09:21 toor Exp $ |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Where To Put The Various Log Files Generated Here |
---|
| | ##### |
---|
| | |
---|
| | DIRLOG=/var/log |
---|
| | LOGDIR=/var/log |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # List Of Sets To Process By Default |
---|
| | ##### |
---|
| | |
---|
| | DEFAULTSETS='doc mirror ports stable' |
---|
| | DEFAULTSETS='doc mirror ports stable texlive' |
---|
| | |
---|
| | |
---|
| | |
---|
| | # ---------------- Support Functions ---------------- # |
---|
| |
---|
| | case $SET |
---|
| | in |
---|
| | |
---|
| | ### |
---|
| | # CVSUP Updates |
---|
| | ### |
---|
| | |
---|
| | doc | ports | stable) |
---|
| | runupd $SET $LOGDIR "/usr/bin/csup -h cvsup5.freebsd.org /root/cvsup/$SET-supfile" |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ### |
---|
| | # Update Mirrored FreeBSD Files |
---|
| | ### |
---|
| | |
---|
| | mirror) |
---|
| | runupd $SET $DIRLOG "/root/bin/mirror-freebsd" |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ### |
---|
| | # CVSUP Updates |
---|
| | ### |
---|
| | |
---|
| | doc | ports | stable) |
---|
| | runupd $SET $DIRLOG "/usr/bin/csup -h cvsup5.freebsd.org /root/cvsup/$SET-supfile" |
---|
| | runupd $SET $LOGDIR "/root/bin/mirror-freebsd" |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ### |
---|
| | # Update The Nessus Plugins |
---|
| | ### |
---|
| | |
---|
| | nessus) |
---|
| | runupd $SET $DIRLOG "/usr/local/sbin/nessus-update-plugins" |
---|
| | runupd $SET $LOGDIR "/usr/local/sbin/nessus-update-plugins" |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | ### |
---|
| | # Update TeX Live |
---|
| | ### |
---|
| | |
---|
| | texlive) |
---|
| | runupd $SET $LOGDIR "/usr/local/texlive/2009/bin/i386-freebsd/tlmgr update --all" |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Catch Errors |
---|
| | ##### |
---|
| | |
---|
| | *) |
---|
| |
---|
| | |