From owner-svn-ports-all@FreeBSD.ORG Tue Jul 8 20:11:06 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3685BACB; Tue, 8 Jul 2014 20:11:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22B452C98; Tue, 8 Jul 2014 20:11:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s68KB6aH067859; Tue, 8 Jul 2014 20:11:06 GMT (envelope-from adamw@svn.freebsd.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s68KB4Rl067849; Tue, 8 Jul 2014 20:11:04 GMT (envelope-from adamw@svn.freebsd.org) Message-Id: <201407082011.s68KB4Rl067849@svn.freebsd.org> From: Adam Weinberger Date: Tue, 8 Jul 2014 20:11:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r361287 - in head/www/logtools: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2014 20:11:06 -0000 Author: adamw Date: Tue Jul 8 20:11:04 2014 New Revision: 361287 URL: http://svnweb.freebsd.org/changeset/ports/361287 QAT: https://qat.redports.org/buildarchive/r361287/ Log: Stage, and fix build with clang. PR: 191377 Submitted by: tkato432@yahoo.com Added: head/www/logtools/files/patch-clfdomainsplit.cpp - copied, changed from r361286, head/www/logtools/files/patch-ac head/www/logtools/files/patch-clfmerge.cpp - copied, changed from r361286, head/www/logtools/files/patch-aa head/www/logtools/files/patch-clfsplit.cpp - copied unchanged from r361286, head/www/logtools/files/patch-ab head/www/logtools/pkg-plist (contents, props changed) Deleted: head/www/logtools/files/patch-aa head/www/logtools/files/patch-ab head/www/logtools/files/patch-ac Modified: head/www/logtools/Makefile head/www/logtools/pkg-descr Modified: head/www/logtools/Makefile ============================================================================== --- head/www/logtools/Makefile Tue Jul 8 20:00:45 2014 (r361286) +++ head/www/logtools/Makefile Tue Jul 8 20:11:04 2014 (r361287) @@ -3,23 +3,29 @@ PORTNAME= logtools PORTVERSION= 0.13d +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.coker.com.au/logtools/ \ LOCAL/chinsan/logtools/ -EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Useful tools to deal with CLF files (Common Log File format) -PLIST_FILES= bin/clfmerge \ - bin/clfsplit \ - bin/clfdomainsplit \ - bin/logprn \ - bin/funnel \ - etc/clfdomainsplit.cfg +LICENSE= GPLv2 +USES= tar:tgz GNU_CONFIGURE= yes -MAN1= clfmerge.1 logprn.1 funnel.1 clfsplit.1 clfdomainsplit.1 -NO_STAGE= yes +post-patch: + @${REINPLACE_CMD} -e \ + 's|-O2 -g|| ; \ + s|-lstdc++|| ; \ + s| \($${prefix}\)| $${DESTDIR}\1|g ; \ + s| \(@mandir@\)| $${DESTDIR}\1|g ; \ + s|.cfg |.cfg.sample | ; \ + s| \(@sysconfdir@\)| $${DESTDIR}\1|g' ${WRKSRC}/Makefile.in + +post-build: + @${LN} -sf clfdomainsplit.cfg ${WRKSRC}/clfdomainsplit.cfg.sample + .include Copied and modified: head/www/logtools/files/patch-clfdomainsplit.cpp (from r361286, head/www/logtools/files/patch-ac) ============================================================================== --- head/www/logtools/files/patch-ac Tue Jul 8 20:00:45 2014 (r361286, copy source) +++ head/www/logtools/files/patch-clfdomainsplit.cpp Tue Jul 8 20:11:04 2014 (r361287) @@ -1,14 +1,43 @@ --- clfdomainsplit.cpp.orig Mon Jun 9 10:56:27 2003 +++ clfdomainsplit.cpp Mon Jun 9 10:56:47 2003 -@@ -1,10 +1,6 @@ - #include +@@ -1,19 +1,23 @@ +-#include ++#include -#if (__GNUC__ >= 3) -#include --#else ++#if defined(_LIBCPP_VERSION) ++#include + #else -#include --#endif -+#include ++#include + #endif ++#include #include - #include + #include + #include +-#include ++#include ++#include + #include "logtools.h" + + using namespace std; ++#if !defined(_LIBCPP_VERSION) + using namespace __gnu_cxx; ++#endif + + // MAX_FDS is the maximum number of files that will be directly written to + // by one process +@@ -166,7 +170,11 @@ + size_t operator()(const string str) const { return hash()(str.c_str()); } + }; + ++#if defined(_LIBCPP_VERSION) ++typedef unordered_map HASH_TYPE; ++#else + typedef hash_map HASH_TYPE; ++#endif + HASH_TYPE fd_map; + + typedef FILE * PFILE; Copied and modified: head/www/logtools/files/patch-clfmerge.cpp (from r361286, head/www/logtools/files/patch-aa) ============================================================================== --- head/www/logtools/files/patch-aa Tue Jul 8 20:00:45 2014 (r361286, copy source) +++ head/www/logtools/files/patch-clfmerge.cpp Tue Jul 8 20:11:04 2014 (r361287) @@ -1,6 +1,48 @@ --- clfmerge.cpp.orig Tue Jan 8 17:15:37 2002 +++ clfmerge.cpp Tue Jan 8 17:14:06 2002 -@@ -201,7 +201,7 @@ +@@ -1,17 +1,26 @@ +-#include ++#include ++ ++#if defined(_LIBCPP_VERSION) ++#include ++#else + #include +-#include ++#endif ++ ++#include + #include + #include + #include +-#include ++#include ++#include + + #include "logtools.h" + + #define BUF_SIZE 4096 + + using namespace std; ++#if !defined(_LIBCPP_VERSION) + using namespace __gnu_cxx; ++#endif + + struct eqstr + { +@@ -19,7 +28,11 @@ + { return strcmp(s1, s2) == 0; } + }; + ++#if defined(_LIBCPP_VERSION) ++unordered_map, eqstr> months; ++#else + hash_map, eqstr> months; ++#endif + + class LogFile + { +@@ -207,7 +220,7 @@ unsigned int map_items = 0; bool set_map_items = false, domain_mangling = false; int int_c; Copied: head/www/logtools/files/patch-clfsplit.cpp (from r361286, head/www/logtools/files/patch-ab) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/logtools/files/patch-clfsplit.cpp Tue Jul 8 20:11:04 2014 (r361287, copy of r361286, head/www/logtools/files/patch-ab) @@ -0,0 +1,11 @@ +--- clfsplit.cpp.orig Tue Jan 8 17:41:53 2002 ++++ clfsplit.cpp Tue Jan 8 17:41:18 2002 +@@ -199,7 +199,7 @@ + MAP m; + FILE *input = stdin; + bool new_input = false; +- optind = 0; ++ optind = 1; + while(-1 != (int_c = getopt(argc, argv, "d:i:f:s:")) ) + { + switch(char(int_c)) Modified: head/www/logtools/pkg-descr ============================================================================== --- head/www/logtools/pkg-descr Tue Jul 8 20:00:45 2014 (r361286) +++ head/www/logtools/pkg-descr Tue Jul 8 20:11:04 2014 (r361287) @@ -1,4 +1,4 @@ -Tools like clfmerge, clfsplit etc to simplify working with access log files -e.g. with virtual hosts. +Tools like clfmerge, clfsplit etc to simplify working with access +log files e.g. with virtual hosts. WWW: http://doc.coker.com.au/projects/logtools/ Added: head/www/logtools/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/logtools/pkg-plist Tue Jul 8 20:11:04 2014 (r361287) @@ -0,0 +1,11 @@ +bin/clfdomainsplit +bin/clfmerge +bin/clfsplit +bin/funnel +bin/logprn +@sample etc/clfdomainsplit.cfg.sample +man/man1/clfdomainsplit.1.gz +man/man1/clfmerge.1.gz +man/man1/clfsplit.1.gz +man/man1/funnel.1.gz +man/man1/logprn.1.gz