Update to 0.13e.

This commit is contained in:
Vanilla I. Shu 2017-02-20 03:25:29 +00:00
parent 30e46b5d4f
commit 118fbd82a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434431
5 changed files with 31 additions and 61 deletions

View file

@ -2,11 +2,9 @@
# $FreeBSD$
PORTNAME= logtools
PORTVERSION= 0.13d
PORTREVISION= 1
PORTVERSION= 0.13e
CATEGORIES= www
MASTER_SITES= http://www.coker.com.au/logtools/ \
LOCAL/chinsan/logtools/
MASTER_SITES= http://www.coker.com.au/logtools/
MAINTAINER= ports@FreeBSD.org
COMMENT= Useful tools to deal with CLF files (Common Log File format)

View file

@ -1,2 +1,3 @@
SHA256 (logtools-0.13d.tgz) = 25f9aca0242faca7061bc7b1da634a56ba58ee8201cd9c8299b52a2e4d8b5d30
SIZE (logtools-0.13d.tgz) = 38633
TIMESTAMP = 1487560009
SHA256 (logtools-0.13e.tgz) = 919fe52497dad6783ad5e07f8b7bff596a486c7a24e00b005304007b6b54949b
SIZE (logtools-0.13e.tgz) = 62468

View file

@ -1,19 +1,12 @@
--- clfdomainsplit.cpp.orig Mon Jun 9 10:56:27 2003
+++ clfdomainsplit.cpp Mon Jun 9 10:56:47 2003
@@ -1,19 +1,23 @@
--- clfdomainsplit.cpp.orig 2016-12-25 15:08:38 UTC
+++ clfdomainsplit.cpp
@@ -1,15 +1,18 @@
-#include <stdio.h>
-
+#include <cstdio>
-#if (__GNUC__ >= 3)
-#include <ext/hash_map>
+#if defined(_LIBCPP_VERSION)
+#include <unordered_map>
#else
-#include <hash_map>
+#include <ext/hash_map>
#endif
+#include <cstdlib>
#include <unordered_map>
#include <unistd.h>
#include <cstring>
#include <vector>
@ -29,15 +22,3 @@
// 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<const char *>()(str.c_str()); }
};
+#if defined(_LIBCPP_VERSION)
+typedef unordered_map<const string, FILE **, hash_string, eqstr> HASH_TYPE;
+#else
typedef hash_map<const string, FILE **, hash_string, eqstr> HASH_TYPE;
+#endif
HASH_TYPE fd_map;
typedef FILE * PFILE;

View file

@ -1,16 +1,10 @@
--- clfmerge.cpp.orig Tue Jan 8 17:15:37 2002
+++ clfmerge.cpp Tue Jan 8 17:14:06 2002
@@ -1,17 +1,26 @@
--- clfmerge.cpp.orig 2016-12-25 14:50:06 UTC
+++ clfmerge.cpp
@@ -1,17 +1,20 @@
-#include <stdio.h>
+#include <cstdio>
+
+#if defined(_LIBCPP_VERSION)
+#include <unordered_map>
+#else
#include <ext/hash_map>
#include <unordered_map>
-#include <stdlib.h>
+#endif
+
+#include <cstdlib>
#include <map>
#include <cstring>
@ -28,26 +22,22 @@
using namespace __gnu_cxx;
+#endif
struct eqstr
{
@@ -19,7 +28,11 @@
{ return strcmp(s1, s2) == 0; }
};
+#if defined(_LIBCPP_VERSION)
+unordered_map<const char *, const char *, hash<const char *>, eqstr> months;
+#else
hash_map<const char *, const char *, hash<const char *>, eqstr> months;
+#endif
class LogFile
{
@@ -207,7 +220,7 @@
struct hashing_func {
unsigned long operator()(const char *key) const
@@ -215,7 +218,7 @@ int main(int argc, char **argv)
unsigned int map_items = 0;
bool set_map_items = false, domain_mangling = false;
bool set_map_items = false, domain_mangling = false, verbose = false;
int int_c;
- optind = 0;
+ optind = 1;
while(-1 != (int_c = getopt(argc, argv, "b:hd")) )
while(-1 != (int_c = getopt(argc, argv, "b:hdv")) )
{
switch(char(int_c))
@@ -350,6 +353,6 @@ int main(int argc, char **argv)
} while(!items[0]->getLine());
}
}
- delete items;
+ delete[] items;
return 0;
}

View file

@ -1,6 +1,6 @@
--- clfsplit.cpp.orig Tue Jan 8 17:41:53 2002
+++ clfsplit.cpp Tue Jan 8 17:41:18 2002
@@ -199,7 +199,7 @@
--- clfsplit.cpp.orig 2008-06-06 05:33:52 UTC
+++ clfsplit.cpp
@@ -203,7 +203,7 @@ int main(int argc, char **argv)
MAP m;
FILE *input = stdin;
bool new_input = false;