Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8713 - net-admin/ircmap-0.99.ebuild (new ebuild)
Summary: net-admin/ircmap-0.99.ebuild (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: phoen][x
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-03 11:17 UTC by Paul Belt
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Belt 2002-10-03 11:17:58 UTC
# Copyright 2002 Paul Belt
# Distributed under the terms of the GNU General Public License v2
# Author:  Paul Belt <gaarde at users dot sourceforge dot net>

DESCRIPTION="This script connects to the specified IRC server and creates a
diagram of the network performing LINKS command. It can expand masks (if the
ircd allows it - e.g. ircnet's does, but hybrid-ircd [efnet's] usually doesn't)
and discover routing in them. One run lasts 10-30 minutes on IRCnet (naturally
if you oper'ed the script ;).  It draws ASCII art tree of the network, and can
also produce graphical diagram saved into gif image using GraphViz."

HOMEPAGE="http://pasky.ji.cz/~pasky/irc/"
SRC_URI="http://pasky.ji.cz/~pasky/irc/${PN}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="x86"
RDEPEND="virtual/glibc
         media-gfx/graphviz"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}

src_compile() {
   for f in ircmapC ircmapR-aa ircmapR-gvdot ircmapR-ircnet ircmapS; do
      cat $f.pl | sed -e 's!^use lib "/home/pasky/ircmap";!use lib
"/usr/lib/perl5/site_perl/5.6.1/ircmap/";!' > $f.gaarde && mv $f.gaarde $f.pl
   done
}

src_install () {
   dodoc README
   dobin ircmapS.pl ircmapC.pl ircmapR-aa.pl ircmapR-gvdot.pl ircmapR-ircnet.pl

   mkdir -p ${D}/usr/lib/perl5/site_perl/5.6.1/ircmap
   cp IHash.pm ${D}/usr/lib/perl5/site_perl/5.6.1/ircmap/
}

src_postinst() {
   einfo 'Usage:'
   einfo 'IRCSERVER="irc.generic.com ircmapS.pl [-options parameters] \'
   einfo '| tee /tmp/sendmethisifitdoesntwork \'
   einfo '| ircmapC.pl \'
   einfo '| tee /tmp/coredump \'
   einfo '| ircmapR-aa.pl > ${IRCSERVER}.txt'
   einfo ''
   einfo 'cat /tmp/coredump \'
   einfo '| ircmapR-gvdot.pl \'
   einfo '| dot -Tgif -o  ${IRCSERVER}.gif'
}
Comment 1 phoen][x 2002-12-12 11:42:39 UTC
Hey Paul.

Added it to the tree. Thanks for the contribution.

-phoen][x-