diff options
Diffstat (limited to 'app-admin/webalizer')
-rw-r--r-- | app-admin/webalizer/Manifest | 14 | ||||
-rw-r--r-- | app-admin/webalizer/files/apache.webalizer | 9 | ||||
-rw-r--r-- | app-admin/webalizer/files/webalizer-language-list.txt | 136 | ||||
-rw-r--r-- | app-admin/webalizer/metadata.xml | 15 | ||||
-rw-r--r-- | app-admin/webalizer/webalizer-2.23.05.ebuild | 133 | ||||
-rw-r--r-- | app-admin/webalizer/webalizer-2.23.08.ebuild | 147 |
6 files changed, 454 insertions, 0 deletions
diff --git a/app-admin/webalizer/Manifest b/app-admin/webalizer/Manifest new file mode 100644 index 000000000000..7aaab2eeff64 --- /dev/null +++ b/app-admin/webalizer/Manifest @@ -0,0 +1,14 @@ +AUX apache.webalizer 203 SHA256 9cc52c0cd26f7163388d9867f1d518abe9f0954389d64722222bece5d5adb56b SHA512 19145c1d74322f2f6724bde7c5ef0c0111489566ba3ba8dcdeba38681332250e77e26652ccc2b6ff1a41f7dc7795c34a4c5e189cf92b24fe0ad544c4afac40b0 WHIRLPOOL fc31cd0cb30112c5a4f7e969e1771e081e13f14ec01def10c20644b99cc2a1cfa6f68804c942e584fd2471da3cfb435ae5c4486d3321a3e84c1a8c74e420ed69 +AUX webalizer-language-list.txt 1520 SHA256 9b946e766fdecccbbd480f520bd610afad78316aba4e7e0cea237da43039efd4 SHA512 52abca2565a8d06d8bf538b8c168b32dbb065e655a4c849d6ff1e1299c4e84d6f9717b7e74ef730a9c68cd63f2d03232ae5c9d1ba391f68e3f1314444e41c29a WHIRLPOOL 6a13c2336b59a6e7f693f3133b2e080fd9d135fd837eb1811677c982ec4f5b4d35fbdf55aa22079f814ce1d8d618ec09ff2a4f58a2947332ac0cee304757b4f1 +DIST webalizer-2.23-05-RB29-patch.tar.gz 45853 SHA256 e212d1928315805b655bcb2614cf9e128373c80601ed6b7ee82ae6d050232a44 SHA512 967a5418e858adb5be8b64bac7edb52ac6eca8bce567269866f2ae7ac6e34c09d2d0ab1d7e7cfcbd92972cf5ea05ac2abaea2058e6fa9273e27cf10aacfb4759 WHIRLPOOL 2ac54d38f160e4311b240e00e6b33c0523341418a32190a3fdd2ba13a226fd53c986ea6d8e127f3444dec03c2801d984964f08141ee8e329e198dde520a6e76c +DIST webalizer-2.23-05-src.tar.bz2 308238 SHA256 afc88b8ee0927d9ed004962cb7e3d3054ef7628c7bc8a7b2e3ea1d758a47885a SHA512 4840c2ba25e34d5e276c724c311d2c2d7a0223dcbf6dec567960f56bc4cdfe4f6a1e412e3fcab53395d6357377f4f8d2b3bcc4b23c46a3ec6a895813a681cd4b WHIRLPOOL 82e092ae6e21e3bd3f70cd53a2dc6b71ed3903f640d7e4d2aa5be81ad43cf8aea54f0dd1d3fc02f55a615b1b9208ec339ccadcfa342737e61ebb0404f7fddfe1 +DIST webalizer-2.23-08-RB30-patch.tar.gz 45723 SHA256 cfd12f33a869e6eb2cf94165a75f733f205d85ba78345ce35b0b1bbce1a6aa93 SHA512 142674cb7de6e1833ed9bf7587d5d3b1fce64eb95b7448392d0e8ec6e89dcd69cdb6900b75db9c283b19e5423392f76565b5ad279748da656ed2061fb180c949 WHIRLPOOL 639be013978da35219f06866475268a89ae098d9ad10d43e4d03d8610c0d485c9ea47ed61ee41182d012841aa093babae334ec83ff5b941081c1afe3e0e545f2 +DIST webalizer-2.23-08-src.tar.bz2 308090 SHA256 b37524fbd98e97052a80d59f75e69f857468752cf74cc0eb0972e5fab02eb6f7 SHA512 23fe6e3ef1c85aa527ffafef16c31c13ad8e1f9feb774557c07a5c8fd6c67986b98180ef16d6cebe62d59c5f7ca214b8292e94ce8f195fa0541de9c5438fb9bd WHIRLPOOL 78f16d7a0bc0eda3cc03b2f9e62d5a722d9aa0935ed17b7ce102f3b3634e3b20476c80305dc887cfcc6a858fd0898e1e456d2cf9bf3275a854c8ab7ee126f779 +DIST webalizer-geodb-20140201.tgz 733070 SHA256 27abf8f48c76e63deae2ea86cd2c2ebe8ddd41a493d57289ae3a56ba1c7e5aaf SHA512 c31bbf39ab2a27712f83e7c1cf4297bc26850ed72e68bb4b47233b062055cf26931e859cdbc70dfa7737e17a3c05d4858b4e9c9c3a0492b0b285f92c0f992223 WHIRLPOOL 33ee071e70219abee3c794e3b60d18a1cfe7ed83495b41355b270398c696e8688f25155ee8e5b9d37f92da41904367d904ab91f565ba5005d32f401350a3b93d +DIST webalizer-geodb-latest.tgz 639447 SHA256 f2a1bd7fcc9c93ed6a627bd15f2c31866d5a6c6b7dd48852d84a129386327218 SHA512 0f32d1249902e17f37cd0e7680004262bbe5b4a34a00d882319258c6aed80503e89ed192d8365731ab507fa54560082ae16c7023d0bc2232350709106be24117 WHIRLPOOL 26f1edf87ea6102c5047b41702fd273d40360bde7c481183a3303e2c89af3d6ba7470cd942d4af1574bed8822b776a26ea13c2388b7654fffccee856cc99e571 +DIST webalizer.conf.gz 8986 SHA256 b7da31865a8c13a66756247d68242d6478900f2c2b9b5698ed35c0c613fb9a71 SHA512 ec7f815e0215116d72e6d93b471a4b86a1c152a8ebae7c374144cabeeb06750d3a39fde65faf069e9aeb133f27b0b4cdee16bed5442e7fbd4eb4f45a4f3cd84b WHIRLPOOL 58c2ced08eeba65e1c7acf951e2e0e1806af58fcd37997c4d824504235303d7f75cf6c05c7ce051e2e2f3b3abff9a929f0dfd7722a995a8ab65232cfb549e83a +EBUILD webalizer-2.23.05.ebuild 3813 SHA256 c2c7da1fb09f0e75cedc13b29239ed895f65292529db8720e3e4671defdb4040 SHA512 c81bdbb98168cb608c9eee163e71dbea85c487f16034fad1d772880f6b0b5350aa071fc5f3e870eaf49e8bfa5c6354c31c93866d8faaff9cec0843993afcde24 WHIRLPOOL 611dcb39ca3c13bb23f9d515f6b82020d3b47ed02de3e32a8715c3536dede0cf89bac240d923796183067ed92cdb51f90756a2ea8399e7e44c92fa248b56c7b1 +EBUILD webalizer-2.23.08.ebuild 4225 SHA256 09d68235077da9545f9d6da16e11869ec9529a6a0b8d6c19c94559876401cf43 SHA512 a96bd5fb52a69e9b581ace1bde54b8bf16743955cb09e130e4cf022bb77e4afb49495c9d5437a26568bd92376f24b3f545112f50c3abdfdef72c904a53aa6b11 WHIRLPOOL eb90481fd6b2911be3b8cd9ac63993481d48abfe8bb355997b7634c223f0d33cbc165a8d7bd5183fa2528d6dc01b793774475c06398db96c069234d7bcad0fc8 +MISC ChangeLog 3112 SHA256 906d60fe61fa728588a847d072435782e879a0392f1cd6f44f5d610e369f83a3 SHA512 b7748d748e8572d6ad7245c1dbd49866c919e636e94f88daf0b3d7acd945e61449692f28906213b4811c709d1ad2484c57955479d9e7b92421a2f4d62f0a44ec WHIRLPOOL 014cf0aeb13f2ae64041b56b64a16452ba167bee0f692d492f3834eb9b392bbabecbf4098b3580e8e911a11cad458a24e22bbffcbad98d5c2d210f3872ead9a5 +MISC ChangeLog-2015 15301 SHA256 5e37a935347f1ac8d4f87ff5cd8c12b348dbf8bc8eac3cc5c4f9b5517bcf96b3 SHA512 f34763f8579ea4ec1fd2d0896c5fa8714146dcb514995640def311e085626c493540716b90644c6bcc2070402199b0141e2629680d4ac22aad69309bd8b5003f WHIRLPOOL 969e84ce3490f49ee4622d7ccf9322373f456dfcf5ca36d2656f6af036d10a359f069718a43ddbc461b6fca9bf40d25c271a5e80a9c533866e26653e87eaf6f8 +MISC metadata.xml 434 SHA256 022b6104c0d41a25ba2a6e75bfcd27eb29420d8753fe7d53a6be55a5771febe3 SHA512 9d006c56a0019b4ea29e8f9f845ca9006ecdccf64b9e50c343420af4b3852b5c08f09a23d792c3d1454454f8a0696a0dbc4b36b4da2c6f0d4967f533ad3a3149 WHIRLPOOL d153a94cf7d8636cc62fd7865d480a680838039aea5926d59fbcd184e3af318c787cd03735442bb6155414043f41b71a33def70dd33ebb80410f798c9548dd21 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.05.ebuild b/app-admin/webalizer/webalizer-2.23.05.ebuild new file mode 100644 index 000000000000..5dbba1424e70 --- /dev/null +++ b/app-admin/webalizer/webalizer-2.23.05.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2017 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="2" + +inherit versionator eutils webapp db-use + +WEBAPP_MANUAL_SLOT="yes" +XTENDED_VER="RB29" +XTENDED_URL="rb29" + +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.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 ) + ftp://ftp.mrunix.net/pub/webalizer/webalizer-geodb-latest.tgz + mirror://gentoo/${PN}.conf.gz" + +LICENSE="GPL-2" +KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 ~sparc x86" +IUSE="geoip nls xtended" +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" +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) \ + --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 + + insinto /usr/share/webalizer/geodb + 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/rb15/INSTALL" + ewarn + fi + + webapp_pkg_postinst +} 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..d46677fe626d --- /dev/null +++ b/app-admin/webalizer/webalizer-2.23.08.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2017 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 +} |