summaryrefslogtreecommitdiff
path: root/app-admin/webalizer
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/webalizer')
-rw-r--r--app-admin/webalizer/Manifest8
-rw-r--r--app-admin/webalizer/files/apache.webalizer9
-rw-r--r--app-admin/webalizer/files/webalizer-language-list.txt136
-rw-r--r--app-admin/webalizer/metadata.xml15
-rw-r--r--app-admin/webalizer/webalizer-2.23.08.ebuild147
5 files changed, 315 insertions, 0 deletions
diff --git a/app-admin/webalizer/Manifest b/app-admin/webalizer/Manifest
new file mode 100644
index 000000000000..18c5742e9050
--- /dev/null
+++ b/app-admin/webalizer/Manifest
@@ -0,0 +1,8 @@
+AUX apache.webalizer 203 BLAKE2B fd92b85d0cd5a3bb0118ca3e47f616aa4f68cf3b954d1a8ad21ccc3cd229cc66e12e7f461497eb740c9a5ad5b34f8cf4c81d7e86e9725d6789568d15de10265c SHA512 19145c1d74322f2f6724bde7c5ef0c0111489566ba3ba8dcdeba38681332250e77e26652ccc2b6ff1a41f7dc7795c34a4c5e189cf92b24fe0ad544c4afac40b0
+AUX webalizer-language-list.txt 1520 BLAKE2B 303cffa208d2375c37b3f105a67d22cde6612219ddba20e816fb64ec4eee98b6dcbec0e534402587a108c805b0de3b67ad99d46103dae46f507b319f11ba117f SHA512 52abca2565a8d06d8bf538b8c168b32dbb065e655a4c849d6ff1e1299c4e84d6f9717b7e74ef730a9c68cd63f2d03232ae5c9d1ba391f68e3f1314444e41c29a
+DIST webalizer-2.23-08-RB30-patch.tar.gz 45723 BLAKE2B 510e984121cc5109e442184010edb0e2fbb7bb9738297c0689acd32e55a1720bdf7bcea3a21cc73aa8ecd0b9d0a8b1a7b336227003dee5abfff9d5288a5250d7 SHA512 142674cb7de6e1833ed9bf7587d5d3b1fce64eb95b7448392d0e8ec6e89dcd69cdb6900b75db9c283b19e5423392f76565b5ad279748da656ed2061fb180c949
+DIST webalizer-2.23-08-src.tar.bz2 308090 BLAKE2B 84f56b8b6a7e2b382040649ca8c6b6b7b57de92a09922253473f6cf920a4dd10a2c268b926c0cdd4fcf029dbbe39d629eecbd74cc42f62c018a00c3cc86c4f7d SHA512 23fe6e3ef1c85aa527ffafef16c31c13ad8e1f9feb774557c07a5c8fd6c67986b98180ef16d6cebe62d59c5f7ca214b8292e94ce8f195fa0541de9c5438fb9bd
+DIST webalizer-geodb-20140201.tgz 733070 BLAKE2B fd97dfd14e2fcbc6c97d6cb423c922d6bf7504f156fb61fb11319094a4d2e25fd8fa2623f419b57d06ef0762a507799cfd750a5e3a86a143aa1afcc790942cae SHA512 c31bbf39ab2a27712f83e7c1cf4297bc26850ed72e68bb4b47233b062055cf26931e859cdbc70dfa7737e17a3c05d4858b4e9c9c3a0492b0b285f92c0f992223
+DIST webalizer.conf.gz 8986 BLAKE2B 6cee5f96c31a189bf7ce75ec845081d9a2f0e547362d415c84f78f1ddaa8e3ffd327517968037ac1606a485d9cba740054bb9851065d0ea03739b5558c7ef6f9 SHA512 ec7f815e0215116d72e6d93b471a4b86a1c152a8ebae7c374144cabeeb06750d3a39fde65faf069e9aeb133f27b0b4cdee16bed5442e7fbd4eb4f45a4f3cd84b
+EBUILD webalizer-2.23.08.ebuild 4222 BLAKE2B abf62b488d87de185333e3900fe995400416acca263ede382d5da791304d154d95d0651a4531d453fbcf9d674f5733585044ba428bf80705bc13c1573310067d SHA512 8267cb7a29cb7cb006a631b6e04cb01c701f14c602ede2a0ab0dd40da6d15edc70adf118a2fcc4561cc8db975c71642f9fb97e99dfaa44ee5957d8eade13f862
+MISC metadata.xml 434 BLAKE2B 72cde450aa4735601e14978c5bfc3be91f257907988e6017dc27f7aca8dad9b8586dc78943d69a10344d25d2435fb8394b5fe1239a0ea7ff2ae3ae2b26ba0eec SHA512 9d006c56a0019b4ea29e8f9f845ca9006ecdccf64b9e50c343420af4b3852b5c08f09a23d792c3d1454454f8a0696a0dbc4b36b4da2c6f0d4967f533ad3a3149
diff --git a/app-admin/webalizer/files/apache.webalizer b/app-admin/webalizer/files/apache.webalizer
new file mode 100644
index 000000000000..0dbab4111a92
--- /dev/null
+++ b/app-admin/webalizer/files/apache.webalizer
@@ -0,0 +1,9 @@
+# This is the config snippet for Webalizer
+<Directory "/var/www/localhost/htdocs/webalizer">
+ Options None
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+</Directory>
+
+# vim: ts=4 filetype=apache
diff --git a/app-admin/webalizer/files/webalizer-language-list.txt b/app-admin/webalizer/files/webalizer-language-list.txt
new file mode 100644
index 000000000000..ed9e3232417b
--- /dev/null
+++ b/app-admin/webalizer/files/webalizer-language-list.txt
@@ -0,0 +1,136 @@
+aa afar
+ab abkhazian
+af afrikaans
+am amharic
+ar arabic
+as assamese
+ay aymara
+az azerbaijani
+ba bashkir
+be byelorussian
+bg bulgarian
+bh bihari
+bi bislama
+bn bengali
+bo tibetan
+br breton
+ca catalan
+co corsican
+cs czech
+cy welsh
+da danish
+de german
+dz bhutani
+el greek
+en english
+eo esperanto
+es spanish
+et estonian
+eu basque
+fa persian
+fi finnish
+fj fiji
+fo faeroese
+fr french
+fy frisian
+ga irish
+gd gaelic
+gl galician
+gn guarani
+gu gujarati
+ha hausa
+hi hindi
+hr croatian
+hu hungarian
+hy armenian
+ia interlingua
+ie interlingue
+ik inupiak
+in indonesian
+is icelandic
+it italian
+iw hebrew
+ja japanese
+ji yiddish
+jw javanese
+ka georgian
+kk kazakh
+kl greenlandic
+km cambodian
+kn kannada
+ko korean
+ks kashmiri
+ku kurdish
+ky kirghiz
+la latin
+ln lingala
+lo laothian
+lt lithuanian
+lv latvian
+mg malagasy
+mi maori
+mk macedonian
+ml malayalam
+mn mongolian
+mo moldavian
+mr marathi
+ms malay
+mt maltese
+my burmese
+na nauru
+ne nepali
+nl dutch
+no norwegian
+oc occitan
+om oromo afan
+or oriya
+pa punjabi
+pl polish
+ps pashto
+pt portuguese
+qu quechua
+rm rhaeto-romance
+rn kirundi
+ro romanian
+ru russian
+rw kinyarwanda
+sa sanskrit
+sd sindhi
+sg sangro
+sh serbo-croatian
+si singhalese
+sk slovak
+sl slovenian
+sm samoan
+sn shona
+so somali
+sq albanian
+sr serbian
+ss siswati
+st sesotho
+su sudanese
+sv swedish
+sw swahili
+ta tamil
+te tegulu
+tg tajik
+th thai
+ti tigrinya
+tk turkmen
+tl tagalog
+tn setswana
+to tonga
+tr turkish
+ts tsonga
+tt tatar
+tw twi
+uk ukrainian
+ur urdu
+uz uzbek
+vi vietnamese
+vo volapuk
+wo wolof
+xh xhosa
+yo yoruba
+zh chinese
+zu zulu
diff --git a/app-admin/webalizer/metadata.xml b/app-admin/webalizer/metadata.xml
new file mode 100644
index 000000000000..dc3cf7c59bb9
--- /dev/null
+++ b/app-admin/webalizer/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>web-apps@gentoo.org</email>
+ <name>Gentoo Webapps</name>
+ </maintainer>
+ <use>
+ <flag name="xtended">Include the 404 extension</flag>
+ </use>
+</pkgmetadata>
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..605bbadefb1f
--- /dev/null
+++ b/app-admin/webalizer/webalizer-2.23.08.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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 )
+ https://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:0=
+ >=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/portage/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/portage/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
+}