summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris White <chriswhite@gentoo.org>2005-11-04 20:55:04 +0000
committerChris White <chriswhite@gentoo.org>2005-11-04 20:55:04 +0000
commitd71ef7b3e841d548ddd064b2b0dd511efb53092e (patch)
treebbc13ce0b586e08e18c9c73a3a712e6113103ced /dev-perl/Eidetic
parentstable on alpha wrt bug #111032 (diff)
downloadgentoo-2-d71ef7b3e841d548ddd064b2b0dd511efb53092e.tar.gz
gentoo-2-d71ef7b3e841d548ddd064b2b0dd511efb53092e.tar.bz2
gentoo-2-d71ef7b3e841d548ddd064b2b0dd511efb53092e.zip
Initial import into the tree to meet rackview depend.
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'dev-perl/Eidetic')
-rw-r--r--dev-perl/Eidetic/ChangeLog11
-rw-r--r--dev-perl/Eidetic/Eidetic-2.003003.ebuild75
-rw-r--r--dev-perl/Eidetic/Manifest6
-rw-r--r--dev-perl/Eidetic/files/Eidetic-2.003003-destdir.patch45
-rw-r--r--dev-perl/Eidetic/files/Eidetic-2.003003-sql.patch47
-rw-r--r--dev-perl/Eidetic/files/digest-Eidetic-2.0030031
-rw-r--r--dev-perl/Eidetic/metadata.xml18
7 files changed, 203 insertions, 0 deletions
diff --git a/dev-perl/Eidetic/ChangeLog b/dev-perl/Eidetic/ChangeLog
new file mode 100644
index 000000000000..eee38c4348c9
--- /dev/null
+++ b/dev-perl/Eidetic/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-perl/Eidetic
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/Eidetic/ChangeLog,v 1.1 2005/11/04 20:55:04 chriswhite Exp $
+
+*Eidetic-2.003003 (04 Nov 2005)
+
+ 04 Nov 2005; Chris White <chriswhite@gentoo.org>
+ +files/Eidetic-2.003003-destdir.patch, +files/Eidetic-2.003003-sql.patch,
+ +metadata.xml, +Eidetic-2.003003.ebuild:
+ Initial import into the tree to meet rackview depend.
+
diff --git a/dev-perl/Eidetic/Eidetic-2.003003.ebuild b/dev-perl/Eidetic/Eidetic-2.003003.ebuild
new file mode 100644
index 000000000000..f9f06d8a5931
--- /dev/null
+++ b/dev-perl/Eidetic/Eidetic-2.003003.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/Eidetic/Eidetic-2.003003.ebuild,v 1.1 2005/11/04 20:55:04 chriswhite Exp $
+
+inherit perl-module webapp eutils
+
+DESCRIPTION="Templatized web-based database viewer, editor, indexer, etc"
+HOMEPAGE="http://eidetic.sourceforge.net/"
+SRC_URI="mirror://sourceforge/eidetic/${P}.tar.gz"
+
+LICENSE="Artistic"
+KEYWORDS="~x86"
+IUSE="mysql auth"
+
+DEPEND="dev-lang/perl
+ >=dev-perl/Config-Simple-4.1
+ >=dev-perl/DBI-1.03
+ >=perl-core/File-Temp-0.12
+ >=perl-core/Digest-MD5-2.09
+ >=perl-core/CGI-2.56
+ perl-core/File-Spec
+ >=dev-perl/Mail-Sender-0.8
+ >=dev-perl/Sort-Tree-1.07
+ >=dev-perl/Template-Toolkit-2.08
+ mysql?( dev-db/mysql )
+ auth?( dev-perl/Apache-AuthTicket )"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-destdir.patch
+ epatch "${FILESDIR}"/${P}-sql.patch
+}
+
+src_install() {
+ # explicit inherit function calls
+ perl-module_src_install
+ webapp_src_preinst
+
+ # install .cgi file
+ insinto ${MY_CGIBINDIR}
+ doins cgi-bin/eidetic.cgi
+
+ # install documentation
+ dodoc doc/*
+
+ # install db creation scripts
+ if use mysql
+ then
+ insinto /usr/share/${P}/sql
+ doins sql/*
+ fperms a+x /usr/share/${P}/sql/load_db.sh
+ fi
+
+ #webapp stuff
+ webapp_src_install
+}
+
+pkg_postinst() {
+ if use mysql
+ then
+ einfo "The SQL scripts for ${PN} are located in /usr/share/${P}/sql."
+ einfo "Use load_db.sh to create your initial database."
+ einfo "Please note this must be ran as a user with database creation"
+ einfo "priviliges."
+ einfo ""
+ fi
+ if use auth
+ then
+ einfo "The README file contains important information on setting up"
+ einfo "cookie authorization with Apache-AuthTicket. Please be sure"
+ einfo "to read it!"
+ fi
+}
diff --git a/dev-perl/Eidetic/Manifest b/dev-perl/Eidetic/Manifest
new file mode 100644
index 000000000000..4e3dae1bb5ff
--- /dev/null
+++ b/dev-perl/Eidetic/Manifest
@@ -0,0 +1,6 @@
+MD5 01bf02e016de77a69aadc63a1a73e7f4 ChangeLog 377
+MD5 3938f7fad7120ae34dfb6ef1e7aca0d7 Eidetic-2.003003.ebuild 1703
+MD5 701f43a5e772155825860de41a5961e0 files/Eidetic-2.003003-destdir.patch 1142
+MD5 c8e2352e31ca96dd76d62f7fe06a8861 files/Eidetic-2.003003-sql.patch 1733
+MD5 526f7a225f883b0abd418f354a8330ae files/digest-Eidetic-2.003003 67
+MD5 a4dd86fa69880d54653fb2ebb25c1a92 metadata.xml 684
diff --git a/dev-perl/Eidetic/files/Eidetic-2.003003-destdir.patch b/dev-perl/Eidetic/files/Eidetic-2.003003-destdir.patch
new file mode 100644
index 000000000000..302434621a90
--- /dev/null
+++ b/dev-perl/Eidetic/files/Eidetic-2.003003-destdir.patch
@@ -0,0 +1,45 @@
+--- Makefile.PL.old 2005-11-05 04:32:33.000000000 +0900
++++ Makefile.PL 2005-11-05 05:07:38.000000000 +0900
+@@ -11,12 +11,16 @@
+ my %args = (
+ pkg_name => 'eidetic',
+ name => 'eidetic',
+- DESTDIR => undef,
+ );
+
+ my @pass_args;
++my $destdir;
++
+ while (my $arg = shift @ARGV) {
+ my ($key, $value) = split /=/, $arg;
++ if ($key eq "DESTDIR" ) {
++ $destdir = $value;
++ }
+ if (exists $args{$key}) {
+ $args{$key} = $value;
+ } else {
+@@ -108,7 +112,6 @@
+ sub MY::postamble {
+ my $self = shift;
+ my $text = '';
+- my $etcdir = '';
+
+ $text .= "RSYNC = rsync\n";
+ $text .= "CHOWN = chown\n\n";
+@@ -126,7 +129,6 @@
+ EOM
+ }
+
+- my $destdir = $args{DESTDIR} || rootdir();
+ my $prefix = $self->{PREFIX};
+
+ if ($prefix !~ /^$destdir/) {
+@@ -134,7 +136,7 @@
+ }
+
+ my $real_etcdir = catdir( rootdir(), 'etc', $args{pkg_name} );
+- $etcdir = catdir( $destdir, 'etc', $args{pkg_name} );
++ my $etcdir = catdir( $destdir, 'etc', $args{pkg_name} );
+
+ my $etcfiles = catfile( "etc", "$args{name}.conf" );
+ $text .= install_clause($etcfiles, $etcdir, 0);
diff --git a/dev-perl/Eidetic/files/Eidetic-2.003003-sql.patch b/dev-perl/Eidetic/files/Eidetic-2.003003-sql.patch
new file mode 100644
index 000000000000..e17445e699a3
--- /dev/null
+++ b/dev-perl/Eidetic/files/Eidetic-2.003003-sql.patch
@@ -0,0 +1,47 @@
+--- sql/load_db.sh.old 2004-02-24 13:43:37.000000000 +0900
++++ sql/load_db.sh 2005-11-05 05:42:59.000000000 +0900
+@@ -5,23 +5,26 @@
+ # Name of the database for docsys to use
+ DATABASE="eidetic"
+ # Name of the mysql user that will access the database
+-USER="user"
++USER="eidetic"
+ # default host the mysql user will access the database from
+ HOST="localhost"
+ # password for the mysql user
+-PASSWORD="pass"
++PASSWORD=""
+
+ # Drop the docsys database if it exists
+-mysql -NBe 'SHOW DATABASES' | grep "$DATABASE" >/dev/null && mysqladmin drop "$DATABASE"
+-mysqladmin create "$DATABASE"
++mysql -NBe -u root -p 'SHOW DATABASES' | grep "$DATABASE" >/dev/null && mysqladmin drop "$DATABASE"
++mysqladmin -u root -p create "$DATABASE"
+
+ # Create user for eidetic database
+ echo "GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX
+ ON ${DATABASE}.*
+ TO ${USER}@${HOST}
+ IDENTIFIED BY '${PASSWORD}';
+- FLUSH PRIVILEGES;" | mysql
++ FLUSH PRIVILEGES;" | mysql -u root -p
+
+ # Build the default contents of the docsys database
+-cat *.sql | mysql -u "$USER" --password="$PASSWORD" "$DATABASE" && echo Database populated
+-
++for files in *.sql
++do
++ echo "Executing ${files}"
++ mysql -u "$USER" --password="$PASSWORD" "$DATABASE" < ${files} && echo Database populated
++done
+--- sql/create_table_permission.sql.old 2005-11-05 05:43:28.000000000 +0900
++++ sql/create_table_permission.sql 2005-11-05 05:43:36.000000000 +0900
+@@ -3,7 +3,7 @@
+ user_uid INT UNSIGNED,
+ resource_tag TEXT,
+ access ENUM ("Y", "N") DEFAULT "N",
+- trust_score TINYINT DEFAULT 0, # 0-100%
++ trust_score TINYINT DEFAULT 0
+ );
+
+
diff --git a/dev-perl/Eidetic/files/digest-Eidetic-2.003003 b/dev-perl/Eidetic/files/digest-Eidetic-2.003003
new file mode 100644
index 000000000000..b74a266908b0
--- /dev/null
+++ b/dev-perl/Eidetic/files/digest-Eidetic-2.003003
@@ -0,0 +1 @@
+MD5 a167c19d721c86b9db035307e4e5851f Eidetic-2.003003.tar.gz 91722
diff --git a/dev-perl/Eidetic/metadata.xml b/dev-perl/Eidetic/metadata.xml
new file mode 100644
index 000000000000..d5806e516689
--- /dev/null
+++ b/dev-perl/Eidetic/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>perl</herd>
+<maintainer>
+ <email>chriswhite@gentoo.org</email>
+ <name>Chris White</name>
+</maintainer>
+<longdescription lang="en">
+Eidetic is a middleware library for building database driven
+applications with Perl. It provides handlers for displaying, editing,
+searching, and administrating data in various ways. It is intended to
+be interface-generic, including web, commandline, daemon, and other
+types of interfacing to be used. It is currently used by several
+applications, including STP, docsys, and rackview.
+</longdescription>
+</pkgmetadata>
+