blob: c5c2b41af1f0766e297bf52a48f51490fffd1bd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# 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.8.ebuild,v 1.5 2003/11/24 17:04:36 mholzer Exp $
inherit webapp-apache
DESCRIPTION="utility for monitoring and archiving AOL Instant Messenger messages across a network"
HOMEPAGE="http://www.aimsniff.com/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
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
mysql? ( dev-perl/DBI dev-db/mysql )
samba? ( net-fs/samba )"
src_install() {
newsbin aimSniff.pl aimsniff
insinto /etc/${PN}
doins aimsniff.config table.struct
dodoc README ChangeLog
webapp-detect || NO_WEBSERVER=1
dodir ${HTTPD_ROOT}
mv ../was ${D}/${HTTPD_ROOT}
cd ${D}/${HTTPD_ROOT}
chown -R ${HTTPD_USER}:${HTTPD_GROUP} *
}
pkg_setup ()
{
webapp-detect || NO_WEBSERVER=1
webapp-pkg_setup $NO_WEBSERVER
}
pkg_postinst() {
einfo "Go to http://${HOSTNAME}/was/ to check if everything works."
if [ `use mysql` ] ; then
einfo "If you plan to use the database dump feature, you'll have to load the table.struct file into mysql."
einfo "To do this run the following command 'mysql < /etc/${PN}/table.struct'."
einfo "This will create a database named 'aim' with all the right tables."
einfo "After that use: 'GRANT ALL ON aim.* TO username@hostname IDENTIFIED BY 'password';'"
einfo "and go to http://${HOSTNAME}/was/admin.php to fill in the blanks."
fi
if [ `use samba` ] ; then
einfo "--SMB <-Turn SMB lookups 'on' to get NT domain usernames with AIM logins, Off by default."
fi
}
|