View | Details | Raw Unified | Return to bug 119715
Collapse All | Expand All

(-)webalizer/Makefile (-15 / +9 lines)
Lines 25-31 Link Here
25
COMMENT=	A web server log file analysis program
25
COMMENT=	A web server log file analysis program
26
26
27
.if !defined(LIB_DEPENDS)
27
.if !defined(LIB_DEPENDS)
28
LIB_DEPENDS=	gd.4:${PORTSDIR}/${GD_PORT}
28
LIB_DEPENDS=	gd.4:${PORTSDIR}/graphics/gd
29
.endif
29
.endif
30
.if defined(WITH_GEOIP)
30
.if defined(WITH_GEOIP)
31
LIB_DEPENDS+=	GeoIP.5:${PORTSDIR}/net/GeoIP
31
LIB_DEPENDS+=	GeoIP.5:${PORTSDIR}/net/GeoIP
Lines 36-46 Link Here
36
GNU_CONFIGURE=	yes
36
GNU_CONFIGURE=	yes
37
DOCSDIR?=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
37
DOCSDIR?=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
38
EXAMPLESDIR?=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
38
EXAMPLESDIR?=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
39
GD_PORT?=	graphics/gd
40
39
41
CONFLICTS=	geolizer-2*
40
CONFLICTS=	geolizer-2*
42
41
43
44
.if defined(WITH_GEOIP)
42
.if defined(WITH_GEOIP)
45
WEBALIZER_SUFFIX=	-geoip
43
WEBALIZER_SUFFIX=	-geoip
46
CONFLICTS+=	${PKGNAMEPREFIX}webalizer-2*
44
CONFLICTS+=	${PKGNAMEPREFIX}webalizer-2*
Lines 59-68 Link Here
59
PLIST_SUB+=	WITH_GEOIP="@comment "
57
PLIST_SUB+=	WITH_GEOIP="@comment "
60
.endif
58
.endif
61
59
62
.if defined(BATCH)
63
# no cosmetique spaces allowed
60
# no cosmetique spaces allowed
64
WEBALIZER_LANG?=english
61
WEBALIZER_LANG?=english
65
.endif
66
62
67
.include <bsd.port.pre.mk>
63
.include <bsd.port.pre.mk>
68
64
Lines 87-99 Link Here
87
		simplified_chinese slovak slovene spanish swedish \
83
		simplified_chinese slovak slovene spanish swedish \
88
		turkish ukrainian
84
		turkish ukrainian
89
85
90
.if defined(WEBALIZER_LANG)
91
CONFIGURE_ARGS+=	--with-language=${WEBALIZER_LANG}
86
CONFIGURE_ARGS+=	--with-language=${WEBALIZER_LANG}
92
#	The patch file is written by URASHIMA Akira
87
#	The patch file is written by URASHIMA Akira
93
#	see http://tyche.pu-toyama.ac.jp/~a-urasim/webalizer/
88
#	see http://tyche.pu-toyama.ac.jp/~a-urasim/webalizer/
94
.if ${WEBALIZER_LANG} == japanese
89
.if ${WEBALIZER_LANG} == japanese
95
EXTRA_PATCHES+=		${FILESDIR}/ja-webalizer.conf-dist.patch
90
EXTRA_PATCHES+=		${FILESDIR}/ja-webalizer.conf-dist.patch
96
.endif
91
.else
92
EXTRA_PATCHES+=		${FILESDIR}/sample.conf.patch
97
.endif
93
.endif
98
94
99
.if defined(WITH_WEBALIZER_CONV)
95
.if defined(WITH_WEBALIZER_CONV)
Lines 117-141 Link Here
117
do-extract:
113
do-extract:
118
	@${RM} -rf ${WRKDIR}
114
	@${RM} -rf ${WRKDIR}
119
	@${MKDIR} ${WRKDIR}
115
	@${MKDIR} ${WRKDIR}
120
	@for file in ${EXTRACT_ONLY}; do \
116
	@for f in ${EXTRACT_ONLY}; do \
121
                case $$file in \
117
		case $$f in \
122
		*.Z|*.gz) \
118
		*.Z|*.gz) \
123
			if ! (cd ${WRKDIR} && \
119
			if ! (cd ${WRKDIR} && \
124
				${GZCAT} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
120
				${GZCAT} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$f ${EXTRACT_AFTER_ARGS});\
125
			then \
121
			then \
126
				exit 1; \
122
				exit 1; \
127
			fi \
123
			fi \
128
			;; \
124
			;; \
129
		*.bz2) \
125
		*.bz2) \
130
			if ! (cd ${WRKDIR} && \
126
			if ! (cd ${WRKDIR} && \
131
				${BZCAT} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
127
				${BZCAT} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$f ${EXTRACT_AFTER_ARGS});\
132
			then \
128
			then \
133
				exit 1; \
129
				exit 1; \
134
			fi \
130
			fi \
135
			;; \
131
			;; \
136
		*.zip) \
132
		*.zip) \
137
			if ! (cd ${WRKDIR} && \
133
			if ! (cd ${WRKDIR} && \
138
				${UNZIP_CMD} -qo ${_DISTDIR}/$$file -d ${WRKDIR});\
134
				${UNZIP_CMD} -qo ${_DISTDIR}/$$f -d ${WRKDIR});\
139
			then \
135
			then \
140
				exit 1; \
136
				exit 1; \
141
			fi \
137
			fi \
Lines 143-149 Link Here
143
		*) \
139
		*) \
144
			exit 1; \
140
			exit 1; \
145
			;; \
141
			;; \
146
                esac; \
142
		esac; \
147
	done
143
	done
148
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
144
.if !defined(EXTRACT_PRESERVE_OWNERSHIP)
149
	@if [ `${ID} -u` = 0 ]; then \
145
	@if [ `${ID} -u` = 0 ]; then \
Lines 163-174 Link Here
163
		-e 's|USE_GEOIP=""|USE_GEOIP="yes"|' \
159
		-e 's|USE_GEOIP=""|USE_GEOIP="yes"|' \
164
		${WRKSRC}/configure
160
		${WRKSRC}/configure
165
.endif
161
.endif
166
.if !defined(WEBALIZER_LANG)
167
	@${ECHO_MSG} "You can customize the language by typing"
162
	@${ECHO_MSG} "You can customize the language by typing"
168
	@${ECHO_MSG} "       make WEBALIZER_LANG=<lang>"
163
	@${ECHO_MSG} "       make WEBALIZER_LANG=<lang>"
169
	@${ECHO_MSG} "where <lang> is one of:"
164
	@${ECHO_MSG} "where <lang> is one of:"
170
	@${ECHO_MSG} ${SUPP_LANG}
165
	@${ECHO_MSG} ${SUPP_LANG}
171
.endif
172
166
173
do-install:
167
do-install:
174
	${INSTALL_PROGRAM} ${WRKSRC}/webalizer \
168
	${INSTALL_PROGRAM} ${WRKSRC}/webalizer \
(-)webalizer/files/ja-webalizer.conf-dist.patch (-9 / +10 lines)
Lines 1-5 Link Here
1
--- sample.conf.orig	Fri Sep 29 12:51:42 2000
1
--- sample.conf.orig	2000-09-29 12:51:42.000000000 +0900
2
+++ sample.conf	Thu Oct 14 11:48:21 2004
2
+++ sample.conf	2008-01-16 21:58:12.000000000 +0900
3
@@ -107,9 +107,12 @@
3
@@ -107,9 +107,12 @@
4
 
4
 
5
 PageType	htm*
5
 PageType	htm*
Lines 13-27 Link Here
13
 
13
 
14
 # UseHTTPS should be used if the analysis is being run on a
14
 # UseHTTPS should be used if the analysis is being run on a
15
 # secure server, and links to urls should use 'https://' instead
15
 # secure server, and links to urls should use 'https://' instead
16
@@ -153,6 +156,7 @@
16
@@ -153,6 +156,8 @@
17
 # is 80 characters, so use multiple lines if needed.
17
 # is 80 characters, so use multiple lines if needed.
18
 
18
 
19
 #HTMLHead <META NAME="author" CONTENT="The Webalizer">
19
 #HTMLHead <META NAME="author" CONTENT="The Webalizer">
20
+HTMLHead <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-euc-jp">
20
+HTMLHead <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-euc-jp">
21
+HTMLHead <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
21
 
22
 
22
 # HTMLBody defined the HTML code to be inserted, starting with the
23
 # HTMLBody defined the HTML code to be inserted, starting with the
23
 # <BODY> tag.  If not specified, the default is shown below.  If
24
 # <BODY> tag.  If not specified, the default is shown below.  If
24
@@ -393,6 +397,9 @@
25
@@ -393,6 +398,9 @@
25
 HideURL		*.png
26
 HideURL		*.png
26
 HideURL		*.PNG
27
 HideURL		*.PNG
27
 HideURL		*.ra
28
 HideURL		*.ra
Lines 31-37 Link Here
31
 
32
 
32
 # Hiding agents is kind of futile
33
 # Hiding agents is kind of futile
33
 #HideAgent	RealPlayer
34
 #HideAgent	RealPlayer
34
@@ -412,6 +419,11 @@
35
@@ -412,6 +420,11 @@
35
 #GroupReferrer	excite.com/     Excite
36
 #GroupReferrer	excite.com/     Excite
36
 #GroupReferrer	infoseek.com/   InfoSeek
37
 #GroupReferrer	infoseek.com/   InfoSeek
37
 #GroupReferrer	webcrawler.com/ WebCrawler
38
 #GroupReferrer	webcrawler.com/ WebCrawler
Lines 43-53 Link Here
43
 
44
 
44
 #GroupUser      root            Admin users
45
 #GroupUser      root            Admin users
45
 #GroupUser      admin           Admin users
46
 #GroupUser      admin           Admin users
46
@@ -530,6 +542,21 @@
47
@@ -531,6 +544,21 @@
47
 SearchEngine	mamma.com	query=
48
 SearchEngine	alltheweb.com	query=
48
 SearchEngine	alltheweb.com	query=
49
 SearchEngine	northernlight.com  qr=
49
 SearchEngine	northernlight.com  qr=
50
+
50
 
51
+SearchEngine	yahoo.co.jp	p=
51
+SearchEngine	yahoo.co.jp	p=
52
+SearchEngine	google.co.jp	q=
52
+SearchEngine	google.co.jp	q=
53
+SearchEngine	infoseek.co.jp	qt=
53
+SearchEngine	infoseek.co.jp	qt=
Lines 62-67 Link Here
62
+SearchEngine	jp.aol.com	query=
62
+SearchEngine	jp.aol.com	query=
63
+#SearchEngine	.google.	q=
63
+#SearchEngine	.google.	q=
64
+#SearchEngine	bulkfeeds.net	q=
64
+#SearchEngine	bulkfeeds.net	q=
65
 
65
+
66
 # The Dump* keywords allow the dumping of Sites, URL's, Referrers
66
 # The Dump* keywords allow the dumping of Sites, URL's, Referrers
67
 # User Agents, Usernames and Search strings to seperate tab delimited
67
 # User Agents, Usernames and Search strings to seperate tab delimited
68
 # text files, suitable for import into most database or spreadsheet
(-)webalizer/files/patch-sample.conf (-10 lines)
Lines 1-10 Link Here
1
--- sample.conf.orig	2000-09-29 05:51:42.000000000 +0200
2
+++ sample.conf	2007-11-10 15:34:15.000000000 +0100
3
@@ -153,6 +153,7 @@
4
 # is 80 characters, so use multiple lines if needed.
5
 
6
 #HTMLHead <META NAME="author" CONTENT="The Webalizer">
7
+HTMLHead <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
8
 
9
 # HTMLBody defined the HTML code to be inserted, starting with the
10
 # <BODY> tag.  If not specified, the default is shown below.  If
(-)webalizer/files/sample.conf.patch (+10 lines)
Line 0 Link Here
1
--- sample.conf.orig	2000-09-29 05:51:42.000000000 +0200
2
+++ sample.conf	2007-11-10 15:34:15.000000000 +0100
3
@@ -153,6 +153,7 @@
4
 # is 80 characters, so use multiple lines if needed.
5
 
6
 #HTMLHead <META NAME="author" CONTENT="The Webalizer">
7
+HTMLHead <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
8
 
9
 # HTMLBody defined the HTML code to be inserted, starting with the
10
 # <BODY> tag.  If not specified, the default is shown below.  If

Return to bug 119715