summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-analyzer/piwi/Manifest3
-rw-r--r--net-analyzer/piwi/files/digest-piwi-0.0.200307171
-rw-r--r--net-analyzer/piwi/files/make_release.sh24
-rw-r--r--net-analyzer/piwi/files/piwi-apache.conf21
-rw-r--r--net-analyzer/piwi/metadata.xml10
-rw-r--r--net-analyzer/piwi/piwi-0.0.20030717.ebuild69
6 files changed, 127 insertions, 1 deletions
diff --git a/net-analyzer/piwi/Manifest b/net-analyzer/piwi/Manifest
index 175fe5c7d8b9..8a7d804b3025 100644
--- a/net-analyzer/piwi/Manifest
+++ b/net-analyzer/piwi/Manifest
@@ -1,5 +1,6 @@
-MD5 5d53a7df8b2b0768d3e49a0a96e5592f piwi-0.0.20030717.ebuild 2360
+MD5 b4334dffbd9c1402b7ce92254c046de2 piwi-0.0.20030717.ebuild 2464
MD5 f82e3555485d648cb1b6667cc797b175 metadata.xml 342
+MD5 b99608717d7e566ef7370164a26a0ccd ChangeLog 460
MD5 4e10c46e4399dbacec468d5433b76fb7 files/digest-piwi-0.0.20030717 70
MD5 672e6d82c13378329cafd34502915311 files/make_release.sh 493
MD5 0f60257dc317130371e243385dd07fe7 files/piwi-apache.conf 364
diff --git a/net-analyzer/piwi/files/digest-piwi-0.0.20030717 b/net-analyzer/piwi/files/digest-piwi-0.0.20030717
new file mode 100644
index 000000000000..176ff8b8bc8a
--- /dev/null
+++ b/net-analyzer/piwi/files/digest-piwi-0.0.20030717
@@ -0,0 +1 @@
+MD5 fb4abb8f70f64cc01b852ca1bab913d3 piwi-0.0.20030717.tar.bz2 226269
diff --git a/net-analyzer/piwi/files/make_release.sh b/net-analyzer/piwi/files/make_release.sh
new file mode 100644
index 000000000000..0ee7d41b32ff
--- /dev/null
+++ b/net-analyzer/piwi/files/make_release.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+VERSION="0.0"
+
+if [ -z $1 ]; then
+ DATE=`date +%Y%m%d` # Current date
+ #DATE="20030717" # Static date
+else
+ DATE=$1
+fi
+
+CVS=`which cvs`
+TAR=`which tar`
+
+CVS_OPTIONS="-z3"
+CVS_REPOSITORY="-d:pserver:anonymous@cvs.prelude-ids.org:/cvsroot/prelude"
+
+
+$CVS ${CVS_OPTIONS} ${CVS_REPOSITORY} login
+$CVS ${CVS_OPTIONS} ${CVS_REPOSITORY} checkout -D $DATE piwi
+
+mv piwi piwi-$VERSION.$DATE
+tar cvjf piwi-$VERSION.$DATE.tar.bz2 piwi-$VERSION.$DATE --exclude CVS
+rm -rf piwi-$VERSION.$DATE
diff --git a/net-analyzer/piwi/files/piwi-apache.conf b/net-analyzer/piwi/files/piwi-apache.conf
new file mode 100644
index 000000000000..353ec5b60bab
--- /dev/null
+++ b/net-analyzer/piwi/files/piwi-apache.conf
@@ -0,0 +1,21 @@
+<IfDefine PIWI>
+
+ <Directory "/home/httpd/htdocs/piwi">
+ Options ExecCGI FollowSymLinks
+ AllowOverride All
+ </Directory>
+
+ <IfDefine MOD_PERL>
+ PerlModule Apache::DBI
+ <Files *.pl>
+ SetHandler perl-script
+ PerlHandler Apache::PerlRun
+ PerlSendHeader On
+ </Files>
+ </IfDefine>
+
+ <IfDefine !MOD_PERL>
+ AddHandler cgi-script .pl
+ </IfDefine>
+
+</IfDefine>
diff --git a/net-analyzer/piwi/metadata.xml b/net-analyzer/piwi/metadata.xml
new file mode 100644
index 000000000000..28e749384bf6
--- /dev/null
+++ b/net-analyzer/piwi/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>hardened</herd>
+ <maintainer>
+ <email>solar@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <longdescription>(Prelude|Perl) IDS Web Interface</longdescription>
+</pkgmetadata>
diff --git a/net-analyzer/piwi/piwi-0.0.20030717.ebuild b/net-analyzer/piwi/piwi-0.0.20030717.ebuild
new file mode 100644
index 000000000000..b87d910fd5e1
--- /dev/null
+++ b/net-analyzer/piwi/piwi-0.0.20030717.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/piwi/piwi-0.0.20030717.ebuild,v 1.1 2003/07/17 20:15:03 solar Exp $
+
+DESCRIPTION="(Prelude|Perl) IDS Web Interface"
+HOMEPAGE="http://www.prelude-ids.org"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="mysql postgres gd"
+DEPEND="
+ dev-lang/perl
+ dev-perl/DBI
+ dev-perl/Date-Calc
+ postgresql? ( dev-perl/DBD-Pg )
+ mysql? ( dev-perl/DBD-mysql )
+ gd? ( dev-perl/GDGraph dev-perl/Geo-IP )
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}
+
+src_install() {
+ into /home/httpd/htdocs/piwi || die
+ into /etc/piwi || die
+
+ # "install" the files into the destination
+ cp -aR ${S}/* ${D}/home/httpd/htdocs/piwi/ || die
+
+ # Fix permissions
+ # Opt not to use the ebuild functions fowners() and fperms()
+ # as they doesn't seem to work reqursively.
+ chown -R root:apache ${D}/home/httpd/htdocs/piwi/* || die
+ chown -R apache:apache ${D}/home/httpd/htdocs/piwi/generated || die
+ chmod -R o-rwx ${D}/home/httpd/htdocs/piwi/* || die
+
+ # Move files around and create symlinks to make sure configuration files
+ # are not being overwritten when you do upgrades...
+ mv ${D}/home/httpd/htdocs/piwi/generated/Filters ${D}/etc/piwi/Filters || die
+ dosym /etc/piwi/Filters /home/httpd/htdocs/piwi/generated/Filters
+
+ mv ${D}/home/httpd/htdocs/piwi/Profiles ${D}/etc/piwi/Profiles || die
+ dosym /etc/piwi/Profiles /home/httpd/htdocs/piwi/Profiles
+
+ mv ${D}/home/httpd/htdocs/piwi/Functions/config.pl ${D}/etc/piwi/config.pl || die
+ dosym /etc/piwi/config.pl /home/httpd/htdocs/piwi/Functions/config.pl
+
+ # Install configuration file for apache
+ dodoc ${FILESDIR}/piwi-apache.conf
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "To have Apache run PIWI, please do the following:"
+ einfo "1) Include the /usr/share/doc/${P}/piwi-apache.conf in your apache configuration"
+ einfo "2) Edit /etc/conf.d/apache or /etc/conf.d/apache2 and add \"-D PIWI\""
+ einfo "3) Edit /etc/piwi/config.pl to reflect your settings"
+ ewarn ""
+ ewarn "NOTE: If you do not perform these steps PIWI will _not_ work."
+ ewarn " You have been warned. Any bugs against this will be either:"
+ ewarn ""
+ ewarn " - directed to /dev/null"
+ ewarn " - resolved with a RTFM comment"
+ ewarn ""
+ ewarn "Consider yourself warned"
+ # Make sure that the user pay attention
+ echo -ne "\a"; sleep 0.25 ; echo -ne "\a"; sleep 0.25
+}