diff options
author | 2010-03-10 17:15:39 +0000 | |
---|---|---|
committer | 2010-03-10 17:15:39 +0000 | |
commit | 65ee73802db5a5f2e774236c9680f35975064011 (patch) | |
tree | 1db0328912ec22b14796f551b4b64c554b0e4d76 /app-admin | |
parent | Bumped to EAPI=3, princepily prefix ready, adopt to current python situation,... (diff) | |
download | gentoo-2-65ee73802db5a5f2e774236c9680f35975064011.tar.gz gentoo-2-65ee73802db5a5f2e774236c9680f35975064011.tar.bz2 gentoo-2-65ee73802db5a5f2e774236c9680f35975064011.zip |
app-admin/webalizer: Bump to 2.21.02 (bug #231859)
(Portage version: 2.2_rc66/cvs/Linux i686)
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/webalizer/ChangeLog | 9 | ||||
-rw-r--r-- | app-admin/webalizer/webalizer-2.21.02.ebuild | 110 |
2 files changed, 118 insertions, 1 deletions
diff --git a/app-admin/webalizer/ChangeLog b/app-admin/webalizer/ChangeLog index 3e4f07077d0c..503ae5ada3bd 100644 --- a/app-admin/webalizer/ChangeLog +++ b/app-admin/webalizer/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-admin/webalizer # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.76 2010/03/10 16:50:36 sping Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.77 2010/03/10 17:15:39 sping Exp $ + +*webalizer-2.21.02 (10 Mar 2010) + + 10 Mar 2010; Sebastian Pipping <sping@gentoo.org> + +webalizer-2.21.02.ebuild: + Bump to 2.21.02 (bug #231859) + geolizer and webalizer xtended now have dedicated packages 10 Mar 2010; Sebastian Pipping <sping@gentoo.org> webalizer-2.01.10-r15.ebuild, webalizer-2.01.10-r16.ebuild, diff --git a/app-admin/webalizer/webalizer-2.21.02.ebuild b/app-admin/webalizer/webalizer-2.21.02.ebuild new file mode 100644 index 000000000000..560f8c1d79d3 --- /dev/null +++ b/app-admin/webalizer/webalizer-2.21.02.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/webalizer-2.21.02.ebuild,v 1.1 2010/03/10 17:15:39 sping Exp $ + +# uses webapp.eclass to create directories with right permissions +# probably slight overkill but works well + +EAPI="2" + +inherit versionator confutils eutils webapp db-use + +WEBAPP_MANUAL_SLOT="yes" + +MY_PV="$(get_version_component_range 1-2)-$(get_version_component_range 3)" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Webserver log file analyzer" +HOMEPAGE="http://www.mrunix.net/webalizer/" +SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/${MY_P}-src.tar.bz2 + mirror://gentoo/${PN}.conf.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="geoip nls" +SLOT="0" + +DEPEND=">=sys-libs/db-4.2 + >=sys-libs/zlib-1.1.4 + >=media-libs/libpng-1.2 + >=media-libs/gd-1.8.3 + dev-libs/geoip" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + webapp_pkg_setup + confutils_require_built_with_all media-libs/gd png + + # USE=nls has no real meaning if LINGUAS isn't set + if use nls && [[ -z "${LINGUAS}" ]]; then + ewarn "you must set LINGUAS in /etc/make.conf" + ewarn "if you want to USE=nls" + die "please either set LINGUAS or do not use nls" + fi +} + +src_configure() { + # really dirty hack; necessary due to a really gross ./configure + # basically, it just sets the natural language the program uses + # unfortunatly, this program only allows for one lang, so only the first + # entry in LINGUAS is used + if use nls; then + local longlang="$(grep ^${LINGUAS:0:2} "${FILESDIR}"/webalizer-language-list.txt)" + local myconf="${myconf} --with-language=${longlang:3}" + else + local myconf="${myconf} --with-language=english" + fi + + econf --enable-dns \ + --with-db=$(db_includedir) \ + --with-dblib=$(db_libname) \ + ${myconf} \ + $(use_enable geoip) \ + --with-geodb=/usr/share/webalizer/geodb \ + || die "econf failed" +} + +src_install() { + webapp_src_preinst + + dobin webalizer + dosym webalizer /usr/bin/webazolver + doman webalizer.1 + + insinto /etc + doins "${WORKDIR}"/${PN}.conf + dosed "s/apache/apache2/g" /etc/webalizer.conf + + dodoc CHANGES *README* INSTALL sample.conf "${FILESDIR}"/apache.webalizer + + webapp_src_install +} + +pkg_postinst() { + elog + elog "It is suggested that you restart apache before using webalizer" + elog "You may want to review /etc/webalizer.conf and ensure that" + elog "OutputDir is set correctly" + elog + elog "Then just type webalizer to generate your stats." + elog "You can also use cron to generate them e.g. every day." + elog "They can be accessed via http://localhost/webalizer" + elog + elog "A sample Apache config file has been installed into" + elog "/usr/share/doc/${PF}/apache.webalizer" + elog "Please edit and install it as necessary" + elog + + if [[ ${#LINGUAS} -gt 2 ]] && use nls; then + ewarn + ewarn "You have more than one language in LINGUAS" + ewarn "Due to the limitations of this packge, it was built" + ewarn "only with ${LINGUAS:0:2} support. If this is not what" + ewarn "you intended, please place the language you desire" + ewarn "_first_ in the list of LINGUAS in /etc/make.conf" + ewarn + fi + + webapp_pkg_postinst +} |