summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-04-23 16:28:44 +0000
committerStuart Herbert <stuart@gentoo.org>2004-04-23 16:28:44 +0000
commit42ea7e7032e917821924a02bf7423ba693727e63 (patch)
tree1f88da41bb5db8ada36a16d78906d590d9cf08f4
parentAdded IUSE. (Manifest recommit) (diff)
downloadgentoo-2-42ea7e7032e917821924a02bf7423ba693727e63.tar.gz
gentoo-2-42ea7e7032e917821924a02bf7423ba693727e63.tar.bz2
gentoo-2-42ea7e7032e917821924a02bf7423ba693727e63.zip
Added geoip support
-rw-r--r--app-admin/webalizer/ChangeLog7
-rw-r--r--app-admin/webalizer/Manifest4
-rw-r--r--app-admin/webalizer/files/digest-webalizer-2.01.10-r52
-rw-r--r--app-admin/webalizer/webalizer-2.01.10-r5.ebuild84
4 files changed, 95 insertions, 2 deletions
diff --git a/app-admin/webalizer/ChangeLog b/app-admin/webalizer/ChangeLog
index b608c0621300..3d4d6eff2e73 100644
--- a/app-admin/webalizer/ChangeLog
+++ b/app-admin/webalizer/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-admin/webalizer
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.20 2004/02/02 03:39:51 avenj Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.21 2004/04/23 16:28:44 stuart Exp $
+
+*webalizer-2.01.10-r5 (23 Apr 2004)
+
+ 23 Apr 2004; Stuart Herbert <stuart@gentoo.org> webalizer-2.01.10-r5.ebuild:
+ Added geoip support; thanks to Christian A. <chr@die.unipd.it>; see bug #44748
01 Feb 2004; Jon Portnoy <avenj@gentoo.org> webalizer-2.01.10-r4.ebuild :
AMD64 keywords.
diff --git a/app-admin/webalizer/Manifest b/app-admin/webalizer/Manifest
index 2942d3ac78f1..d8c0bdee3717 100644
--- a/app-admin/webalizer/Manifest
+++ b/app-admin/webalizer/Manifest
@@ -1,6 +1,8 @@
+MD5 505467da9da673298c4a4ae2f35313f0 webalizer-2.01.10-r4.ebuild 2073
MD5 808ebaae81549d5dd03f4e50b4897815 ChangeLog 2786
MD5 aa1e0b2898261e1a69ca61b5afbf0c6d metadata.xml 431
-MD5 505467da9da673298c4a4ae2f35313f0 webalizer-2.01.10-r4.ebuild 2073
+MD5 2d3940b9d815393b2a9bfea6db934559 webalizer-2.01.10-r5.ebuild 2415
MD5 99b845afaf9f7417f82f508992e4a5ab files/digest-webalizer-2.01.10-r4 74
+MD5 e1a2a43e4148a750fc8ef91e0af3ba99 files/digest-webalizer-2.01.10-r5 157
MD5 64aecf82b558b91245a82f410b27986a files/2.01.10/apache.webalizer 334
MD5 43ba0f621ebb8fd776052f4ef30f20d5 files/2.01.10/webalizer.conf 23910
diff --git a/app-admin/webalizer/files/digest-webalizer-2.01.10-r5 b/app-admin/webalizer/files/digest-webalizer-2.01.10-r5
new file mode 100644
index 000000000000..1e08bbd23fa0
--- /dev/null
+++ b/app-admin/webalizer/files/digest-webalizer-2.01.10-r5
@@ -0,0 +1,2 @@
+MD5 26d0a3c142423678daed2d6f579525d8 webalizer-2.01-10-src.tar.bz2 252664
+MD5 fa2e960702c72a16707854537053a966 geolizer_2.01-10-patch.20040216.tar.bz2 27688
diff --git a/app-admin/webalizer/webalizer-2.01.10-r5.ebuild b/app-admin/webalizer/webalizer-2.01.10-r5.ebuild
new file mode 100644
index 000000000000..31687fce7d9c
--- /dev/null
+++ b/app-admin/webalizer/webalizer-2.01.10-r5.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/webalizer-2.01.10-r5.ebuild,v 1.1 2004/04/23 16:28:44 stuart Exp $
+
+IUSE="geoip"
+MY_PV=${PV/.10/-10}
+MY_P=${PN}-${MY_PV}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Webserver log file analyzer"
+SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/${MY_P}-src.tar.bz2
+ geoip? ( http://sysd.org/proj/geolizer_${MY_PV}-patch.20040216.tar.bz2 )"
+HOMEPAGE="http://www.mrunix.net/webalizer/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc ~hppa ~amd64"
+
+DEPEND="=sys-libs/db-1*
+ >=sys-libs/zlib-1.1.4
+ >=media-libs/libpng-1.2
+ >=media-libs/libgd-1.8.3
+ geoip? ( dev-libs/geoip )"
+
+src_unpack() {
+ unpack ${A} ; cd ${S}
+ # fix --enable-dns; our db1 headers are in /usr/include/db1
+# mv dns_resolv.c dns_resolv.c.orig
+# sed -e 's%^\(#include \)\(<db.h>\)\(.*\)%\1<db1/db.h>\3%' \
+# dns_resolv.c.orig > dns_resolv.c
+ sed -i -e "s,db_185.h,db.h," configure
+
+ if use geoip ; then
+ ( cd ${WORKDIR} && unpack geolizer_${MY_PV}-patch.20040216.tar.bz2 )
+ epatch ${WORKDIR}/geolizer_${MY_PV}-patch/geolizer.patch || die
+ fi
+}
+
+src_compile() {
+ myconf="`use_enable geoip`"
+ econf ${myconf} --enable-dns --with-db=/usr/include/db1/ || die
+ make || die
+}
+
+src_install() {
+ into /usr
+ dobin webalizer
+ dosym webalizer /usr/bin/webazolver
+ doman webalizer.1
+
+ insinto /etc
+ newins ${FILESDIR}/${PV}/webalizer.conf webalizer.conf
+
+ if [ "`use apache2`" ]; then
+ # patch for apache2
+ sed -i -e "s/apache/apache2/g" ${D}/etc/webalizer.conf
+ insinto /etc/apache2/conf
+ else
+ insinto /etc/apache/conf
+ fi
+
+ doins ${FILESDIR}/${PV}/webalizer.conf
+
+ use apache2 || insinto /etc/apache/conf/addon-modules
+ use apache2 || newins ${FILESDIR}/${PV}/apache.webalizer webalizer.conf
+
+ use apache2 && insinto /etc/apache2/conf/modules.d
+ use apache2 && newins ${FILESDIR}/${PV}/apache.webalizer 55_webalizer.conf
+
+ dodoc README* CHANGES COPYING Copyright sample.conf
+ dodir /var/www/webalizer
+}
+
+pkg_postinst(){
+ if [ -n "`use apache2`" ]; then
+ einfo "to update your apache.conf just type"
+ einfo "echo \"Include conf/addon-modules/webalizer.conf\" \
+ >> /etc/apache/conf/apache.conf"
+ fi
+ einfo
+ einfo "Just type webalizer to generate your stats."
+ einfo "You can also use cron to generate them e.g. every day."
+ einfo "They can be accessed via http://localhost/webalizer"
+ einfo
+}