ports/72310: [MAINTAINER UPDATE] security/freebsd-update

Colin Percival cperciva at daemonology.net
Mon Oct 4 15:00:54 UTC 2004


>Number:         72310
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE] security/freebsd-update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 04 15:00:53 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Colin Percival
>Release:        FreeBSD 5.2.1-SECURITY i386
>Organization:
>Environment:
System: FreeBSD hexahedron.daemonology.net 5.2.1-SECURITY FreeBSD 5.2.1-SECURITY #0: Wed May 26 04:19:54 GMT 2004 root at builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386

>Description:

If `freebsd-update cron` fails due to a lack of internet connection, two
emails will be sent -- one with the error message from fetch(1), and the
other from freebsd-update reporting that patches could not be 
downloaded.

This patch corrects this mis-behaviour and causes a single email to be
sent in such an event; this will be included in a future version of the
distfile.

>How-To-Repeat:
>Fix:

Modify the Makefile, and add files/patch-aa-redir2:

--- patch begins here ---
--- security/freebsd-update/Makefile    15 Jul 2004 05:22:47 -0000      1.13
+++ security/freebsd-update/Makefile    4 Oct 2004 14:51:25 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	freebsd-update
 PORTVERSION=	1.6
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://www.daemonology.net/freebsd-update/
 
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ security/freebsd-update/files/patch-aa-redir2	3 Oct 2004 20:12:52 -0000
@@ -0,0 +1,11 @@
+--- freebsd-update	Sun Oct  3 21:08:21 2004
++++ freebsd-update	Sun Oct  3 21:12:04 2004
+@@ -371,7 +371,7 @@
+ 
+ # Fetch updates; send output to a file, and
+ # append a message in case of error.
+-  real-fetch-update > $WRKDIR/log ||
++  real-fetch-update > $WRKDIR/log 2>&1 ||
+     echo "Error fetching updates" >> $WRKDIR/log
+ 
+ # Send an email to root if $VERBOSE == yes, or
--- patch-aa-redir2 ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list