summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/webalizer/ChangeLog9
-rw-r--r--app-admin/webalizer/files/apache.webalizer3
-rw-r--r--app-admin/webalizer/files/digest-webalizer-2.01.10-r11
-rw-r--r--app-admin/webalizer/webalizer-2.01.10-r1.ebuild61
4 files changed, 71 insertions, 3 deletions
diff --git a/app-admin/webalizer/ChangeLog b/app-admin/webalizer/ChangeLog
index 454de36e6efb..9fcc8e4a3cbf 100644
--- a/app-admin/webalizer/ChangeLog
+++ b/app-admin/webalizer/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-admin/webalizer
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.4 2002/04/19 17:21:51 woodchip Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/ChangeLog,v 1.5 2002/04/24 20:43:49 woodchip Exp $
+
+*webalizer-2.01.10-r1 (24 Apr 2002)
+
+ 24 Apr 2002; Donny Davies <woodchip@gentoo.org> :
+
+ Added --enable-dns to ./configure, added small sed patch and sys-libs/db1
+ to the dependencies to facilitate this.
*webalizer-2.01.10 (19 Apr 2002)
diff --git a/app-admin/webalizer/files/apache.webalizer b/app-admin/webalizer/files/apache.webalizer
index f45ea56c71a4..7b77d637f1c2 100644
--- a/app-admin/webalizer/files/apache.webalizer
+++ b/app-admin/webalizer/files/apache.webalizer
@@ -1,10 +1,9 @@
#
-# This is the config file for modlogan-statistics
+# This is the config snippet for Webalizer
#
<Directory "/home/httpd/htdocs/webalizer">
Options None
AllowOverride None
-
Order allow,deny
Allow from all
</Directory>
diff --git a/app-admin/webalizer/files/digest-webalizer-2.01.10-r1 b/app-admin/webalizer/files/digest-webalizer-2.01.10-r1
new file mode 100644
index 000000000000..f8b15bb17a67
--- /dev/null
+++ b/app-admin/webalizer/files/digest-webalizer-2.01.10-r1
@@ -0,0 +1 @@
+MD5 26d0a3c142423678daed2d6f579525d8 webalizer-2.01-10-src.tar.bz2 252664
diff --git a/app-admin/webalizer/webalizer-2.01.10-r1.ebuild b/app-admin/webalizer/webalizer-2.01.10-r1.ebuild
new file mode 100644
index 000000000000..988b2d8c624d
--- /dev/null
+++ b/app-admin/webalizer/webalizer-2.01.10-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author: Achim Gottinger <achim@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/app-admin/webalizer/webalizer-2.01.10-r1.ebuild,v 1.1 2002/04/24 20:43:49 woodchip Exp $
+
+MY_P=${P/.10/-10}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Webalizer"
+SRC_URI="ftp://ftp.mrunix.net/pub/webalizer/${MY_P}-src.tar.bz2"
+HOMEPAGE="http://www.mrunix.net/webalizer/"
+
+DEPEND="virtual/glibc
+ =sys-libs/db-1*
+ >=sys-libs/zlib-1.1.4
+ >=media-libs/libpng-1.2
+ >=media-libs/libgd-1.8.3"
+
+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
+}
+
+src_compile() {
+ ./configure \
+ --enable-dns \
+ --prefix=/usr \
+ --host=${CHOST} \
+ --mandir=/usr/share/man \
+ --with-etcdir=/etc/apache/conf || die
+ make || die
+}
+
+src_install() {
+ into /usr
+ dobin webalizer
+ dosym webalizer /usr/bin/webazolver
+ doman webalizer.1
+ insinto /etc/apache/conf
+ newins ${FILESDIR}/webalizer-${PV}.conf webalizer.conf
+ insinto /etc/apache/conf/addon-modules
+ doins ${FILESDIR}/apache.webalizer
+ dodoc README* CHANGES COPYING Copyright sample.conf
+}
+
+pkg_postinst() {
+ install -d -o root -g root -m0755 ${ROOT}/home/httpd/htdocs/webalizer
+
+ einfo
+ einfo "Execute: \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\""
+ einfo "to have your apache.conf auto-updated for use with webalizer."
+ einfo
+}
+
+pkg_config() {
+ echo "Include conf/addon-modules/apache.webalizer" \
+ >> ${ROOT}/etc/apache/conf/apache.conf
+}