summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn P. Davis <zhen@gentoo.org>2003-12-08 18:25:11 +0000
committerJohn P. Davis <zhen@gentoo.org>2003-12-08 18:25:11 +0000
commit875d1f97de5987c37a5dd52befb96321e27fcf9b (patch)
treea4616e0cd7c6ea173d2c58abc71e5dfe3761438f /net-analyzer
parentcleaned up the ebuild, version bump, metadata (diff)
downloadhistorical-875d1f97de5987c37a5dd52befb96321e27fcf9b.tar.gz
historical-875d1f97de5987c37a5dd52befb96321e27fcf9b.tar.bz2
historical-875d1f97de5987c37a5dd52befb96321e27fcf9b.zip
cleaned up the ebuild, version bump, metadata
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/aimsniff/Manifest5
-rw-r--r--net-analyzer/aimsniff/aimsniff-0.9.ebuild91
-rw-r--r--net-analyzer/aimsniff/files/digest-aimsniff-0.92
-rw-r--r--net-analyzer/aimsniff/metadata.xml11
4 files changed, 107 insertions, 2 deletions
diff --git a/net-analyzer/aimsniff/Manifest b/net-analyzer/aimsniff/Manifest
index a001a838a510..dc39f20858ea 100644
--- a/net-analyzer/aimsniff/Manifest
+++ b/net-analyzer/aimsniff/Manifest
@@ -1,5 +1,6 @@
-MD5 c7186e55b8b633155fb03ba4e1a37730 aimsniff-0.9.ebuild 2072
+MD5 baa71065efd23590cb8afbe077d52027 aimsniff-0.9.ebuild 2430
MD5 eb6b4cc3a6142f5d92200314840bc325 aimsniff-0.8.ebuild 1831
-MD5 914b194219ddd3413b818b7993d4b11a ChangeLog 597
+MD5 0a5e8688ce23df38155872dd59decfe2 ChangeLog 779
+MD5 0578ba075d3ab9001ab20514c24d4451 metadata.xml 445
MD5 f62848279163f070089d6c81eb98260a files/digest-aimsniff-0.8 124
MD5 f944a414fa37ffd69f00ccc18155a420 files/digest-aimsniff-0.9 125
diff --git a/net-analyzer/aimsniff/aimsniff-0.9.ebuild b/net-analyzer/aimsniff/aimsniff-0.9.ebuild
new file mode 100644
index 000000000000..4757a4bb2ea0
--- /dev/null
+++ b/net-analyzer/aimsniff/aimsniff-0.9.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/aimsniff/aimsniff-0.9.ebuild,v 1.1 2003/12/08 18:25:08 zhen Exp $
+
+MY_P="${P}b"
+
+if [ `use apache2` ]
+then
+ inherit webapp-apache
+fi
+
+DESCRIPTION="utility for monitoring and archiving AOL Instant Messenger messages across a network"
+HOMEPAGE="http://www.aimsniff.com/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+ apache2? ( mirror://sourceforge/${PN}/was_0.1.1b.tar.gz )"
+RESTRICT="nomirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="samba mysql apache2"
+
+DEPEND="dev-lang/perl
+ dev-perl/Net-Pcap
+ dev-perl/NetPacket
+ dev-perl/Unicode-String
+ dev-perl/FileHandle-Rollback
+ dev-perl/Proc-Daemon
+ dev-perl/Proc-Simple
+ dev-perl/DBI
+ dev-perl/Unix-Syslog
+ mysql? ( dev-db/mysql dev-perl/DBD-mysql )
+ samba? ( net-fs/samba )"
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ newsbin aimSniff.pl aimsniff
+ insinto /etc/${PN}
+ doins aimsniff.config
+ insinto /usr/share/doc/${P}
+ doins table.struct
+ dodoc README ChangeLog
+
+ if [ `use apache2` ]
+ then
+ webapp-detect || NO_WEBSERVER=1
+ dodir ${HTTPD_ROOT}
+ mv ../was ${D}/${HTTPD_ROOT}
+ cd ${D}/${HTTPD_ROOT}
+ chown -R ${HTTPD_USER}:${HTTPD_GROUP} *
+ fi
+}
+
+pkg_setup ()
+{
+ if [ `use apache2` ]
+ then
+ webapp-detect || NO_WEBSERVER=1
+ webapp-pkg_setup $NO_WEBSERVER
+ fi
+}
+
+pkg_postinst() {
+ echo
+ if [ `use mysql` ] ; then
+ einfo "To create and enable the mysql database, please run: "
+ einfo "ebuild /var/db/pkg/net-analyzer/${P}/${P}.ebuild config"
+ fi
+ if [ `use apache2` ]
+ then
+ einfo "Go to http://${HOSTNAME}/was/admin.php to configure WAS."
+ fi
+ echo
+}
+
+pkg_config() {
+ echo
+ einfo "Creating mysql database aimsniff using /usr/share/doc/${P}/table.struct:"
+ echo -n "Please enter your mysql root password: "
+ read mysql_root
+ /usr/bin/mysqladmin -p$mysql_root -u root create aimsniff
+ /usr/bin/mysql -p$mysql_root -u root aimsniff < /usr/share/doc/${P}/table.struct
+ echo -n "Please enter your username that you want to connect to the database with: "
+ read user
+ echo -n "Please enter the password that you want to use for your database: "
+ read password
+ einfo "Granting permisions on database using 'GRANT ALL ON aimsniff.* TO $user IDENTIFIED BY '$password';'"
+ echo "GRANT ALL ON aimsniff.* TO $user@localhost IDENTIFIED BY '$password';" | /usr/bin/mysql -p$mysql_root -u root aimsniff
+ echo
+}
diff --git a/net-analyzer/aimsniff/files/digest-aimsniff-0.9 b/net-analyzer/aimsniff/files/digest-aimsniff-0.9
new file mode 100644
index 000000000000..375c43d5968c
--- /dev/null
+++ b/net-analyzer/aimsniff/files/digest-aimsniff-0.9
@@ -0,0 +1,2 @@
+MD5 18f0333a6f985bc36888da80759aa70a aimsniff-0.9b.tar.gz 24246
+MD5 3cf59ffb6b0abc4639762471ebc50c40 was_0.1.1b.tar.gz 68073
diff --git a/net-analyzer/aimsniff/metadata.xml b/net-analyzer/aimsniff/metadata.xml
new file mode 100644
index 000000000000..62c7a070e11b
--- /dev/null
+++ b/net-analyzer/aimsniff/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>zhen@gentoo.org</email>
+ <name>John Davis</name>
+ <description>Full time maintainer, please post all bugs to me.</description>
+</maintainer>
+<longdescription>aimsniff is a utility used for retrieving and storing AIM messages across a network.</longdescription>
+</pkgmetadata>