ChangeLog

# ChangeLog for net-analyzer/aimsniff
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/aimsniff/ChangeLog,v 1.33 2009/05/26 17:03:02 arfrever Exp $

26 May 2009; Arfrever Frehtes Taifersar Arahesis
aimsniff-0.9-r1.ebuild, aimsniff-0.9-r2.ebuild:
Call depend.apache_pkg_setup() in pkg_setup() (bug #268371).

27 Apr 2009; Patrick Lauer aimsniff-0.9-r2:
Adding RDEPEND again, fixes #262149

08 Mar 2009; Dawid Węgliński aimsniff-0.9-r2.ebuild:
Migrate to EAPI 2

21 Oct 2008; Torsten Veller aimsniff-0.9-r1.ebuild,
aimsniff-0.9-r2.ebuild:
Remove dev-perl/FileHandle-Rollback dependency. It uses FileHandle

04 Aug 2008; Jeroen Roovers metadata.xml:
Describe local USE flags for GLEP 56.

05 Feb 2008; Benedikt Böhm aimsniff-0.9-r1.ebuild,
aimsniff-0.9-r2.ebuild:
add depend.apache eclass wrt #208584

18 Jan 2008; Raúl Porcel aimsniff-0.9-r2.ebuild:
x86 stable

29 Jul 2007; Christian Heim aimsniff-0.9-r1.ebuild,
aimsniff-0.9-r2.ebuild:
Fixing the DEPEND/RDEPEND for the move of net-www/apache to
www-servers/apache (#78622).

02 Jul 2007; Piotr Jaroszyński aimsniff-0.9-r1.ebuild,
aimsniff-0.9-r2.ebuild:
(QA) RESTRICT clean up.

12 May 2007; Luca Longinotti aimsniff-0.9-r1.ebuild,
aimsniff-0.9-r2.ebuild:
Apache 1.X masking (fix ebuilds to not require apache-1*).

01 May 2007; Marius Mauch aimsniff-0.9-r1.ebuild,
aimsniff-0.9-r2.ebuild:
Replacing einfo with elog

03 Feb 2007; nixnut aimsniff-0.9-r1.ebuild:
Stable on ppc wrt bug 164919

01 Feb 2007; Markus Ullmann aimsniff-0.9-r1.ebuild,
aimsniff-0.9-r2.ebuild:
cleanup

23 Nov 2006; Francesco Riosa aimsniff-0.9-r1.ebuild,
aimsniff-0.9-r2.ebuild:
dev-db/mysql => virtual/mysql

*aimsniff-0.9-r2 (03 Jun 2006)

03 Jun 2006; Marcelo Goes +files/aimsniff.rc,
+aimsniff-0.9-r2.ebuild:
Add initscript for bug 67444. Thanks to Bryan Ragon org> and Josh .

23 May 2006; Bryan Østergaard metadata.xml:
Remove port001 from metadata, bug 26349.

31 Oct 2005; aimsniff-0.9-r1.ebuild:
Fixed ebuild as per bug #109482

18 Mar 2005; Aaron Walker aimsniff-0.9-r1.ebuild:
aimsniff requires that perl be built with USE=gdbm, bug 85678.

15 Mar 2005; Jeremy Huddleston
aimsniff-0.9-r1.ebuild:
Added to ~amd64.

24 Feb 2005; aimsniff-0.9-r1.ebuild:
Fixed DEPEND issues, #62666

23 Aug 2004; Eldad Zack metadata.xml,
aimsniff-0.9-r1.ebuild:
x86 stable

09 Jul 2004; Eldad Zack aimsniff-0.8.ebuild,
aimsniff-0.9-r1.ebuild, -aimsniff-0.9.ebuild:
marked x86 stable

09 Jul 2004; Eldad Zack -aimsniff-0.9.ebuild:
Purged 0.9

28 Jun 2004; Aron Griffis aimsniff-0.8.ebuild,
aimsniff-0.9-r1.ebuild:
fix use invocation, sync IUSE

28 Jun 2004; David Holm aimsniff-0.9-r1.ebuild:
Added to ~ppc.

*aimsniff-0.9-r1 (27 Jun 2004)

27 Jun 2004; Ian Leitch metadata.xml,
+aimsniff-0.9-r1.ebuild:
Revission bumped for security hole described in #53399. Converted to use the
new webapp eclass, plus minor clean-ups. Added myself as new maintainer...
dammit.

19 Jun 2004; David Holm aimsniff-0.9.ebuild:
Added to ~ppc.

14 Jun 2004; John Davis metadata.xml:
removing myself as maintainer, I have no time

09 Jun 2004; Aron Griffis aimsniff-0.8.ebuild,
aimsniff-0.9.ebuild:
Fix use invocation

*aimsniff-0.9 (08 Dec 2003)

08 Dec 2003; zhen aimsniff-0.9.ebuild, metadata.xml:
version bump, fixed deps, added a very functional mysql config under pkg_config

24 Nov 2003; Martin Holzer aimsniff-0.8.ebuild:
adding RESTRICT="nomirror"

*aimsniff-0.8 (25 Jul 2003)

05 Aug 2003; Mike Frysinger :
Cleanup, repoman, and add apache-webapp.eclass support.

25 Jul 2003; Daniel Ahlberg :
Initial import. Ebuild contributed by Rigo Ketelings in #21008.

Manifest

AUX aimsniff.rc 314 RMD160 3c9e631f02af507b24a15bc5a09eca3bd84b3021 SHA1 0cdc89e5415956ad992c2d782068a40d5379f834 SHA256 a1086d1e80cdf1b0c16b56d4b64a876c1046ab79ab9ca7038019ff386746b2cd
DIST aimsniff-0.9d.tar.gz 24044 RMD160 789ff7a62cef283472bc84884ad2e547c5b87e29 SHA1 824b97e703ae4aff875c0a22fdea55f255bf116f SHA256 11ce4cd3e1dcdabee0319dbb8a52c176debfbcd59c0c0c913078bb4b85619ac1
DIST was-0.1.2b.tar.gz 73651 RMD160 8959c6e23764f6c288ca6c4106484335fe9420cf SHA1 5077bea9b1ffe49fbacfb64b787bff461c346cf7 SHA256 0d1af84e7ed529cf0f8a63f4c72e8656ceccf0316cc42dcc9d856cbf8091635b
EBUILD aimsniff-0.9-r1.ebuild 3193 RMD160 19dc466f32474d122eeba909965a34daa6191500 SHA1 fbdcfb812e18e120c5f7ed8b9d84126b06336455 SHA256 584601fddd691ba22b73f5b5e1f8b050d527e9157e61a9d3ae2e4cfc6240a9bc
EBUILD aimsniff-0.9-r2.ebuild 3156 RMD160 3fe5ddbead6742f376e15ceb30ffa9b31c4b3ae1 SHA1 178d13b8c4abf170e99565a232987f01c33e06d9 SHA256 9d04e8b3a666754e4eaa9d5680a215a5d78ccb5aa81c6de10086631282ad2b80
MISC ChangeLog 4533 RMD160 670badba7ba0a3d7135d6abd90d3c5c238993b0d SHA1 80329e1975b937195e05185a39c627298d49d2ae SHA256 5e5dade82bcba496e96ed00483a8071d3baceed40c17b81fe2ac2158dfee6542
MISC metadata.xml 358 RMD160 9ef99d96a963e9750940dddcfbd22b88e8ffe932 SHA1 d59b8e299dce8447b0cf8f62e747f8958cb4c258 SHA256 34284a7cd3381665258eae277a64f92d3e7983d32b8e836e9631f1b521c37f04

aimsniff-0.9-r1.ebuild

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/aimsniff/aimsniff-0.9-r1.ebuild,v 1.19 2009/05/26 17:03:02 arfrever Exp $

inherit eutils webapp depend.apache

MY_P="${P}d"
WAS_VER="0.1.2b"
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
http? ( mirror://sourceforge/${PN}/was-${WAS_VER}.tar.gz )"

LICENSE="GPL-2"
KEYWORDS="~amd64 ppc x86"
#SLOT empty due to webapp
IUSE="samba mysql http"

DEPEND="dev-lang/perl
dev-perl/Net-Pcap
dev-perl/NetPacket
dev-perl/Unicode-String
dev-perl/Proc-Daemon
dev-perl/Proc-Simple
dev-perl/DBI
dev-perl/Unix-Syslog
mysql? ( virtual/mysql dev-perl/DBD-mysql )
samba? ( net-fs/samba )"
RDEPEND=${DEPEND}

want_apache2 http

RESTRICT="mirror"

S=${WORKDIR}/${MY_P}

pkg_setup() {
depend.apache_pkg_setup http

if use http
then
webapp_pkg_setup
fi

built_with_use dev-lang/perl gdbm || \
die "${PN} requires that dev-lang/perl be built with USE=gdbm."
}

src_install() {
if use http
then
webapp_src_preinst
fi

newsbin aimSniff.pl aimsniff
insinto /etc/${PN}
doins aimsniff.config
insinto /usr/share/doc/${PF}
doins table.struct
dodoc README ChangeLog

if use http
then
cp ../was-${WAS_VER}/docs/README README.WAS
dodoc README.WAS

rm -rf ../was-${WAS_VER}/docs
mv ../was-${WAS_VER}/ "${D}"${MY_HTDOCSDIR}/was

webapp_serverowned ${MY_HTDOCSDIR}/was

# This file needs to be serverowned as the server won't be able to write to it if it were
# webapp_configfile'ed.
webapp_serverowned ${MY_HTDOCSDIR}/was/.config.php

for phpfile in `ls -a "${D}"${MY_HTDOCSDIR}/was/ | grep ".php$"`; do
webapp_runbycgibin php ${MY_HTDOCSDIR}/was/${phpfile}
done

webapp_src_install
fi
}

pkg_postinst() {
if use mysql
then
echo
elog "To create and enable the mysql database, please run: "
elog "emerge --config =${PF}"

if use http
then
echo "To create and enable the mysql database, please run:
emerge --config =${PF}" > apache-postinst
webapp_postinst_txt en apache-postinst
fi
fi

if use http
then
elog
elog "Go to http://${HOSTNAME}/was/admin.php to configure WAS."

echo "Go to http://${HOSTNAME}/was/admin.php to configure WAS." > was-postinst
webapp_postinst_txt en was-postinst
fi

}

pkg_config() {
echo
einfo "Creating mysql database aimsniff using /usr/share/doc/${PF}/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/${PF}/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
}

aimsniff-0.9-r2.ebuild

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/aimsniff/aimsniff-0.9-r2.ebuild,v 1.13 2009/05/26 17:03:02 arfrever Exp $

EAPI="2"

inherit eutils webapp eutils depend.apache

MY_P="${P}d"
WAS_VER="0.1.2b"

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
http? ( mirror://sourceforge/${PN}/was-${WAS_VER}.tar.gz )"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc x86"
#SLOT empty due to webapp
IUSE="samba mysql http"

DEPEND="dev-lang/perl[gdbm]
dev-perl/Net-Pcap
dev-perl/NetPacket
dev-perl/Unicode-String
dev-perl/Proc-Daemon
dev-perl/Proc-Simple
dev-perl/DBI
dev-perl/Unix-Syslog
mysql? ( virtual/mysql dev-perl/DBD-mysql )
samba? ( net-fs/samba )"
RDEPEND=${DEPEND}

want_apache2 http

RESTRICT="mirror"

S=${WORKDIR}/${MY_P}

pkg_setup() {
depend.apache_pkg_setup http

if use http
then
webapp_pkg_setup
fi
}

src_install() {
if use http
then
webapp_src_preinst
fi

newsbin aimSniff.pl aimsniff
insinto /etc/${PN}
doins aimsniff.config
insinto /usr/share/doc/${PF}
doins table.struct
dodoc README ChangeLog

if use http
then
cp ../was-${WAS_VER}/docs/README README.WAS
dodoc README.WAS

rm -rf ../was-${WAS_VER}/docs
mv ../was-${WAS_VER}/ "${D}"${MY_HTDOCSDIR}/was

webapp_serverowned ${MY_HTDOCSDIR}/was

# This file needs to be serverowned as the server won't be able to write to it if it were
# webapp_configfile'ed.
webapp_serverowned ${MY_HTDOCSDIR}/was/.config.php

for phpfile in `ls -a "${D}"${MY_HTDOCSDIR}/was/ | grep ".php$"`; do
webapp_runbycgibin php ${MY_HTDOCSDIR}/was/${phpfile}
done

webapp_src_install
fi

newinitd "${FILESDIR}"/aimsniff.rc aimsniff
}

pkg_postinst() {
if use mysql
then
echo
elog "To create and enable the mysql database, please run: "
elog "emerge --config =${PF}"

if use http
then
echo "To create and enable the mysql database, please run:
emerge --config =${PF}" > apache-postinst
webapp_postinst_txt en apache-postinst
fi
fi

if use http
then
elog
elog "Go to http://${HOSTNAME}/was/admin.php to configure WAS."

echo "Go to http://${HOSTNAME}/was/admin.php to configure WAS." > was-postinst
webapp_postinst_txt en was-postinst
fi
}

pkg_config() {
echo
einfo "Creating mysql database aimsniff using /usr/share/doc/${PF}/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/${PF}/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
}

files

metadata.xml




netmon
aimsniff is a utility used for retrieving and storing AIM messages across a network.

Install the WAS (Web AIM Sniff) frontend