From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 6 18:00:41 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34C5F16A4FD for ; Wed, 6 Sep 2006 18:00:41 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADA0343D8F for ; Wed, 6 Sep 2006 18:00:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k86I0SjP019244 for ; Wed, 6 Sep 2006 18:00:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k86I0S8p019241; Wed, 6 Sep 2006 18:00:28 GMT (envelope-from gnats) Resent-Date: Wed, 6 Sep 2006 18:00:28 GMT Resent-Message-Id: <200609061800.k86I0S8p019241@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gabor Kovesdan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B7B516A4DE; Wed, 6 Sep 2006 17:56:59 +0000 (UTC) (envelope-from root@server.t-hosting.hu) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 860E043D45; Wed, 6 Sep 2006 17:56:58 +0000 (GMT) (envelope-from root@server.t-hosting.hu) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 6167499C880; Wed, 6 Sep 2006 19:56:57 +0200 (CEST) Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BNHGygGPkfBg; Wed, 6 Sep 2006 19:56:56 +0200 (CEST) Received: by server.t-hosting.hu (Postfix, from userid 0) id 8404B99C87C; Wed, 6 Sep 2006 19:56:56 +0200 (CEST) Message-Id: <20060906175656.8404B99C87C@server.t-hosting.hu> Date: Wed, 6 Sep 2006 19:56:56 +0200 (CEST) From: Gabor Kovesdan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Gabor Kovesdan Subject: ports/102946: [patch] security/portaudit X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gabor Kovesdan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Sep 2006 18:00:41 -0000 >Number: 102946 >Category: ports >Synopsis: [patch] security/portaudit >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 06 18:00:28 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gabor Kovesdan >Release: FreeBSD 6.1-RELEASE-p3 amd64 >Organization: n/a >Environment: System: FreeBSD server.t-hosting.hu 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Sat Aug 19 11:08:15 CEST 2006 root@server.t-hosting.hu:/usr/src/sys/amd64/compile/FREEBSD amd64 >Description: The periodic script of portaudit looks for the vulnerable packages daily, but doesn't ever fetches the new vulnerability database. The end-user might be deceived everything is done automatically, but the check itself is not very useful without updating the database regularly. Currently, this has to be done manually or from cron. My patch adds an another block to portaudit's periodic script to automatically update the database as well, before looking for vulnerable packgages, and bumps PORTREVISION. >How-To-Repeat: >Fix: --- portaudit.diff begins here --- Index: Makefile =================================================================== RCS file: /usr/cvs/ports/security/portaudit/Makefile,v retrieving revision 1.21 diff -u -r1.21 Makefile --- Makefile 16 Apr 2006 13:32:27 -0000 1.21 +++ Makefile 6 Sep 2006 17:50:25 -0000 @@ -7,6 +7,7 @@ PORTNAME= portaudit PORTVERSION= 0.5.11 +PORTREVISION= 1 CATEGORIES= security DISTFILES= Index: files/portaudit.sh =================================================================== RCS file: /usr/cvs/ports/security/portaudit/files/portaudit.sh,v retrieving revision 1.3 diff -u -r1.3 portaudit.sh --- files/portaudit.sh 1 Jul 2004 10:59:48 -0000 1.3 +++ files/portaudit.sh 6 Sep 2006 17:47:59 -0000 @@ -39,6 +39,18 @@ fi rc=0 + +case "${daily_status_security_portaudit_update_enable:-YES}" in + [Nn][Oo]) + ;; + *) + echo + echo "Updating the package vulnerability database:" + echo + %%PREFIX%%/sbin/portaudit -F + ;; +esac + case "${daily_status_security_portaudit_enable:-YES}" in [Nn][Oo]) ;; --- portaudit.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: