From 4c7057eac6d48e9ec49ccd0e63a5811c3f2dfc05 Mon Sep 17 00:00:00 2001 From: tnn Date: Sun, 3 May 2009 15:31:08 +0000 Subject: patch-ac: Apply upstream SVN revision 3748, which fixes upstream ticket 75: "access logs globally writable in daemonized mode" Bump PKGREVISION. --- net/ntop/Makefile | 3 ++- net/ntop/distinfo | 3 ++- net/ntop/patches/patch-ac | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 net/ntop/patches/patch-ac (limited to 'net/ntop') diff --git a/net/ntop/Makefile b/net/ntop/Makefile index 8905af77067..7061feb0601 100644 --- a/net/ntop/Makefile +++ b/net/ntop/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.51 2009/04/24 10:18:03 adam Exp $ +# $NetBSD: Makefile,v 1.52 2009/05/03 15:31:08 tnn Exp $ DISTNAME= ntop-3.3.9 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ntop/} diff --git a/net/ntop/distinfo b/net/ntop/distinfo index 48ebb1d16b9..1bc34d82c6c 100644 --- a/net/ntop/distinfo +++ b/net/ntop/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.11 2009/04/24 10:18:03 adam Exp $ +$NetBSD: distinfo,v 1.12 2009/05/03 15:31:08 tnn Exp $ SHA1 (ntop-3.3.9.tar.gz) = 77c1976d096709c6e45dcfe4befc2045cf83774b RMD160 (ntop-3.3.9.tar.gz) = 3d7b14bff99a6652ae83fb86a2cda3206cc3392c Size (ntop-3.3.9.tar.gz) = 4955257 bytes SHA1 (patch-aa) = 64b2d4cda050cd9b8981b29b0e10d900469d4b7d SHA1 (patch-ab) = 6c700cf0c8ed7651d40420b6cb6eb41d4f78ef81 +SHA1 (patch-ac) = 101dd95636a09339cf3f2032e9d697ccc37f27c6 diff --git a/net/ntop/patches/patch-ac b/net/ntop/patches/patch-ac new file mode 100644 index 00000000000..decadaa5e0b --- /dev/null +++ b/net/ntop/patches/patch-ac @@ -0,0 +1,16 @@ +$NetBSD: patch-ac,v 1.6 2009/05/03 15:31:08 tnn Exp $ + +http://www.ntop.org/trac/ticket/75 + +Index: http.c +=================================================================== +--- http.c (revision 3747) ++++ http.c (revision 3748) +@@ -1341,6 +1341,7 @@ + void initAccessLog(void) { + + if(myGlobals.runningPref.accessLogFile) { ++ umask(0137); + myGlobals.accessLogFd = fopen(myGlobals.runningPref.accessLogFile, "a"); + if(myGlobals.accessLogFd == NULL) { + traceEvent(CONST_TRACE_ERROR, "Unable to create file %s. Access log is disabled.", -- cgit v1.2.3