Index: head/sysutils/Makefile =================================================================== --- head/sysutils/Makefile (revision 165097) +++ head/sysutils/Makefile (revision 165098) @@ -1,676 +1,677 @@ # $FreeBSD$ # COMMENT = System utilities SUBDIR += 3dm SUBDIR += 44bsd-more SUBDIR += 915resolution SUBDIR += LPRng SUBDIR += LPRngTool SUBDIR += Tee SUBDIR += aaccli SUBDIR += abck SUBDIR += acidlaunch SUBDIR += adtool SUBDIR += afbinit SUBDIR += afio SUBDIR += agef SUBDIR += ah-tty SUBDIR += am-utils + SUBDIR += amrstat SUBDIR += anacron SUBDIR += and SUBDIR += anteater SUBDIR += apachetop SUBDIR += apcpwr SUBDIR += apcupsd SUBDIR += asapm SUBDIR += ascpu SUBDIR += asfsm SUBDIR += asmem SUBDIR += asmon SUBDIR += asr-utils SUBDIR += ataidle SUBDIR += atitvout SUBDIR += autopsy SUBDIR += bacula-client SUBDIR += bacula-client-devel SUBDIR += bacula-server SUBDIR += bacula-server-devel SUBDIR += barry SUBDIR += battfink SUBDIR += bbapm SUBDIR += bbsmount SUBDIR += bchunk SUBDIR += be_agent SUBDIR += binup SUBDIR += bkpupsd SUBDIR += bksh SUBDIR += blimitd SUBDIR += boxbackup SUBDIR += bpm SUBDIR += bsdadminscripts SUBDIR += bsdsar SUBDIR += bubblemon-dockapp SUBDIR += bubblemon2 SUBDIR += ccd2iso SUBDIR += ccze SUBDIR += cd-write SUBDIR += cd9660_unicode SUBDIR += cdargs SUBDIR += cdbakeoven SUBDIR += cdbkup SUBDIR += cdf SUBDIR += cdircmp SUBDIR += cdrdao SUBDIR += cdroot SUBDIR += cdrtools SUBDIR += cdrtools-cjk SUBDIR += cdrtools-devel SUBDIR += cfengine2 SUBDIR += cfvers SUBDIR += checkservice SUBDIR += chgrep SUBDIR += clean SUBDIR += clockspeed SUBDIR += clockspeed-conf SUBDIR += cloop-utils SUBDIR += cmdwatch SUBDIR += cmospwd SUBDIR += cog SUBDIR += colorize SUBDIR += comconsole SUBDIR += conky SUBDIR += consolehm SUBDIR += contool SUBDIR += copytape SUBDIR += coreutils SUBDIR += cotty SUBDIR += cpbk SUBDIR += cpdup SUBDIR += cpu SUBDIR += cpuburn SUBDIR += crashme SUBDIR += cromwell SUBDIR += cronolog SUBDIR += curly SUBDIR += cvsweb-converters SUBDIR += daedalus SUBDIR += daemontools SUBDIR += daemontools53 SUBDIR += dar SUBDIR += dc42wrap SUBDIR += dcfldd SUBDIR += dd_rescue SUBDIR += deleted SUBDIR += deltup SUBDIR += desktopbsd-tools SUBDIR += detach SUBDIR += detox SUBDIR += di SUBDIR += dim SUBDIR += dirdiff SUBDIR += dirvish SUBDIR += diskcheckd SUBDIR += diskmark SUBDIR += diskprep SUBDIR += disktool SUBDIR += disktype SUBDIR += diskusage SUBDIR += dmidecode SUBDIR += dolly SUBDIR += dolly+ SUBDIR += dt SUBDIR += dtc SUBDIR += du2ps SUBDIR += dump9660 SUBDIR += dupfind SUBDIR += duplicity SUBDIR += durep SUBDIR += dusage SUBDIR += dvd+rw-tools SUBDIR += dvdbackup SUBDIR += dvdimagecmp SUBDIR += dvdtape SUBDIR += dwatch SUBDIR += e2fsprogs SUBDIR += eiciel SUBDIR += eject SUBDIR += enteruser SUBDIR += env4801 SUBDIR += epylog SUBDIR += eroaster SUBDIR += est SUBDIR += estctrl SUBDIR += etcmerge SUBDIR += eventwatcher SUBDIR += extipl SUBDIR += ezjail SUBDIR += fanout SUBDIR += fastest_cvsup SUBDIR += fatback SUBDIR += fcron SUBDIR += fdupes SUBDIR += fetchlog SUBDIR += file SUBDIR += filedupe SUBDIR += filelight SUBDIR += fileprune SUBDIR += fileschanged SUBDIR += finfo SUBDIR += flasher SUBDIR += flexbackup SUBDIR += flock SUBDIR += flog SUBDIR += fontedit SUBDIR += fonteditfs SUBDIR += foremost SUBDIR += fortunelock SUBDIR += fpkg SUBDIR += freebsd-sha1 SUBDIR += freebsd-sha256 SUBDIR += freebsd-snapshot SUBDIR += freecolor SUBDIR += freedt SUBDIR += freeipmi SUBDIR += freesbie SUBDIR += freqsdwn SUBDIR += fsbackup SUBDIR += ftrace SUBDIR += fusefs-curlftpfs SUBDIR += fusefs-kmod SUBDIR += fusefs-libs SUBDIR += fusefs-sshfs SUBDIR += fuser SUBDIR += fvcool SUBDIR += gag SUBDIR += ganglia-monitor-core SUBDIR += ganglia-webfrontend SUBDIR += gapcmon SUBDIR += gcdmaster SUBDIR += gcombust SUBDIR += gconf-editor SUBDIR += gdmap SUBDIR += gfslicer SUBDIR += ghasher SUBDIR += gkfreq SUBDIR += gkleds2 SUBDIR += gkrellfire SUBDIR += gkrellflynn SUBDIR += gkrellm SUBDIR += gkrellm-trayicons SUBDIR += gkrellm2 SUBDIR += gkrellmouse SUBDIR += gkrellmwho SUBDIR += gkrellmwho2 SUBDIR += gkrelltop SUBDIR += gksu SUBDIR += glload SUBDIR += gnome-control-center SUBDIR += gnome-control-center1 SUBDIR += gnome-pkgview SUBDIR += gnome-schedule SUBDIR += gnome-system-monitor SUBDIR += gnome-system-tools SUBDIR += gnomebaker SUBDIR += gnomefind SUBDIR += gnomesu SUBDIR += gpart SUBDIR += gpkgdep SUBDIR += gpte SUBDIR += graft SUBDIR += graphicboot SUBDIR += graveman SUBDIR += grok SUBDIR += growspd SUBDIR += grub SUBDIR += gstopd SUBDIR += gstreamer-plugins-cdio80 SUBDIR += gtk-imonc SUBDIR += gtk-send-pr SUBDIR += gtoaster SUBDIR += gupsc SUBDIR += hammerhead SUBDIR += hdup SUBDIR += healthd SUBDIR += heartbeat SUBDIR += heirloom SUBDIR += highlnk SUBDIR += hilite SUBDIR += hourglass SUBDIR += hoz SUBDIR += httplog SUBDIR += i855vidctl10 SUBDIR += idled SUBDIR += installwatch SUBDIR += ipa SUBDIR += ipmi-kmod SUBDIR += ipmitool SUBDIR += ipsc SUBDIR += jailadmin SUBDIR += jailctl SUBDIR += jailer SUBDIR += jailuser SUBDIR += jailutils SUBDIR += jdiskreport SUBDIR += jkill SUBDIR += jps SUBDIR += jtop SUBDIR += k3b SUBDIR += kcpuload SUBDIR += kcube SUBDIR += kdar SUBDIR += kdeadmin3 SUBDIR += kdirstat SUBDIR += kkbswitch SUBDIR += kkeyled SUBDIR += klaptopdaemon SUBDIR += kmilo SUBDIR += knutclient SUBDIR += komparator SUBDIR += krename SUBDIR += kshutdown SUBDIR += ksynaptics SUBDIR += lavaps SUBDIR += lcdproc SUBDIR += ldap-account-manager SUBDIR += ldapvi SUBDIR += ledit SUBDIR += less SUBDIR += lfm SUBDIR += libcdio SUBDIR += libchk SUBDIR += libgksu SUBDIR += libgksuui SUBDIR += libieee1284 SUBDIR += libretto-config SUBDIR += libutempter SUBDIR += lineak_defaultplugin SUBDIR += lineak_kdeplugins SUBDIR += lineak_xosdplugin SUBDIR += lineakd SUBDIR += linux-acu SUBDIR += linux-afaapps SUBDIR += linuxfdisk SUBDIR += lire SUBDIR += livecd SUBDIR += lmmon SUBDIR += lmon SUBDIR += log_analysis SUBDIR += logmon SUBDIR += logrotate SUBDIR += logserial SUBDIR += logtool SUBDIR += logtool-devel SUBDIR += lookat SUBDIR += lookupd SUBDIR += lookupd_ldap SUBDIR += lsmlib SUBDIR += lsof SUBDIR += ltrace SUBDIR += luma SUBDIR += lxsplit SUBDIR += magicrescue SUBDIR += maint SUBDIR += makefs SUBDIR += managepkg SUBDIR += manck SUBDIR += mapchan SUBDIR += mbmon SUBDIR += mcron SUBDIR += mcweject SUBDIR += mdf2iso SUBDIR += megarc SUBDIR += memdump SUBDIR += memfetch SUBDIR += memgrep SUBDIR += memtest SUBDIR += memtest86 SUBDIR += metalog SUBDIR += mgeupsd SUBDIR += minirsyslogd SUBDIR += mixer SUBDIR += mkfile SUBDIR += mksunbootcd SUBDIR += mktool SUBDIR += mmore SUBDIR += modules SUBDIR += monit SUBDIR += monitord SUBDIR += most SUBDIR += mount.app SUBDIR += mountsmb2 SUBDIR += msyslog SUBDIR += mtxorbd SUBDIR += multitail SUBDIR += munin-main SUBDIR += munin-node SUBDIR += muse SUBDIR += nagios-statd SUBDIR += nautilus-cd-burner SUBDIR += nbosd SUBDIR += nctop SUBDIR += ndir SUBDIR += netdump-server SUBDIR += newportsversioncheck SUBDIR += no-login SUBDIR += npadmin SUBDIR += nrg2iso SUBDIR += ntfsprogs SUBDIR += nut SUBDIR += nut-libupsclient SUBDIR += nut-snmp SUBDIR += nut-usb SUBDIR += nvclock SUBDIR += nvtv SUBDIR += oak SUBDIR += obliterate SUBDIR += ods2 SUBDIR += open SUBDIR += openupsd SUBDIR += p5-File-Stat-Bits SUBDIR += p5-File-Which SUBDIR += p5-Filesys-DiskFree SUBDIR += p5-Filesys-DiskSpace SUBDIR += p5-Filesys-DiskUsage SUBDIR += p5-FreeBSD-Portindex SUBDIR += p5-LJ-Cache SUBDIR += p5-LJ-TextMessage SUBDIR += p5-Quota SUBDIR += p5-Schedule-At SUBDIR += p5-Schedule-Cron SUBDIR += p5-Schedule-Load SUBDIR += p5-Schedule-Match SUBDIR += p5-Stat-lsMode SUBDIR += p5-Sys-CpuLoad SUBDIR += p5-Sys-Hostname-Long SUBDIR += p5-Sys-Utmp SUBDIR += p5-SyslogScan SUBDIR += p5-Tie-Syslog SUBDIR += p5-UPS-Nut SUBDIR += p5-Unix-ConfigFile SUBDIR += p5-Unix-Mknod SUBDIR += p5-Unix-Processors SUBDIR += p5-Unix-Syslog SUBDIR += p5-User SUBDIR += paicc SUBDIR += pcfclock SUBDIR += pciutils SUBDIR += pdixtract SUBDIR += pdumpfs SUBDIR += pdumpfs-clean SUBDIR += pdumpfs-rsync SUBDIR += pear-Cache SUBDIR += pear-Cache_Lite SUBDIR += pear-File SUBDIR += pear-File_Find SUBDIR += pear-File_Fstab SUBDIR += pear-File_Gettext SUBDIR += pear-I18Nv2 SUBDIR += pear-Log SUBDIR += pear-Translation2 SUBDIR += pecl-fileinfo SUBDIR += penv SUBDIR += perf SUBDIR += personality SUBDIR += pessulus SUBDIR += pflogx SUBDIR += pfstat SUBDIR += pftop SUBDIR += phantom SUBDIR += php4-posix SUBDIR += php5-posix SUBDIR += pib SUBDIR += pidof SUBDIR += pipemeter SUBDIR += pkg-orphan SUBDIR += pkg_cutleaves SUBDIR += pkg_install SUBDIR += pkg_install-devel SUBDIR += pkg_remove SUBDIR += pkg_rmleaves SUBDIR += pkg_trackinst SUBDIR += pkg_tree SUBDIR += pkgfe SUBDIR += pkill SUBDIR += plconfig SUBDIR += plod SUBDIR += pmap SUBDIR += port-authoring-tools SUBDIR += port-maintenance-tools SUBDIR += portbrowser SUBDIR += portconf SUBDIR += portdowngrade SUBDIR += portmanager SUBDIR += portmaster SUBDIR += portsearch SUBDIR += portsman SUBDIR += portsnap SUBDIR += portupgrade SUBDIR += powerman SUBDIR += prips SUBDIR += procmap SUBDIR += progsreiserfs SUBDIR += psearch SUBDIR += psgconf SUBDIR += pslist SUBDIR += psmisc SUBDIR += pstack SUBDIR += pstree SUBDIR += pv SUBDIR += pwd_unmkdb SUBDIR += pwg SUBDIR += pwgen SUBDIR += pwgen2 SUBDIR += pwsafe SUBDIR += qlogtools SUBDIR += qpxtool SUBDIR += qtpkg SUBDIR += radeontool SUBDIR += radmind SUBDIR += raincoat SUBDIR += rc_subr SUBDIR += rclean SUBDIR += rdate SUBDIR += rdiff-backup SUBDIR += rdiff-backup-devel SUBDIR += readlink SUBDIR += recoverdm SUBDIR += reed SUBDIR += rej SUBDIR += relaxconf SUBDIR += rename SUBDIR += reoback SUBDIR += rfstool SUBDIR += rmonitor SUBDIR += roottail SUBDIR += rotate SUBDIR += rsnapshot SUBDIR += rsyncmanager SUBDIR += rtty SUBDIR += ruby-log4r SUBDIR += ruby-quota SUBDIR += rubygem-capistrano SUBDIR += runit SUBDIR += runwhen SUBDIR += safecat SUBDIR += samefile SUBDIR += sarah SUBDIR += savelogs SUBDIR += sb16config SUBDIR += sbniconfig SUBDIR += scan_ffs SUBDIR += scanbuttond SUBDIR += screen SUBDIR += sdd SUBDIR += sec SUBDIR += sensors-applet SUBDIR += serpentine SUBDIR += service-config SUBDIR += setcdboot SUBDIR += setquota SUBDIR += sfdisk SUBDIR += sformat SUBDIR += sge SUBDIR += shlock SUBDIR += sjog SUBDIR += skill SUBDIR += slay SUBDIR += sleuthkit SUBDIR += slmon SUBDIR += sloth SUBDIR += slst SUBDIR += smartmontools SUBDIR += snowlog SUBDIR += socket SUBDIR += socklog SUBDIR += spassgen SUBDIR += spinner SUBDIR += srmt SUBDIR += ssync SUBDIR += stalepid SUBDIR += stmpclean SUBDIR += stow SUBDIR += stowES SUBDIR += stress SUBDIR += su2 SUBDIR += symlinks SUBDIR += symon SUBDIR += synergy SUBDIR += sysgather SUBDIR += syslog-ng SUBDIR += system-tools-backends SUBDIR += sysupdate SUBDIR += tcplist SUBDIR += tct SUBDIR += tdir SUBDIR += tenshi SUBDIR += tentakel SUBDIR += testdisk SUBDIR += thefish SUBDIR += throttle SUBDIR += ticker.app SUBDIR += timelimit SUBDIR += tinybsd SUBDIR += tmpreaper SUBDIR += tmpwatch SUBDIR += topless SUBDIR += torsmo SUBDIR += toshctl SUBDIR += tree SUBDIR += ttyload SUBDIR += tua SUBDIR += tw_cli SUBDIR += ucspi-ipc SUBDIR += ucspi-proxy SUBDIR += ucspi-ssl SUBDIR += ucspi-ssl-tls SUBDIR += ucspi-tcp SUBDIR += ucspi-unix SUBDIR += udesc_dump SUBDIR += udfclient SUBDIR += ufs_copy SUBDIR += unidesc SUBDIR += unquote SUBDIR += upsd SUBDIR += upsmon SUBDIR += uptimec SUBDIR += uptimed SUBDIR += uschedule SUBDIR += userinfo SUBDIR += userlist SUBDIR += usermatic SUBDIR += usermin SUBDIR += userneu SUBDIR += userneu-devel SUBDIR += usrinfo SUBDIR += utcount SUBDIR += uwatch SUBDIR += vcp SUBDIR += videogen SUBDIR += vii SUBDIR += vils SUBDIR += virtualmin SUBDIR += vobcopy SUBDIR += vstrip SUBDIR += vttest SUBDIR += wait_on SUBDIR += watchdog SUBDIR += watchfolder SUBDIR += webjob SUBDIR += webmin SUBDIR += whatpix SUBDIR += whowatch SUBDIR += wmapm SUBDIR += wmapmload SUBDIR += wmavgload SUBDIR += wmbattery SUBDIR += wmbluecpu SUBDIR += wmbsdbatt SUBDIR += wmcpuload SUBDIR += wmcube SUBDIR += wmcube-gdk SUBDIR += wmfire SUBDIR += wmflame SUBDIR += wmfsm SUBDIR += wmhm SUBDIR += wminet SUBDIR += wmlmmon SUBDIR += wmlongrun SUBDIR += wmmemfree SUBDIR += wmmemload SUBDIR += wmmemmon SUBDIR += wmmon SUBDIR += wmmount SUBDIR += wmpccard SUBDIR += wmshutdown SUBDIR += wmtop SUBDIR += wmupmon SUBDIR += wmzazof SUBDIR += worldtools SUBDIR += wots SUBDIR += wtail SUBDIR += wtmp-tools SUBDIR += wuzzah SUBDIR += x86info SUBDIR += xacpim SUBDIR += xapply SUBDIR += xbatt SUBDIR += xbattbar SUBDIR += xcdroast SUBDIR += xcpustate SUBDIR += xdu SUBDIR += xfce4-battery-plugin SUBDIR += xfce4-cpugraph-plugin SUBDIR += xfce4-fsguard-plugin SUBDIR += xfce4-genmon-plugin SUBDIR += xfce4-mcs-manager SUBDIR += xfce4-mcs-plugins SUBDIR += xfce4-minicmd-plugin SUBDIR += xfce4-netload-plugin SUBDIR += xfce4-showdesktop-plugin SUBDIR += xfce4-systemload-plugin SUBDIR += xfce4-utils SUBDIR += xfce4-wavelan-plugin SUBDIR += xfsm SUBDIR += xfsprogs SUBDIR += xin SUBDIR += xloadface SUBDIR += xlogmaster SUBDIR += xmbmon SUBDIR += xosview SUBDIR += xperfmon SUBDIR += xperfmon3 SUBDIR += xstow SUBDIR += xsu SUBDIR += xsysinfo SUBDIR += xsysstats SUBDIR += xvidcap SUBDIR += xwipower SUBDIR += xwlans SUBDIR += yawho SUBDIR += zeroer SUBDIR += zidrav SUBDIR += zisofs-tools .include Property changes on: head/sysutils/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.789 \ No newline at end of property +1.790 \ No newline at end of property Index: head/sysutils/amrstat/Makefile =================================================================== --- head/sysutils/amrstat/Makefile (nonexistent) +++ head/sysutils/amrstat/Makefile (revision 165098) @@ -0,0 +1,62 @@ +# Ports collection makefile for: amrstat +# Date created: 2006-04-11 +# Whom: "Bjoern A. Zeeb" +# +# $FreeBSD$ +# + +PORTNAME= amrstat +PORTVERSION= 20060414 +CATEGORIES= sysutils +MASTER_SITES= http://people.freebsd.org/~jkim/ +DISTNAME= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= bzeeb+freebsd+ports@zabbadoz.net +COMMENT= Utility for LSI Logic's MegaRAID RAID controllers + +OPTIONS= MEGARC "Also install LSI megarc binary port.." off + +.include + +.if ${OSVERSION} < 600105 +IGNORE= does not build on FreeBSD 6.0 or earlier +.endif + +# We may want this for periodic script and to actually be able +# to fix something in case amrstat reports degraded RAID. +.if defined(WITH_MEGARC) +RUN_DEPENDS= ${LOCALBASE}/sbin/megarc:${PORTSDIR}/sysutils/megarc +.endif + +USRSRC?= /usr/src +SYSDIR= ${USRSRC}/sys +AMRSRC= ${SYSDIR}/dev/amr + +MAKE_ENV= SYSDIR=${SYSDIR} +ALL_TARGET= ${PORTNAME} + +LOCALSRCDIR= ${.CURDIR}/files +PERIODICSCRIPT= 407.status-amr-raid + +NO_WRKSUBDIR= yes + +SUB_FILES+= ${PERIODICSCRIPT} + +post-extract: + @if [ ! -d ${AMRSRC} ]; then \ + ${ECHO} "=================================================="; \ + ${ECHO} "You need amr(4) sources in"; \ + ${ECHO} " ${AMRSRC}"; \ + ${ECHO} "to build this port."; \ + ${ECHO} "If your sources are not in ${USRSRC} set USRSRC."; \ + ${ECHO} "=================================================="; \ + exit 1; \ + fi + ${RM} -f ${WRKSRC}/amrstat + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/amrstat ${PREFIX}/sbin + ${INSTALL_SCRIPT} -d ${PREFIX}/etc/periodic/daily + ${INSTALL_SCRIPT} ${WRKDIR}/${PERIODICSCRIPT} ${PREFIX}/etc/periodic/daily + +.include Property changes on: head/sysutils/amrstat/Makefile ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/sysutils/amrstat/distinfo =================================================================== --- head/sysutils/amrstat/distinfo (nonexistent) +++ head/sysutils/amrstat/distinfo (revision 165098) @@ -0,0 +1,3 @@ +MD5 (amrstat-20060414.tar.gz) = 851dc6d87ec2dc9c58c2c209df021a5e +SHA256 (amrstat-20060414.tar.gz) = 2d512aa700c1d965f70826a0acf41fbd2fe40f94bf110c5c4d2aad0887e27556 +SIZE (amrstat-20060414.tar.gz) = 30477 Property changes on: head/sysutils/amrstat/distinfo ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/sysutils/amrstat/files/407.status-amr-raid.in =================================================================== --- head/sysutils/amrstat/files/407.status-amr-raid.in (nonexistent) +++ head/sysutils/amrstat/files/407.status-amr-raid.in (revision 165098) @@ -0,0 +1,104 @@ +#!/bin/sh +# +# Show status of LSI Logic's MegaRAID RAID controllers. +# +# $FreeBSD$ +# + +# If there is a global system configuration file, suck it in. +# +if [ -r /etc/defaults/periodic.conf ] +then + . /etc/defaults/periodic.conf + source_periodic_confs +fi + +# Defaults. +: ${daily_status_amr_raid_enable:=NO} +: ${daily_status_amr_raid_megarc_enable:=NO} + +amrstat=${amrstat:-%%PREFIX%%/sbin/amrstat} +megarc=${megarc:-%%PREFIX%%/sbin/megarc} +logdir=${logdir:-/var/log} + +case "$daily_status_amr_raid_enable" in + [Yy][Ee][Ss]) + echo + echo 'Checking status of amr(4) raid controllers:' + + rc=0 + + # Checking each controller. + for ctrl in `ls -1 /dev/amr[0-9]* | sed -e 's,/dev/amr,,g'` + do + echo "" + echo "Controller ${ctrl}:" + ctrl_log=${logdir}/amr_raid_${ctrl} + if test ! -f ${ctrl_log}.today; then + touch ${ctrl_log}.today + fi + mv -f ${ctrl_log}.today ${ctrl_log}.yesterday + ${amrstat} -c ${ctrl} -g > ${ctrl_log}.today + if test -x ${megarc}; then + case "$daily_status_amr_raid_megarc_enable" in + [Yy][Ee][Ss]) + ${megarc} -dispCfg -a0 | col -b | grep -v Scanning | \ + sed -e '/^A/s/.*/ .../g' >> ${ctrl_log}.today + ;; + *) ;; + esac + fi + lines=`wc -l ${ctrl_log}.today | awk '{ print $1 }'` + diff -u -${lines} ${ctrl_log}.yesterday ${ctrl_log}.today + raid_rc=$? + if test $raid_rc -eq 0; then + cat ${ctrl_log}.today + fi + [ $rc -eq 0 ] && [ $raid_rc -ne 0 ] && rc=3 + + # Checking alarms. + #if test -x ${megarc}; then + #case "$daily_status_amr_raid_megarc_enable" in + # [Yy][Ee][Ss]) + # echo "Alarms:" + # alarms_log=${logdir}/amr_raid_alarms + # ---------------------------------------- + # There seems to be following option but does not seem to + # show anything sor me so I cannot verify that it is what + # I expect: + # ${megarc} -getNVRAMLog -a${ctrl} + # For me IPMI has some logs though: + # DATE sel[1]: + # A Drive - Slot/Connector - Fault - Drive Array - Slot 2 + # ---------------------------------------- + # Keep following commented out until someone confirms that it + # does something useful for him. + # ---------------------------------------- + # if test ! -f ${alarms_log}.today; then + # touch ${alarms_log}.today + # fi + # mv -f ${alarms_log}.today ${alarms_log}.yesterday + # raid_rc=0 + # ${megarc} -getNVRAMLog -a${ctrl} > ${alarms_log}.today + # cmp -zs ${alarms_log}.yesterday ${alarms_log}.today + # raid_rc=$? + # if test $raid_rc -ne 0; then + # diff -u ${alarms_log}.yesterday ${alarms_log}.today + # else + # echo " No new alarms." + # fi + # [ $rc -eq 0 ] && [ $raid_rc -ne 0 ] && rc=3 + # ;; + #*) ;; + #esac + #fi + + done + ;; + + *) rc=0;; +esac + +exit $rc + +# end Property changes on: head/sysutils/amrstat/files/407.status-amr-raid.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/sysutils/amrstat/pkg-descr =================================================================== --- head/sysutils/amrstat/pkg-descr (nonexistent) +++ head/sysutils/amrstat/pkg-descr (revision 165098) @@ -0,0 +1,4 @@ +This port provides an utility for getting information from +LSI Logic's MegaRAID RAID controllers. + +WWW: http://lists.freebsd.org/pipermail/freebsd-scsi/2006-February/002294.html Property changes on: head/sysutils/amrstat/pkg-descr ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/sysutils/amrstat/pkg-plist =================================================================== --- head/sysutils/amrstat/pkg-plist (nonexistent) +++ head/sysutils/amrstat/pkg-plist (revision 165098) @@ -0,0 +1,4 @@ +sbin/amrstat +etc/periodic/daily/407.status-amr-raid +@dirrmtry etc/periodic/daily +@dirrmtry etc/periodic Property changes on: head/sysutils/amrstat/pkg-plist ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property