Date: Mon, 16 Jun 2008 11:49:05 GMT From: Alex Kozlov <spam@rm-rf.kiev.ua> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/124641: [patch] new periodic script for checking for ports with mismatched checksums Message-ID: <200806161149.m5GBn5MT094593@www.freebsd.org> Resent-Message-ID: <200806161150.m5GBo1P6044262@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 124641 >Category: bin >Synopsis: [patch] new periodic script for checking for ports with mismatched checksums >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 16 11:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Alex Kozlov >Release: FreeBSD 6.3 >Organization: private >Environment: >Description: Add new periodic/security script for checking for ports with mismatched checksums >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # 460.chkportsum # echo x - 460.chkportsum sed 's/^X//' >460.chkportsum << 'END-of-460.chkportsum' X#!/bin/sh X Xif [ -r /etc/defaults/periodic.conf ] Xthen X . /etc/defaults/periodic.conf X source_periodic_confs Xfi X X. /etc/periodic/security/security.functions X Xrc=0 X Xecho "" Xecho 'Checking for ports with mismatched checksums:' X Xcase "${daily_status_security_chkportsum_enable}" in X [Yy][Ee][Ss]) X pkg_info -ga 2>/dev/null | \ X while read one two three; do X case ${one} in X Information) X case ${two} in X for) name=${three%%:} ;; X *) name='??' ;; X esac X ;; X Mismatched|'') ;; X *) X if [ -n ${name} ]; then X echo ${name}: ${one} X fi X ;; X esac X done X ;; X *) X rc=0 X ;; Xesac X Xexit $rc END-of-460.chkportsum exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806161149.m5GBn5MT094593>