head 1.4; access; symbols pkgsrc-2018Q1:1.3.0.106 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.104 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.102 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.98 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.96 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.94 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.92 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.90 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.88 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.86 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.84 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.82 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.80 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.78 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.76 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.74 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.72 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.70 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.68 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.66 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.64 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.62 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.60 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.58 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.56 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.54 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.52 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.50 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.48 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.46 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.44 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.42 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.40 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.38 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.36 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.34 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.32 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.30 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.28 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.26 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.24 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.22 pkgsrc-2008Q1:1.3.0.20 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.18 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.16 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.14 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.12 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.10 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.8 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.6 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.4 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.2 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.2.0.8 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.6 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.4 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.2 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.1.1.1.0.6 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.4 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.2 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2018.05.08.08.17.36; author wen; state dead; branches; next 1.3; commitid FFp9W0y3ZH3G7tBA; 1.3 date 2005.10.06.11.26.18; author sketch; state Exp; branches 1.3.106.1; next 1.2; 1.2 date 2004.11.27.00.28.10; author sketch; state dead; branches 1.2.8.1; next 1.1; 1.1 date 2003.12.08.16.28.38; author sketch; state Exp; branches 1.1.1.1; next ; 1.3.106.1 date 2018.05.19.09.14.24; author spz; state dead; branches; next ; commitid XKaOUxWUKsAE5TCA; 1.2.8.1 date 2005.10.06.11.48.26; author salo; state Exp; branches; next ; 1.1.1.1 date 2003.12.08.16.28.38; author sketch; state Exp; branches; next ; desc @@ 1.4 log @Update to 0.18.4 Add LICENSE Update HOMEPAGE Upstream changes: v0.18.4 (12th April, 2018) * fix for clang6 * add better build instructions to INSTALL * add option (-v) to show version * fix minor mem leak (8 bytes per apachetop invocation) v0.17.4 (25th April, 2017) * create config.nice when running ./configure * fix error: extra qualification on member (when using adns) * fix compiler warnings * fix a potential buffer overflow v0.15.6 (10th June, 2015) * allow other time/date formats in Apache log * use sys/param.h for MAXPATHLEN * fix deprecated auto tools macros * fix compiler warnings * use silent compile rules * updated man page * change version to 0.YY.M of new release v0.12.6 (27th October, 2005) * fixed security issue which described at CVE-2005-2660 @ text @$NetBSD: patch-aa,v 1.3 2005/10/06 11:26:18 sketch Exp $ --- src/apachetop.cc.orig 2005-10-06 12:07:41.000000000 +0100 +++ src/apachetop.cc 2005-10-06 12:10:07.000000000 +0100 @@@@ -1104,8 +1104,16 @@@@ { FILE *d; va_list args; + static char tmpfile[1024] = {'\0'}; - if (cf.debug && (d = fopen(DEBUG_OUTPUT, "a"))) + if (!strlen(tmpfile)) + { + strcpy(tmpfile, "/tmp/atop.XXXXXX"); + mkdtemp(tmpfile); + strncat(tmpfile, "/debug", sizeof(tmpfile)); + } + + if (cf.debug && (d = fopen(tmpfile, "a"))) { va_start(args, fmt); vfprintf(d, fmt, args); @ 1.3 log @Apply patch from Steve Kemp of Debian to fix insecure temporary file usage. Fixes CAN-2005-2660. @ text @d1 1 a1 1 $NetBSD$ @ 1.3.106.1 log @Pullup ticket #5758 - requested by bsiegert www/apachetop: security update Revisions pulled up: - www/apachetop/Makefile 1.21 - www/apachetop/distinfo 1.6 - www/apachetop/patches/patch-aa deleted ------------------------------------------------------------------- Module Name: pkgsrc Committed By: wen Date: Tue May 8 08:17:36 UTC 2018 Modified Files: pkgsrc/www/apachetop: Makefile distinfo Removed Files: pkgsrc/www/apachetop/patches: patch-aa Log Message: Update to 0.18.4 Add LICENSE Update HOMEPAGE Upstream changes: v0.18.4 (12th April, 2018) * fix for clang6 * add better build instructions to INSTALL * add option (-v) to show version * fix minor mem leak (8 bytes per apachetop invocation) v0.17.4 (25th April, 2017) * create config.nice when running ./configure * fix error: extra qualification on member (when using adns) * fix compiler warnings * fix a potential buffer overflow v0.15.6 (10th June, 2015) * allow other time/date formats in Apache log * use sys/param.h for MAXPATHLEN * fix deprecated auto tools macros * fix compiler warnings * use silent compile rules * updated man page * change version to 0.YY.M of new release v0.12.6 (27th October, 2005) * fixed security issue which described at CVE-2005-2660 To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 pkgsrc/www/apachetop/Makefile cvs rdiff -u -r1.5 -r1.6 pkgsrc/www/apachetop/distinfo cvs rdiff -u -r1.3 -r0 pkgsrc/www/apachetop/patches/patch-aa @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2005/10/06 11:26:18 sketch Exp $ @ 1.2 log @Remove obsolete patches. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2003/12/08 16:28:38 sketch Exp $ d3 7 a9 4 --- src/Makefile.am.orig 2003-12-08 15:42:48.000000000 +0000 +++ src/Makefile.am 2003-12-08 15:43:09.000000000 +0000 @@@@ -1,6 +1,6 @@@@ ## Process this file with automake to produce Makefile.in. d11 12 a22 5 -sbin_PROGRAMS = apachetop +bin_PROGRAMS = apachetop apachetop_SOURCES = apachetop.cc log.cc hashes.cc ohtbl.cc map.cc \ display.cc hits_circle.cc timed_circle.cc @ 1.2.8.1 log @Pullup ticket 808 - requested by Jonathan Perkin security fix for apachetop Revisions pulled up: - pkgsrc/www/apachetop/Makefile 1.6 - pkgsrc/www/apachetop/distinfo 1.4 - pkgsrc/www/apachetop/patches/patch-aa 1.3 Module Name: pkgsrc Committed By: sketch Date: Thu Oct 6 11:26:18 UTC 2005 Modified Files: pkgsrc/www/apachetop: Makefile distinfo Added Files: pkgsrc/www/apachetop/patches: patch-aa Log Message: Apply patch from Steve Kemp of Debian to fix insecure temporary file usage. Fixes CAN-2005-2660. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2005/10/06 11:26:18 sketch Exp $ d3 4 a6 7 --- src/apachetop.cc.orig 2005-10-06 12:07:41.000000000 +0100 +++ src/apachetop.cc 2005-10-06 12:10:07.000000000 +0100 @@@@ -1104,8 +1104,16 @@@@ { FILE *d; va_list args; + static char tmpfile[1024] = {'\0'}; d8 5 a12 12 - if (cf.debug && (d = fopen(DEBUG_OUTPUT, "a"))) + if (!strlen(tmpfile)) + { + strcpy(tmpfile, "/tmp/atop.XXXXXX"); + mkdtemp(tmpfile); + strncat(tmpfile, "/debug", sizeof(tmpfile)); + } + + if (cf.debug && (d = fopen(tmpfile, "a"))) { va_start(args, fmt); vfprintf(d, fmt, args); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of apachetop-0.8.2 into the NetBSD Packages Collection. ApacheTop provides a realtime display of Apache logfile statistics in a similar manner to top(1). @ text @@