From owner-freebsd-ports Sat Aug 7 18:34:25 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 851A114C9D for ; Sat, 7 Aug 1999 18:34:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA23406; Sat, 7 Aug 1999 18:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with ESMTP id B472614C38 for ; Sat, 7 Aug 1999 18:27:09 -0700 (PDT) (envelope-from jedgar@pawn.primelocation.net) Received: by pawn.primelocation.net (Postfix, from userid 1003) id 5F5C9F818; Sat, 7 Aug 1999 21:24:47 -0400 (EDT) Message-Id: <19990808012447.5F5C9F818@pawn.primelocation.net> Date: Sat, 7 Aug 1999 21:24:47 -0400 (EDT) From: jedgar@fxp.org Reply-To: jedgar@fxp.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13017: New Port: p5-IRC Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13017 >Category: ports >Synopsis: New Port: p5-IRC >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Aug 7 18:30:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Chris D. Faulhaber >Release: FreeBSD 3.2-STABLE i386 >Organization: BUGO - BSD Users Group of Orlando >Environment: >Description: New port of the Net-IRC Perl5 module. This module provides an easy Perl-based interface to writing Perl-based IRC bots and clients. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-IRC # p5-IRC/Makefile # p5-IRC/files # p5-IRC/files/md5 # p5-IRC/pkg # p5-IRC/pkg/PLIST # p5-IRC/pkg/COMMENT # p5-IRC/pkg/DESCR # echo c - p5-IRC mkdir -p p5-IRC > /dev/null 2>&1 echo x - p5-IRC/Makefile sed 's/^X//' >p5-IRC/Makefile << 'END-of-p5-IRC/Makefile' X# New ports collection makefile for: p5-IRC X# Version required: 0.59 X# Date created: 07 August 1999 X# Whom: Chris D. Faulhaber X# X# $Id:$ X# X XDISTNAME= Net-IRC-0.59 XPKGNAME= p5-IRC-0.59 XCATEGORIES= irc perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Net X XMAINTAINER= jedgar@fxp.org X XUSE_PERL5= YES X XMANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} XMAN3= \ X Net::Connection.3 \ X Net::DCC.3 \ X Net::Event.3 \ X Net::IRC.3 X Xdo-configure: X @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL X X.include END-of-p5-IRC/Makefile echo c - p5-IRC/files mkdir -p p5-IRC/files > /dev/null 2>&1 echo x - p5-IRC/files/md5 sed 's/^X//' >p5-IRC/files/md5 << 'END-of-p5-IRC/files/md5' XMD5 (Net-IRC-0.59.tar.gz) = 6caa4bb6accdd9c33e8b37e8ffd77f3d END-of-p5-IRC/files/md5 echo c - p5-IRC/pkg mkdir -p p5-IRC/pkg > /dev/null 2>&1 echo x - p5-IRC/pkg/PLIST sed 's/^X//' >p5-IRC/pkg/PLIST << 'END-of-p5-IRC/pkg/PLIST' Xlib/perl5/site_perl/%%PERL_VER%%/Net/IRC.pm Xlib/perl5/site_perl/%%PERL_VER%%/Net/IRC/Connection.pm Xlib/perl5/site_perl/%%PERL_VER%%/Net/IRC/DCC.pm Xlib/perl5/site_perl/%%PERL_VER%%/Net/IRC/Event.pm Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/IRC/.packlist X@dirrm lib/perl5/site_perl/%%PERL_VER%%/Net/IRC X@dirrm lib/perl5/site_perl/%%PERL_VER%%/Net X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Net/IRC END-of-p5-IRC/pkg/PLIST echo x - p5-IRC/pkg/COMMENT sed 's/^X//' >p5-IRC/pkg/COMMENT << 'END-of-p5-IRC/pkg/COMMENT' XPerl5 modules to implement the IRC protocol (RFC 1459) END-of-p5-IRC/pkg/COMMENT echo x - p5-IRC/pkg/DESCR sed 's/^X//' >p5-IRC/pkg/DESCR << 'END-of-p5-IRC/pkg/DESCR' XWelcome to Net::IRC, a work in progress. First intended to Xbe a quick tool for writing an IRC script in Perl, XNet::IRC has grown into a comprehensive Perl Ximplementation of the IRC protocol (RFC 1459), supported Xand developed by several members of the EFnet IRC channel X#perl. X XThere are 4 component modules which make up Net::IRC: X XNet::IRC X The wrapper for everything else, containing methods X to generate Connection objects (see below) and a X connection manager which does an event loop on all X available filehandles. Sockets or files which are X readable (or writable, or whatever you want it to X select() for) get passed to user-supplied handler X subroutines in other packages or in user code. X XNet::IRC::Connection X X The big time sink on this project. Each Connection X instance is a single connection to an IRC server. The X module itself contains methods for every single IRC X command available to users (Net::IRC isn't designed X for writing servers, for obvious reasons), methods to X set, retrieve, and call handler functions which the X user can set (more on this later), and too many cute X comments. Hey, what can I say, we were bored. X XNet::IRC::Event X X Kind of a struct-like object for storing info about X things that the IRC server tells you (server X responses, channel talk, joins and parts, et cetera). X It records who initiated the event, who it affects, X the event type, and any other arguments provided for X that event. Incidentally, the only argument passed to X a handler function. X XNet::IRC::DCC X X The analogous object to Connection.pm for connecting, X sending and retrieving with the DCC protocol. X Instances of DCC.pm are invoked from X Connection->new_{send,get,chat} in the same way that X IRC->newconn invokes Connection->new. This will make X more sense later, we promise. END-of-p5-IRC/pkg/DESCR exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message