summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-08-15 18:14:16 +0000
committerStuart Herbert <stuart@gentoo.org>2004-08-15 18:14:16 +0000
commitb3f6c65fcd017bdc434540278a8b543330e51c0b (patch)
treee3a283814a5514ca1b4c9bba5573696582925b08 /www-misc/squidalyser
parentMoved from net-www/mergelog to www-misc/mergelog (diff)
downloadhistorical-b3f6c65fcd017bdc434540278a8b543330e51c0b.tar.gz
historical-b3f6c65fcd017bdc434540278a8b543330e51c0b.tar.bz2
historical-b3f6c65fcd017bdc434540278a8b543330e51c0b.zip
Moved from net-www/squidalyser to www-misc/squidalyser.
Diffstat (limited to 'www-misc/squidalyser')
-rw-r--r--www-misc/squidalyser/ChangeLog31
-rw-r--r--www-misc/squidalyser/Manifest4
-rw-r--r--www-misc/squidalyser/files/digest-squidalyser-0.2.552
-rw-r--r--www-misc/squidalyser/metadata.xml9
-rw-r--r--www-misc/squidalyser/squidalyser-0.2.55.ebuild99
5 files changed, 145 insertions, 0 deletions
diff --git a/www-misc/squidalyser/ChangeLog b/www-misc/squidalyser/ChangeLog
new file mode 100644
index 000000000000..8bb3050757a6
--- /dev/null
+++ b/www-misc/squidalyser/ChangeLog
@@ -0,0 +1,31 @@
+# ChangeLog for net-www/squidalyser
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/squidalyser/ChangeLog,v 1.1 2004/08/15 18:14:16 stuart Exp $
+
+*squidalyser-0.2.55 (15 Aug 2004)
+
+ 15 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +squidalyser-0.2.55.ebuild:
+ Moved from net-www/squidalyser to www-misc/squidalyser.
+
+ 23 Jun 2004; Andrew Bevitt <cyfred@gentoo.org>; +metadata.xml:
+ Adding metadata.xml
+
+ 11 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> squidalyser-0.2.55.ebuild:
+ Stable on alpha.
+
+ 23 Mar 2004; Martin Holzer <mholzer@gentoo.org> squidalyser-0.2.55.ebuild:
+ fixing depend qa issue. see 45343.
+
+*squidalyser-0.2.55 (22 Dec 2002)
+
+ 18 Apr 2003; Seemant Kulleen <seemant@gentoo.org> Manifest,
+ squidalyser-0.2.55.ebuild:
+ added missing patch from the original submission. Thanks to: Alberto Ornaghi
+ <alor@antifork.org> in bug #19534
+
+ 22 Dec 2002; Michael Cummings <mcummings@gentoo.org>
+ squidalyser-0.2.55.ebuild:
+
+ Initial import. Ebuild submitted by bnelson@itministry.org (Brian
+ Nelson) in bug 10111.
diff --git a/www-misc/squidalyser/Manifest b/www-misc/squidalyser/Manifest
new file mode 100644
index 000000000000..f081d7060156
--- /dev/null
+++ b/www-misc/squidalyser/Manifest
@@ -0,0 +1,4 @@
+MD5 496fe9887e5b15c4b3e337a5434f8987 squidalyser-0.2.55.ebuild 2703
+MD5 cc6437652d160406c13c5cdd901a7ec9 ChangeLog 935
+MD5 d7dd06078d4f3a44b46709294cc7bc21 metadata.xml 249
+MD5 4f1639f87240e891fee9650bce40b831 files/digest-squidalyser-0.2.55 145
diff --git a/www-misc/squidalyser/files/digest-squidalyser-0.2.55 b/www-misc/squidalyser/files/digest-squidalyser-0.2.55
new file mode 100644
index 000000000000..6045dd18ac00
--- /dev/null
+++ b/www-misc/squidalyser/files/digest-squidalyser-0.2.55
@@ -0,0 +1,2 @@
+MD5 3326f6ebd4454d885ab9d19eb03fec19 squidalyser-0.2.55.tar.gz 32519
+MD5 aa0300c38389749708b551d2437fa9ea squidalyser-0.2.55-gentoo.diff.bz2 711
diff --git a/www-misc/squidalyser/metadata.xml b/www-misc/squidalyser/metadata.xml
new file mode 100644
index 000000000000..3dec35759a0d
--- /dev/null
+++ b/www-misc/squidalyser/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>cyfred@gentoo.org</email>
+ <name>Andrew Bevitt</name>
+</maintainer>
+</pkgmetadata>
diff --git a/www-misc/squidalyser/squidalyser-0.2.55.ebuild b/www-misc/squidalyser/squidalyser-0.2.55.ebuild
new file mode 100644
index 000000000000..a79144043fb2
--- /dev/null
+++ b/www-misc/squidalyser/squidalyser-0.2.55.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/squidalyser/squidalyser-0.2.55.ebuild,v 1.1 2004/08/15 18:14:16 stuart Exp $
+
+inherit eutils
+
+IUSE=""
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Interactive log analyser for the Squid proxy."
+HOMEPAGE="http://ababa.org"
+SRC_URI="http://ababa.org/dist/${P}.tar.gz
+ mirror://gentoo/${P}-gentoo.diff.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ~sparc alpha ~ppc"
+
+DEPEND="net-www/squid
+ dev-lang/perl
+ dev-perl/CGI
+ dev-perl/DBI
+ dev-perl/DBD-mysql
+ dev-perl/Time-modules
+ dev-perl/Time-HiRes
+ dev-perl/GD
+ dev-perl/GDGraph
+ dev-perl/GDTextUtil
+ dev-perl/URI
+ dev-db/mysql
+ net-www/apache
+ net-www/squid"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${WORKDIR}/${P}-gentoo.diff
+}
+
+src_install() {
+
+ # Create a user directory for squidalyser. Put the squidparse and sql scripts into it
+ dodir /usr/share/squidalyser/squidparse
+ cp ${S}/squidparse/squidparse.pl ${D}/usr/share/squidalyser/squidparse/squidparse.pl
+ dodir /etc/squidalyser
+ cp ${S}/squidparse/squidalyser.conf ${D}/etc/squidalyser/squidalyser.conf
+
+ dodir /usr/share/squidalyser/sql
+ cp ${S}/sql/* ${D}/usr/share/squidalyser/sql
+ dodir /usr/share/squidalyser/docs
+ cp ${S}/docs/* ${D}/usr/share/squidalyser/docs
+
+ # Put the apache scripts under the apache directory
+ chown apache ${S}/cgi-bin/*
+ chmod 755 ${S}/cgi-bin/*
+
+ dodir /home/httpd/cgi-bin
+ cp ${S}/cgi-bin/* ${D}/home/httpd/cgi-bin
+ dodir /home/httpd/icons
+ cp ${S}/icons/* ${D}/home/httpd/icons
+}
+
+pkg_preinst() {
+ ewarn "pkg_preinst()"
+}
+
+pkg_postinst() {
+ ewarn "pkg_postinst"
+ # start up mysql if it isn't already running
+ mysqlstat=`/etc/init.d/mysql status | grep -c started`
+ if [ ${mysqlstat} -lt 1 ]
+ then
+ /etc/init.d/mysql start
+ sleep 3
+ fi
+ # create the basic database
+ ewarn "configure mysql"
+ mysql --execute="drop database squid"
+ mysql --execute="create database squid"
+ mysql --execute="grant all privileges on squid.* to squidalyser@localhost identified by 'tr!red$';"
+ mysql squid < /usr/share/squidalyser/sql/squidalyser.sql
+ mysql squid --execute="delete from logfile"
+
+ ewarn "update crontab"
+ # Update the crontab for the squidparse routine
+ spcount=`grep -c squidparse.pl /etc/crontab`
+ if [ ${spcount} -gt 1 ]
+ then
+ ewarn "More than one entry in /etc/crontab. Please check."
+ elif [ ${spcount} -eq 1 ]
+ then
+ ewarn "squidparse.pl entry already in /etc/crontab, leaving alone"
+ else
+ echo "0 3 * * * root /usr/share/squidalyser/squidparse/squidparse.pl" >> /etc/crontab
+ fi
+
+ ewarn "Running squidparse for first time, this may take several minutes"
+ /usr/share/squidalyser/squidparse/squidparse.pl
+}