Gentoo Archives: gentoo-commits

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