summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax
diff options
context:
space:
mode:
authoris <is>2009-10-03 11:43:49 +0000
committeris <is>2009-10-03 11:43:49 +0000
commit0640e694649efe3783f7199fa8fc05cea94c0a26 (patch)
treebeed556317650d2f576fef53f3b28fbba74b760a /comms/mgetty+sendfax
parent5b8b208fe1484db1004d3cf6646dd93792073491 (diff)
downloadpkgsrc-0640e694649efe3783f7199fa8fc05cea94c0a26.tar.gz
Actually, the security patch was missing from my last commit. PKGREVISION
increased to distinguish.
Diffstat (limited to 'comms/mgetty+sendfax')
-rw-r--r--comms/mgetty+sendfax/Makefile4
-rw-r--r--comms/mgetty+sendfax/distinfo4
-rw-r--r--comms/mgetty+sendfax/patches/patch-aa34
3 files changed, 37 insertions, 5 deletions
diff --git a/comms/mgetty+sendfax/Makefile b/comms/mgetty+sendfax/Makefile
index c0bcd0061f1..365b415a23f 100644
--- a/comms/mgetty+sendfax/Makefile
+++ b/comms/mgetty+sendfax/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.65 2009/10/02 19:21:58 is Exp $
+# $NetBSD: Makefile,v 1.66 2009/10/03 11:43:49 is Exp $
DISTNAME= mgetty1.1.36-Jun15
PKGNAME= mgetty-1.1.36
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= comms
MASTER_SITES= ftp://alpha.greenie.net/pub/mgetty/source/1.1/
diff --git a/comms/mgetty+sendfax/distinfo b/comms/mgetty+sendfax/distinfo
index 596c281e808..f5ea329de43 100644
--- a/comms/mgetty+sendfax/distinfo
+++ b/comms/mgetty+sendfax/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.29 2009/10/02 19:21:59 is Exp $
+$NetBSD: distinfo,v 1.30 2009/10/03 11:43:49 is Exp $
SHA1 (mgetty1.1.36-Jun15.tar.gz) = a9627e241502c505465a9c8ffadc09dd7d90fc02
RMD160 (mgetty1.1.36-Jun15.tar.gz) = 421c72b8534c6665c46033d5fe1018ba1300fd50
Size (mgetty1.1.36-Jun15.tar.gz) = 1046324 bytes
-SHA1 (patch-aa) = 2b0432d9d65347d4a5d7a4a442b747e16fc4d54a
+SHA1 (patch-aa) = f80c4e7f7eb23eac7ee23c2144612b82c122d45f
SHA1 (patch-ab) = 67c666573ac6aa5a9554e169e81991a6226ea122
SHA1 (patch-ac) = bdc69ccc3430634bb74742fd105ee8f3fcde4d21
SHA1 (patch-ad) = a24776252e36cfe84b10b7a1b03a43b15d7049d0
diff --git a/comms/mgetty+sendfax/patches/patch-aa b/comms/mgetty+sendfax/patches/patch-aa
index da1e437ff79..486fc9f36a9 100644
--- a/comms/mgetty+sendfax/patches/patch-aa
+++ b/comms/mgetty+sendfax/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.4 2009/10/02 19:21:59 is Exp $
+$NetBSD: patch-aa,v 1.5 2009/10/03 11:43:49 is Exp $
--- fax/faxspool.in.orig 2007-01-19 08:38:22.000000000 +0100
+++ fax/faxspool.in
@@ -17,3 +17,35 @@ $NetBSD: patch-aa,v 1.4 2009/10/02 19:21:59 is Exp $
fi
test -z "$user" && user=$LOGNAME
test -z "$user" && user=$USER
+@@ -653,12 +653,14 @@ fi
+ #
+ # mkdir a directory in $TMP (or /tmp), convert input to G3 in there
+ #
+-spooldir=${TMP:-/tmp}/$new_seq.$$.`date +%S`
++spooldirprefix=$new_seq.$$.`date +%S`
++spooldir=`mktemp -d -t $spooldirprefix`
+
+-if ( umask 077 ; mkdir $spooldir ) ; then
+- $echo "spooling to $spooldir (->$new_seq)..."
+-else
++if [ $? -ne 0 ]
++then
+ $echo "ERROR: can't create work dir '$spooldir', giving up" >&2 ; exit 6
++else
++ $echo "spooling to $spooldir (->$new_seq)..."
+ fi
+
+ #
+@@ -675,9 +677,9 @@ do
+ if [ x$file = x- ]
+ then
+ $echo "spooling $file (stdin)..."
+- trap "rm /tmp/faxsp.$$" 0
+- cat - >/tmp/faxsp.$$
+- file=/tmp/faxsp.$$
++ file=`mktemp -t faxsp.$$`
++ trap "rm $file" 0
++ cat - > $file
+ else
+ $echo "spooling $file..."
+ fi