From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-admin/webalizer/webalizer-2.23.08.ebuild | 148 +++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 app-admin/webalizer/webalizer-2.23.08.ebuild (limited to 'app-admin/webalizer/webalizer-2.23.08.ebuild') 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..1df2ec806287 --- /dev/null +++ b/app-admin/webalizer/webalizer-2.23.08.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# uses webapp.eclass to create directories with right permissions +# probably slight overkill but works well + +EAPI="5" + +inherit versionator eutils webapp db-use + +WEBAPP_MANUAL_SLOT="yes" +XTENDED_VER="RB30" +XTENDED_URL="rb30" + +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 + xtended? ( http://patrickfrei.ch/webalizer/${XTENDED_URL}/${PN}-${MY_PV}-${XTENDED_VER}-patch.tar.gz ) + 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 xtended 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[png] + dev-libs/geoip + bzip2? ( app-arch/bzip2 )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${MY_P} + +pkg_setup() { + webapp_pkg_setup + + # 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_prepare() { + if use xtended; then + epatch "${WORKDIR}"/${PN}-${MY_PV}-${XTENDED_VER}-patch + 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 xtended; then + ewarn + ewarn "If you are upgrading webalizer from USE=-xtended to USE=xtended" + ewarn "you will need to delete webalizer.current and process all previous" + ewarn "days in the same month using 'webalizer /path/to/access_log.1'." + ewarn "For more information about using XTENDED webalizer, see:" + ewarn + ewarn " http://www.patrickfrei.ch/webalizer/rb30/INSTALL" + 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 +} -- cgit v1.2.3-65-gdbad