1 |
blueness 14/02/01 15:53:16 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: webalizer-2.23.08.ebuild |
5 |
Log: |
6 |
Version bump, bug 99976 |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
9 |
|
10 |
Revision Changes Path |
11 |
1.102 app-admin/webalizer/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/webalizer/ChangeLog?rev=1.102&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/webalizer/ChangeLog?rev=1.102&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/webalizer/ChangeLog?r1=1.101&r2=1.102 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v |
20 |
retrieving revision 1.101 |
21 |
retrieving revision 1.102 |
22 |
diff -u -r1.101 -r1.102 |
23 |
--- ChangeLog 20 Jul 2013 05:37:14 -0000 1.101 |
24 |
+++ ChangeLog 1 Feb 2014 15:53:16 -0000 1.102 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-admin/webalizer |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.101 2013/07/20 05:37:14 jer Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.102 2014/02/01 15:53:16 blueness Exp $ |
31 |
+ |
32 |
+*webalizer-2.23.08 (01 Feb 2014) |
33 |
+ |
34 |
+ 01 Feb 2014; Anthony G. Basile <blueness@g.o> |
35 |
+ +webalizer-2.23.08.ebuild: |
36 |
+ Version bump, bug 99976 |
37 |
|
38 |
20 Jul 2013; Jeroen Roovers <jer@g.o> webalizer-2.23.05.ebuild: |
39 |
Spelling. |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-admin/webalizer/webalizer-2.23.08.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/webalizer/webalizer-2.23.08.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/webalizer/webalizer-2.23.08.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: webalizer-2.23.08.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/webalizer-2.23.08.ebuild,v 1.1 2014/02/01 15:53:16 blueness Exp $ |
53 |
|
54 |
# uses webapp.eclass to create directories with right permissions |
55 |
# probably slight overkill but works well |
56 |
|
57 |
EAPI="5" |
58 |
|
59 |
inherit versionator confutils eutils webapp db-use |
60 |
|
61 |
WEBAPP_MANUAL_SLOT="yes" |
62 |
|
63 |
MY_PV="$(get_version_component_range 1-2)-$(get_version_component_range 3)" |
64 |
MY_P="${PN}-${MY_PV}" |
65 |
|
66 |
GEODB_DATE="20140201" |
67 |
GEODB_URL="ftp://ftp.mrunix.net/pub/webalizer/geodb/" |
68 |
GEODB_DIR="/usr/share/webalizer/geodb" |
69 |
|
70 |
DESCRIPTION="Webserver log file analyzer" |
71 |
HOMEPAGE="http://www.webalizer.org/" |
72 |
SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/${MY_P}-src.tar.bz2 |
73 |
http://dev.gentoo.org/~blueness/webalizer/webalizer.conf.gz |
74 |
${GEODB_URL}/webalizer-geodb-${GEODB_DATE}.tgz" |
75 |
|
76 |
LICENSE="GPL-2" |
77 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
78 |
IUSE="bzip2 geoip nls" |
79 |
SLOT="0" |
80 |
|
81 |
DEPEND=">=sys-libs/db-4.2 |
82 |
>=sys-libs/zlib-1.1.4 |
83 |
>=media-libs/libpng-1.2 |
84 |
>=media-libs/gd-1.8.3 |
85 |
dev-libs/geoip |
86 |
bzip2? ( app-arch/bzip2 )" |
87 |
RDEPEND="${DEPEND}" |
88 |
|
89 |
S="${WORKDIR}"/${MY_P} |
90 |
|
91 |
pkg_setup() { |
92 |
webapp_pkg_setup |
93 |
confutils_require_built_with_all media-libs/gd png |
94 |
|
95 |
# USE=nls has no real meaning if LINGUAS isn't set |
96 |
if use nls && [[ -z "${LINGUAS}" ]]; then |
97 |
ewarn "you must set LINGUAS in /etc/make.conf" |
98 |
ewarn "if you want to USE=nls" |
99 |
die "please either set LINGUAS or do not use nls" |
100 |
fi |
101 |
} |
102 |
|
103 |
src_configure() { |
104 |
# really dirty hack; necessary due to a really gross ./configure |
105 |
# basically, it just sets the natural language the program uses |
106 |
# unfortunatly, this program only allows for one lang, so only the first |
107 |
# entry in LINGUAS is used |
108 |
if use nls; then |
109 |
local longlang="$(grep ^${LINGUAS:0:2} "${FILESDIR}"/webalizer-language-list.txt)" |
110 |
local myconf="${myconf} --with-language=${longlang:3}" |
111 |
else |
112 |
local myconf="${myconf} --with-language=english" |
113 |
fi |
114 |
|
115 |
econf --enable-dns \ |
116 |
--with-db=$(db_includedir) \ |
117 |
--with-dblib=$(db_libname) \ |
118 |
${myconf} \ |
119 |
$(use_enable geoip) \ |
120 |
$(use_enable bzip2 bz2) \ |
121 |
--with-geodb=${GEODB_DIR} \ |
122 |
|| die "econf failed" |
123 |
} |
124 |
|
125 |
src_install() { |
126 |
webapp_src_preinst |
127 |
|
128 |
dobin webalizer |
129 |
dosym webalizer /usr/bin/webazolver |
130 |
doman webalizer.1 |
131 |
|
132 |
insinto /etc |
133 |
doins "${WORKDIR}"/${PN}.conf |
134 |
|
135 |
insinto ${GEODB_DIR} |
136 |
doins "${WORKDIR}"/GeoDB.dat |
137 |
|
138 |
dodoc CHANGES *README* INSTALL sample.conf "${FILESDIR}"/apache.webalizer |
139 |
|
140 |
webapp_src_install |
141 |
} |
142 |
|
143 |
pkg_postinst() { |
144 |
elog |
145 |
elog "It is suggested that you restart apache before using webalizer" |
146 |
elog "You may want to review /etc/webalizer.conf and ensure that" |
147 |
elog "OutputDir is set correctly" |
148 |
elog |
149 |
elog "Then just type webalizer to generate your stats." |
150 |
elog "You can also use cron to generate them e.g. every day." |
151 |
elog "They can be accessed via http://localhost/webalizer" |
152 |
elog |
153 |
elog "A sample Apache config file has been installed into" |
154 |
elog "/usr/share/doc/${PF}/apache.webalizer" |
155 |
elog "Please edit and install it as necessary" |
156 |
elog |
157 |
|
158 |
if [[ ${#LINGUAS} -gt 2 ]] && use nls; then |
159 |
ewarn |
160 |
ewarn "You have more than one language in LINGUAS" |
161 |
ewarn "Due to the limitations of this package, it was built" |
162 |
ewarn "only with ${LINGUAS:0:2} support. If this is not what" |
163 |
ewarn "you intended, please place the language you desire" |
164 |
ewarn "_first_ in the list of LINGUAS in /etc/make.conf" |
165 |
ewarn |
166 |
fi |
167 |
|
168 |
if use geoip; then |
169 |
elog |
170 |
elog "Note: we have installed the GeoDB.dat dated ${GEODB_DATE}." |
171 |
elog "But you may want to upate to the latest version which is" |
172 |
elog "available at ${GEODB_URL}. Replace the GeoDB.dat file in" |
173 |
elog "${GEODB_DIR} with the newer version." |
174 |
elog |
175 |
fi |
176 |
|
177 |
webapp_pkg_postinst |
178 |
} |