summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-02-01 15:53:16 +0000
committerAnthony G. Basile <blueness@gentoo.org>2014-02-01 15:53:16 +0000
commitbdc1d41f5d0f52556707d4e2455c67acdeb5afc4 (patch)
treebccde08d826dcb1f06ff7bfef5232d935d278bdc
parentRemove unused flag from metadata (diff)
downloadgentoo-2-bdc1d41f5d0f52556707d4e2455c67acdeb5afc4.tar.gz
gentoo-2-bdc1d41f5d0f52556707d4e2455c67acdeb5afc4.tar.bz2
gentoo-2-bdc1d41f5d0f52556707d4e2455c67acdeb5afc4.zip
Version bump, bug 99976
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
-rw-r--r--app-admin/webalizer/ChangeLog10
-rw-r--r--app-admin/webalizer/webalizer-2.23.08.ebuild129
2 files changed, 137 insertions, 2 deletions
diff --git a/app-admin/webalizer/ChangeLog b/app-admin/webalizer/ChangeLog
index b7725941c098..6643c80a6418 100644
--- a/app-admin/webalizer/ChangeLog
+++ b/app-admin/webalizer/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/webalizer
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.101 2013/07/20 05:37:14 jer Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.102 2014/02/01 15:53:16 blueness Exp $
+
+*webalizer-2.23.08 (01 Feb 2014)
+
+ 01 Feb 2014; Anthony G. Basile <blueness@gentoo.org>
+ +webalizer-2.23.08.ebuild:
+ Version bump, bug 99976
20 Jul 2013; Jeroen Roovers <jer@gentoo.org> webalizer-2.23.05.ebuild:
Spelling.
diff --git a/app-admin/webalizer/webalizer-2.23.08.ebuild b/app-admin/webalizer/webalizer-2.23.08.ebuild
new file mode 100644
index 000000000000..8d33cca975c3
--- /dev/null
+++ b/app-admin/webalizer/webalizer-2.23.08.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/webalizer-2.23.08.ebuild,v 1.1 2014/02/01 15:53:16 blueness Exp $
+
+# uses webapp.eclass to create directories with right permissions
+# probably slight overkill but works well
+
+EAPI="5"
+
+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}"
+
+GEODB_DATE="20140201"
+GEODB_URL="ftp://ftp.mrunix.net/pub/webalizer/geodb/"
+GEODB_DIR="/usr/share/webalizer/geodb"
+
+DESCRIPTION="Webserver log file analyzer"
+HOMEPAGE="http://www.webalizer.org/"
+SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/${MY_P}-src.tar.bz2
+ http://dev.gentoo.org/~blueness/webalizer/webalizer.conf.gz
+ ${GEODB_URL}/webalizer-geodb-${GEODB_DATE}.tgz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="bzip2 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
+ bzip2? ( app-arch/bzip2 )"
+RDEPEND="${DEPEND}"
+
+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) \
+ $(use_enable bzip2 bz2) \
+ --with-geodb=${GEODB_DIR} \
+ || die "econf failed"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dobin webalizer
+ dosym webalizer /usr/bin/webazolver
+ doman webalizer.1
+
+ insinto /etc
+ doins "${WORKDIR}"/${PN}.conf
+
+ insinto ${GEODB_DIR}
+ doins "${WORKDIR}"/GeoDB.dat
+
+ 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 package, 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
+
+ if use geoip; then
+ elog
+ elog "Note: we have installed the GeoDB.dat dated ${GEODB_DATE}."
+ elog "But you may want to upate to the latest version which is"
+ elog "available at ${GEODB_URL}. Replace the GeoDB.dat file in"
+ elog "${GEODB_DIR} with the newer version."
+ elog
+ fi
+
+ webapp_pkg_postinst
+}