diff options
author | Sebastian Pipping <sping@gentoo.org> | 2010-03-10 16:42:44 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2010-03-10 16:42:44 +0000 |
commit | 6b72ee2827ec2dfb660f7e904a61cf87a15881e6 (patch) | |
tree | 2b1fbae668957593d1383e8beadaa12af9106a2d /app-admin/webalizer-xtended | |
parent | Fix building with libpng14. (diff) | |
download | historical-6b72ee2827ec2dfb660f7e904a61cf87a15881e6.tar.gz historical-6b72ee2827ec2dfb660f7e904a61cf87a15881e6.tar.bz2 historical-6b72ee2827ec2dfb660f7e904a61cf87a15881e6.zip |
app-admin/webalizer-xtended: New package split off from webalizer
Package-Manager: portage-2.2_rc66/cvs/Linux i686
Diffstat (limited to 'app-admin/webalizer-xtended')
8 files changed, 388 insertions, 0 deletions
diff --git a/app-admin/webalizer-xtended/ChangeLog b/app-admin/webalizer-xtended/ChangeLog new file mode 100644 index 000000000000..a796ee68154e --- /dev/null +++ b/app-admin/webalizer-xtended/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for app-admin/webalizer-xtended +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer-xtended/ChangeLog,v 1.1 2010/03/10 16:42:44 sping Exp $ + +*webalizer-xtended-2.01.10_p21 (10 Mar 2010) + + 10 Mar 2010; Sebastian Pipping <sping@gentoo.org> + +webalizer-xtended-2.01.10_p21.ebuild, + +files/webalizer-xtended-2.01.10_p21-etc-webalizer-xtended-conf.patch, + +files/apache.webalizer-xtended, +files/webalizer-db4.2.patch, + +files/webalizer-language-list.txt, +metadata.xml: + New package split off from webalizer + diff --git a/app-admin/webalizer-xtended/Manifest b/app-admin/webalizer-xtended/Manifest new file mode 100644 index 000000000000..844601505bca --- /dev/null +++ b/app-admin/webalizer-xtended/Manifest @@ -0,0 +1,10 @@ +AUX apache.webalizer-xtended 219 RMD160 ae431a479361d1b8bedf69afb3772c2fabdf4e2d SHA1 3de8b01916c6a021a4b70fb67a52e15cdb0ab2e2 SHA256 e393c989a5f16d94d830cab6dca68e0b5a3a9a59d929a74c555afffe56507a78 +AUX webalizer-db4.2.patch 645 RMD160 21d9f26c3af35e0fb2c04f65804dc6b7e9aead8c SHA1 00e9cbb99c271b77247eab831ffab5ffbd17c0ee SHA256 46bf2db93b155bd0c29a86fd9a77dc122c205b6cb9f7387c137ff196c29ad3f2 +AUX webalizer-language-list.txt 1520 RMD160 27d981a14e0bab35b036f386c3d2e716d3b29455 SHA1 0563e9b42eb63ca24d6dacf48126f0a9ec1a5a16 SHA256 9b946e766fdecccbbd480f520bd610afad78316aba4e7e0cea237da43039efd4 +AUX webalizer-xtended-2.01.10_p21-etc-webalizer-xtended-conf.patch 2854 RMD160 0c9ac22c98a13b56e64027805e2a6e9d5640ade5 SHA1 af64ca4e2765c5ee9c4e1bc2388ad92ac45fac20 SHA256 eee7d0102516fb2e31c045e229b007bee38605fa6bd7c7527a4148fafcbc484e +DIST webalizer-2.01-10-RB21-patch.tar.gz 585340 RMD160 bfd020cf078342ebc5b660793a6eb5486ff46edb SHA1 6d70e043368e3d459f6f053580f8b9da6a0a82aa SHA256 6ac3bfcba695e0c124ea3bc23581e0d7a14d2cda05caf47beb6b09bdfcf3541d +DIST webalizer-2.01-10-src.tar.bz2 252664 RMD160 4605ff9bd8ec1c74680b8fbfe703f2e81ae68e20 SHA1 fbf6ad78fc2b0189d065e661dc02a781e858b31a SHA256 f339e4b8879aeade0f889b7bc7eb85854a7746a16b267c4aa985cd5b8a112262 +DIST webalizer.conf.gz 8986 RMD160 61751fa52c4e4bc29a8c3ba5956daf0a45138ec5 SHA1 557406236b10630fb213b12ef30c810a76eac6e5 SHA256 b7da31865a8c13a66756247d68242d6478900f2c2b9b5698ed35c0c613fb9a71 +EBUILD webalizer-xtended-2.01.10_p21.ebuild 4046 RMD160 d7e7d99298aaa0d80e8c111baf0298c089110810 SHA1 7692f0e7e3e7f1289a4a4b7a8096c4eade342235 SHA256 6cae33164d447d12e666b6dc21e8225e891af569d270f8cd646008e1d8b95ffe +MISC ChangeLog 596 RMD160 e835ccaa28f333ac7872aa736eb70a01aa04f097 SHA1 62e66b6dd24cb3de422abaebce1cbacace6a13ce SHA256 51bab36e63bd5d2711a44d79acbc033f3a4e035f3427600d49dd41f7575b2ecb +MISC metadata.xml 162 RMD160 0b015f5ff17c4d8e7aee826d48b326cc19b1fed4 SHA1 671b30dafbea01228c8bb606af451a0795922840 SHA256 84ff2fc6c9a4af1b9dbe32aa81ab84c2958bc1bd65a9977686df2dcab6e420d0 diff --git a/app-admin/webalizer-xtended/files/apache.webalizer-xtended b/app-admin/webalizer-xtended/files/apache.webalizer-xtended new file mode 100644 index 000000000000..a9f499d19bda --- /dev/null +++ b/app-admin/webalizer-xtended/files/apache.webalizer-xtended @@ -0,0 +1,9 @@ +# This is the config snippet for Webalizer Xtended +<Directory "/var/www/localhost/htdocs/webalizer-xtended"> + Options None + AllowOverride None + Order allow,deny + Allow from all +</Directory> + +# vim: ts=4 filetype=apache diff --git a/app-admin/webalizer-xtended/files/webalizer-db4.2.patch b/app-admin/webalizer-xtended/files/webalizer-db4.2.patch new file mode 100644 index 000000000000..be792289108f --- /dev/null +++ b/app-admin/webalizer-xtended/files/webalizer-db4.2.patch @@ -0,0 +1,13 @@ +Index: webalizer-2.01-10/configure.in +=================================================================== +--- webalizer-2.01-10.orig/configure.in ++++ webalizer-2.01-10/configure.in +@@ -71,7 +71,7 @@ if test "$USE_DNS" = "yes"; then + if test "$HAVE_DB" = ""; then + AC_CHECK_FUNCS(dbopen) + if test $ac_cv_func_dbopen = no; then +- AC_SEARCH_LIBS(dbopen, db db1, OPTS="-DUSE_DNS ${OPTS}"; HAVE_DB="yes") ++ OPTS="-DUSE_DNS ${OPTS}"; HAVE_DB="yes"; LIBS="-ldb ${LIBS}" + if test "$HAVE_DB" = ""; then + AC_MSG_WARN(You must have a V1.85 compatable DB library!) + AC_MSG_WARN(DNS lookup code will be disabled...) diff --git a/app-admin/webalizer-xtended/files/webalizer-language-list.txt b/app-admin/webalizer-xtended/files/webalizer-language-list.txt new file mode 100644 index 000000000000..ed9e3232417b --- /dev/null +++ b/app-admin/webalizer-xtended/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-xtended/files/webalizer-xtended-2.01.10_p21-etc-webalizer-xtended-conf.patch b/app-admin/webalizer-xtended/files/webalizer-xtended-2.01.10_p21-etc-webalizer-xtended-conf.patch new file mode 100644 index 000000000000..b8a9ec93a2c6 --- /dev/null +++ b/app-admin/webalizer-xtended/files/webalizer-xtended-2.01.10_p21-etc-webalizer-xtended-conf.patch @@ -0,0 +1,74 @@ +From 9ca4d9b29caf37f2a35c088f963722234cd48bc5 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Wed, 10 Mar 2010 17:28:45 +0100 +Subject: [PATCH] etc-webalizer-xtended-conf + +--- + sample.conf | 4 ++-- + webalizer.1 | 6 +++--- + webalizer.c | 6 +++--- + 3 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/sample.conf b/sample.conf +index 9c984ac..46c1abc 100644 +--- a/sample.conf ++++ b/sample.conf +@@ -18,8 +18,8 @@ + # at least one space or tab between the keyword and its value.
+ #
+ # As of version 0.98, The Webalizer will look for a 'default' configuration
+-# file named "webalizer.conf" in the current directory, and if not found
+-# there, will look for "/etc/webalizer.conf".
++# file named "webalizer-xtended.conf" in the current directory, and if not found
++# there, will look for "/etc/webalizer-xtended.conf".
+
+
+ # LogFile defines the web server log file to use. If not specified
+diff --git a/webalizer.1 b/webalizer.1 +index 4756c28..b987429 100644 +--- a/webalizer.1 ++++ b/webalizer.1 +@@ -43,10 +43,10 @@ as a \fBcrond(8)\fP job. Once executed, the general flow of the program is: + .TP 8
+ .B o
+ A default configuration file is scanned for. A file named
+-\fIwebalizer.conf\fP is searched for in the current directory, and if
++\fIwebalizer-xtended.conf\fP is searched for in the current directory, and if
+ found, and is owned by the invoking user, then its configuration data is parsed.
+ If the file is not present in the current directory, the file
+-\fI/etc/webalizer.conf\fP is searched for and, if found, is used instead.
++\fI/etc/webalizer-xtended.conf\fP is searched for and, if found, is used instead.
+ .TP 8
+ .B o
+ Any command line arguments given to the program are parsed. This
+@@ -785,7 +785,7 @@ Specifies GeoIP database file. Defaults to libGeoIP precompiled one + (normally \fI/usr/local/share/GeoIP/GeoIP.dat\fP).
+ .SH FILES
+ .TP 20
+-.I webalizer.conf
++.I webalizer-xtended.conf
+ Default configuration file. Is searched for in the current directory
+ and if not found, in the \fI/etc/\fP directory.
+ .TP 20
+diff --git a/webalizer.c b/webalizer.c +index f3a78d2..f837d52 100644 +--- a/webalizer.c ++++ b/webalizer.c +@@ -335,11 +335,11 @@ int main(int argc, char *argv[]) + add_nlist("index.",&index_alias); + + #ifndef WIN32 +- snprintf(tmp_buf, sizeof(tmp_buf),"%s/webalizer.conf",ETCDIR); ++ snprintf(tmp_buf, sizeof(tmp_buf),"%s/webalizer-xtended.conf",ETCDIR); + #endif /* WIN32 */ + /* check for default config file */ +- if (stat("webalizer.conf", &st) == 0 && st.st_uid == getuid()) +- get_config("webalizer.conf"); ++ if (stat("webalizer-xtended.conf", &st) == 0 && st.st_uid == getuid()) ++ get_config("webalizer-xtended.conf"); + #ifndef WIN32 + else if (!access(tmp_buf,F_OK)) + get_config(tmp_buf); +-- +1.7.0.1.61.gdc05d.dirty + diff --git a/app-admin/webalizer-xtended/metadata.xml b/app-admin/webalizer-xtended/metadata.xml new file mode 100644 index 000000000000..6632069b5aff --- /dev/null +++ b/app-admin/webalizer-xtended/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>web-apps</herd> +</pkgmetadata> diff --git a/app-admin/webalizer-xtended/webalizer-xtended-2.01.10_p21.ebuild b/app-admin/webalizer-xtended/webalizer-xtended-2.01.10_p21.ebuild new file mode 100644 index 000000000000..c09b4aa5415d --- /dev/null +++ b/app-admin/webalizer-xtended/webalizer-xtended-2.01.10_p21.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer-xtended/webalizer-xtended-2.01.10_p21.ebuild,v 1.1 2010/03/10 16:42:44 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 autotools + +WEBAPP_MANUAL_SLOT="yes" + +MY_PV="$(get_version_component_range 1-2)-$(get_version_component_range 3)" +WEBALIZER_P="webalizer-${MY_PV}" + +DESCRIPTION="Webserver log file analyzer" +HOMEPAGE="http://www.patrickfrei.ch/webalizer/index.html" +SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/old/${WEBALIZER_P}-src.tar.bz2 + http://patrickfrei.ch/webalizer/rb${PV/*_p/}/webalizer-${MY_PV}-RB${PV/*_p/}-patch.tar.gz + mirror://gentoo/webalizer.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 + geoip? ( dev-libs/geoip )" + +S="${WORKDIR}"/${WEBALIZER_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_prepare() { + epatch "${FILESDIR}"/webalizer-db4.2.patch + epatch "${WORKDIR}"/webalizer-${MY_PV}-RB${PV/*_p/}-patch + epatch "${FILESDIR}"/${P}-etc-webalizer-xtended-conf.patch + + eautoreconf +} + +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 + + if use geoip ; then + # Rationale: + # 1. --enable-geoip broken on geolizer + # 2. --disable-geoip broken on webalizer xtended + myconf="${myconf} --enable-geoip" + fi + + econf --enable-dns \ + --with-db=$(db_includedir) \ + --with-dblib=$(db_libname) \ + ${myconf} \ + || die "econf failed" +} + +src_install() { + webapp_src_preinst + + newbin webalizer webalizer-xtended + fperms 755 /usr/bin/webalizer-xtended || die 'fperms failed' + dosym webalizer-xtended /usr/bin/webazolver-xtended || die 'dosym failed' + newman webalizer.1 webalizer-xtended.1 || die 'newman failed' + + insinto /etc + newins "${WORKDIR}"/webalizer.conf webalizer-xtended.conf || die 'doins failed' + dosed "s/apache/apache2/g" /etc/webalizer-xtended.conf + + dodoc CHANGES *README* INSTALL sample.conf "${FILESDIR}"/apache.webalizer-xtended + + webapp_src_install +} + +pkg_postinst() { + elog + elog "It is suggested that you restart apache before using webalizer" + elog "xtended. You may want to review /etc/webalizer-xtended.conf" + elog "and ensure that OutputDir is set correctly." + elog + elog "Then just type webalizer-xtended 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-xtended" + elog + elog "A sample Apache config file has been installed into" + elog "/usr/share/doc/${PF}/apache.webalizer-xtended" + 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 + + elog "Read http://patrickfrei.ch/webalizer/rb${PV/*_p/}/INSTALL" + elog "if you are switching from stock webalizer to xtended" + + webapp_pkg_postinst +} |