aboutsummaryrefslogtreecommitdiffstats
path: root/security/freebsd-update
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2004-10-12 11:17:31 +0800
committeredwin <edwin@FreeBSD.org>2004-10-12 11:17:31 +0800
commitcd1c5f0c9ed6a0fca6f92914284c04f36694cf58 (patch)
tree96b5dd778224650621a5fcad67f27dc97a7499bc /security/freebsd-update
parent553940d5e062e80dab46e9e77bc99e4723735067 (diff)
downloadfreebsd-ports-graphics-cd1c5f0c9ed6a0fca6f92914284c04f36694cf58.tar.gz
freebsd-ports-graphics-cd1c5f0c9ed6a0fca6f92914284c04f36694cf58.tar.zst
freebsd-ports-graphics-cd1c5f0c9ed6a0fca6f92914284c04f36694cf58.zip
[MAINTAINER UPDATE] security/freebsd-update
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. PR: ports/72310 Submitted by: Colin Percival <cperciva@daemonology.net>
Diffstat (limited to 'security/freebsd-update')
-rw-r--r--security/freebsd-update/Makefile1
-rw-r--r--security/freebsd-update/files/patch-aa-redir211
2 files changed, 12 insertions, 0 deletions
diff --git a/security/freebsd-update/Makefile b/security/freebsd-update/Makefile
index dbbb9ca1395..f192a3a8107 100644
--- a/security/freebsd-update/Makefile
+++ b/security/freebsd-update/Makefile
@@ -7,6 +7,7 @@
PORTNAME= freebsd-update
PORTVERSION= 1.6
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.daemonology.net/freebsd-update/
diff --git a/security/freebsd-update/files/patch-aa-redir2 b/security/freebsd-update/files/patch-aa-redir2
new file mode 100644
index 00000000000..98337484497
--- /dev/null
+++ b/security/freebsd-update/files/patch-aa-redir2
@@ -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