| | #!/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.120 2010/02/03 05:04:37 root Exp $ |
---|
| | # $Id: sysupd,v 1.121 2010/06/27 00:42:15 toor Exp $ |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Where To Put The Various Log Files Generated Here |
---|
| | ##### |
---|
| | |
---|
| | DIRCVS=/var/log |
---|
| | DIRMIRROR=/var/log |
---|
| | DIRNESSUS=/var/log |
---|
| | DIRLOG=/var/log |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # List Of Sets To Process By Default |
---|
| | ##### |
---|
| | |
---|
| | DEFAULTSETS='mirror doc ports stable' |
---|
| | DEFAULTSETS='mirror doc ports ports-index stable' |
---|
| | |
---|
| | |
---|
| | |
---|
| | # ---------------- Support Functions ---------------- # |
---|
| |
---|
| | # Update Mirrored FreeBSD Files |
---|
| | ### |
---|
| | |
---|
| | mirror) |
---|
| | runupd $SET $DIRMIRROR "/root/bin/mirror-freebsd" |
---|
| | runupd $SET $DIRLOG "/root/bin/mirror-freebsd" |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ### |
---|
| | # CVSUP Updates |
---|
| | ### |
---|
| | |
---|
| | doc | ports | stable) |
---|
| | runupd $SET $DIRLOG "/usr/bin/csup -h cvsup4.freebsd.org /root/cvsup/$SET-supfile" |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Update The Ports Index |
---|
| | ##### |
---|
| | |
---|
| | ports-index) |
---|
| | runupd $SET $DIRLOG "/usr/bin/make -f /usr/ports/Makefile fetchindex" |
---|
| | |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ### |
---|
| | # Update The Nessus Plugins |
---|
| | ### |
---|
| | |
---|
| | nessus) |
---|
| | runupd $SET $DIRNESSUS "/usr/local/sbin/nessus-update-plugins" |
---|
| | runupd $SET $DIRLOG "/usr/local/sbin/nessus-update-plugins" |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | ### |
---|
| | # CVSUP Updates |
---|
| | ### |
---|
| | |
---|
| | doc) |
---|
| | runupd $SET $DIRCVS "/usr/bin/csup -h cvsup4.freebsd.org /root/cvsup/$SET-supfile" |
---|
| | ;; |
---|
| | |
---|
| | ports) |
---|
| | runupd $SET $DIRCVS "/usr/bin/csup -h cvsup4.freebsd.org /root/cvsup/$SET-supfile" |
---|
| | ;; |
---|
| | |
---|
| | stable) |
---|
| | runupd $SET $DIRCVS "/usr/bin/csup -h cvsup5.freebsd.org /root/cvsup/$SET-supfile" |
---|
| | ;; |
---|
| | ##### |
---|
| | # Catch Errors |
---|
| | ##### |
---|
| | |
---|
| | *) |
---|
| | echo "Invalid sysupd Option Specified!" |
---|
| | ;; |
---|
| |
---|
| | |