summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Góes <vanquirius@gentoo.org>2006-06-03 22:10:21 +0000
committerMarcelo Góes <vanquirius@gentoo.org>2006-06-03 22:10:21 +0000
commitf2bf10798f56c189cd8951586cf61a78fbf4cb53 (patch)
treeed3a65a08ba7b3f44229f7697fb207a9b4a047e9 /net-analyzer/aimsniff
parentInitial import, bug #82912 (diff)
downloadgentoo-2-f2bf10798f56c189cd8951586cf61a78fbf4cb53.tar.gz
gentoo-2-f2bf10798f56c189cd8951586cf61a78fbf4cb53.tar.bz2
gentoo-2-f2bf10798f56c189cd8951586cf61a78fbf4cb53.zip
Add initscript for bug 67444. Thanks to Bryan Ragon <mygentoo at ragon dot org> and Josh <sciolizer at gmail dot com>.
(Portage version: 2.0.54)
Diffstat (limited to 'net-analyzer/aimsniff')
-rw-r--r--net-analyzer/aimsniff/ChangeLog9
-rw-r--r--net-analyzer/aimsniff/Manifest30
-rw-r--r--net-analyzer/aimsniff/aimsniff-0.9-r2.ebuild126
-rw-r--r--net-analyzer/aimsniff/files/aimsniff.rc18
-rw-r--r--net-analyzer/aimsniff/files/digest-aimsniff-0.9-r22
5 files changed, 159 insertions, 26 deletions
diff --git a/net-analyzer/aimsniff/ChangeLog b/net-analyzer/aimsniff/ChangeLog
index 33f8c70216ab..e8a1f8484912 100644
--- a/net-analyzer/aimsniff/ChangeLog
+++ b/net-analyzer/aimsniff/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/aimsniff
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/aimsniff/ChangeLog,v 1.18 2006/05/23 18:18:52 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/aimsniff/ChangeLog,v 1.19 2006/06/03 22:10:21 vanquirius Exp $
+
+*aimsniff-0.9-r2 (03 Jun 2006)
+
+ 03 Jun 2006; Marcelo Goes <vanquirius@gentoo.org> +files/aimsniff.rc,
+ +aimsniff-0.9-r2.ebuild:
+ Add initscript for bug 67444. Thanks to Bryan Ragon <mygentoo at ragon dot
+ org> and Josh <sciolizer at gmail dot com>.
23 May 2006; Bryan Østergaard <kloeri@gentoo.org> metadata.xml:
Remove port001 from metadata, bug 26349.
diff --git a/net-analyzer/aimsniff/Manifest b/net-analyzer/aimsniff/Manifest
index eb676c4a241e..a85026d1c968 100644
--- a/net-analyzer/aimsniff/Manifest
+++ b/net-analyzer/aimsniff/Manifest
@@ -1,27 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-DIST aimsniff-0.9d.tar.gz 24044
-DIST was-0.1.2b.tar.gz 73651
-EBUILD aimsniff-0.9-r1.ebuild 3247 RMD160 1ebbc3471971d12b28c9c139633ffdb39d49beb0 SHA1 4c902146c154d0a71d5b18e523803366043f1844 SHA256 0b5d8bf24afc933135a43cdac695f65406c92c32236a3f69855068b08b943d8b
-MD5 f37636368dc12670e9b1460ca3db61e7 aimsniff-0.9-r1.ebuild 3247
-RMD160 1ebbc3471971d12b28c9c139633ffdb39d49beb0 aimsniff-0.9-r1.ebuild 3247
-SHA256 0b5d8bf24afc933135a43cdac695f65406c92c32236a3f69855068b08b943d8b aimsniff-0.9-r1.ebuild 3247
-MISC ChangeLog 2437 RMD160 acf0dbac5f3e169def90eef772d8db3e4eff6ff3 SHA1 ce1bb97dbf0ec63ca742bbe2b9575a14b5f20470 SHA256 b9ca04c4cf4419845c268d8068e26e4088361b90d1b49875abd0ad7052f74f89
MD5 156650065112d4ed3030773f35158ec1 ChangeLog 2437
-RMD160 acf0dbac5f3e169def90eef772d8db3e4eff6ff3 ChangeLog 2437
-SHA256 b9ca04c4cf4419845c268d8068e26e4088361b90d1b49875abd0ad7052f74f89 ChangeLog 2437
-MISC metadata.xml 279 RMD160 686a2f8555aec6ee63e83dae267f8f3e0ec59160 SHA1 fa97313a09cd771e41bc78b8c2b4c2147b4fc17b SHA256 c45894e6105faeb517ad4de98bd3cc0cfca0a67776999acfb3a503fb5842a69f
-MD5 8b97c503bb5355f787884eaff4b4b166 metadata.xml 279
-RMD160 686a2f8555aec6ee63e83dae267f8f3e0ec59160 metadata.xml 279
-SHA256 c45894e6105faeb517ad4de98bd3cc0cfca0a67776999acfb3a503fb5842a69f metadata.xml 279
+MD5 f37636368dc12670e9b1460ca3db61e7 aimsniff-0.9-r1.ebuild 3247
+MD5 449989405d23e2a0fd83d02f07831f9b aimsniff-0.9-r2.ebuild 3300
+MD5 9075a951f1c5e23cf21ac82fc61339bd files/aimsniff.rc 314
MD5 31171666587c48bf647abbddda0f9c91 files/digest-aimsniff-0.9-r1 125
-RMD160 362c813c53f665223bca04c54bc5ebdf068e56e2 files/digest-aimsniff-0.9-r1 125
-SHA256 478ee5bd6a7c72d850f0a3b5bd93b2af83009a2467cd38003759929600589dc3 files/digest-aimsniff-0.9-r1 125
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.3 (GNU/Linux)
-
-iD8DBQFEc1IWugEuf3OQ0akRAllbAJ4vfxNzZd5XAkfe11ED7gR/IMK9FgCfRTWd
-PmCYF5Wsb1T7GJzXRvfLbsI=
-=CkGQ
------END PGP SIGNATURE-----
+MD5 31171666587c48bf647abbddda0f9c91 files/digest-aimsniff-0.9-r2 125
+MD5 8b97c503bb5355f787884eaff4b4b166 metadata.xml 279
diff --git a/net-analyzer/aimsniff/aimsniff-0.9-r2.ebuild b/net-analyzer/aimsniff/aimsniff-0.9-r2.ebuild
new file mode 100644
index 000000000000..a5c764e678e6
--- /dev/null
+++ b/net-analyzer/aimsniff/aimsniff-0.9-r2.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2006 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.1 2006/06/03 22:10:21 vanquirius Exp $
+
+inherit webapp eutils
+
+IUSE="samba mysql apache2 http"
+
+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 )"
+
+RESTRICT="nomirror"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+S="${WORKDIR}/${MY_P}"
+
+# We need >= perl-5.8.4 for GDBM_File
+DEPEND=">=dev-lang/perl-5.8.4
+ 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 )
+ http? ( apache2? ( =net-www/apache-2* ) !apache2? ( =net-www/apache-1* ) )"
+
+pkg_setup() {
+ 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
+
+ newinitd "${FILESDIR}"/aimsniff.rc aimsniff
+}
+
+pkg_postinst() {
+
+ if use mysql
+ then
+ echo
+ einfo "To create and enable the mysql database, please run: "
+ einfo "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
+ echo
+ einfo "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
+}
diff --git a/net-analyzer/aimsniff/files/aimsniff.rc b/net-analyzer/aimsniff/files/aimsniff.rc
new file mode 100644
index 000000000000..d94f6a9dcc79
--- /dev/null
+++ b/net-analyzer/aimsniff/files/aimsniff.rc
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting asniff"
+ start-stop-daemon -o --quiet --start --exec /usr/sbin/aimsniff -- \
+ -C=/etc/aimsniff/aimsniff.config
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping asniff"
+ start-stop-daemon -o --stop -p /var/run/aimsniff_parent.pid -s QUIT
+ eend $?
+}
diff --git a/net-analyzer/aimsniff/files/digest-aimsniff-0.9-r2 b/net-analyzer/aimsniff/files/digest-aimsniff-0.9-r2
new file mode 100644
index 000000000000..a67c4a508857
--- /dev/null
+++ b/net-analyzer/aimsniff/files/digest-aimsniff-0.9-r2
@@ -0,0 +1,2 @@
+MD5 14030a37fb4a522c1dd5c51665ba2b21 aimsniff-0.9d.tar.gz 24044
+MD5 d2e558b9bb9befd019ce2c92416d270b was-0.1.2b.tar.gz 73651