# 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' }
Hey Paul. Added it to the tree. Thanks for the contribution. -phoen][x-