Subject: pkg/12422: new pkg, net/p5-PlRPC
To: None <gnats-bugs@gnats.netbsd.org>
From: None <eric@cirr.com>
List: netbsd-bugs
Date: 03/15/2001 22:49:12
>Number: 12422
>Category: pkg
>Synopsis: New package, net/p5-PlRPC
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Mar 15 20:50:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Eric Schnoebelen
>Release: 2001-03-15
>Organization:
Central Iowa (Model) Railroad
>Environment:
System: NetBSD milo.cirr.com 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (MILO_pciide) #0: Tue Feb 6 11:19:46 CST 2001 eric@milo.cirr.com:/home/milo/eric/work/usr/src/sys/arch/alpha/compile/MILO_pciide alpha
>Description:
New package, net/p5-PlRPC. PlRPC is provides an RPC like
mechanism for perl programs. Required net/p5-Net-Daemon and
security/p5-Crypt-DES.
Allows dbiproxy to work, and supports DBI::Proxy (coming soon.)
>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:
#
# net/p5-PlRPC/
# net/p5-PlRPC//Makefile
# net/p5-PlRPC//files
# net/p5-PlRPC//files/md5
# net/p5-PlRPC//pkg
# net/p5-PlRPC//pkg/PLIST
# net/p5-PlRPC//pkg/DESCR
#
echo c - net/p5-PlRPC/
mkdir -p net/p5-PlRPC/ > /dev/null 2>&1
echo x - net/p5-PlRPC//Makefile
sed 's/^X//' >net/p5-PlRPC//Makefile << 'END-of-net/p5-PlRPC//Makefile'
X# $NetBSD
X#
X
XDISTNAME= PlRPC-0.2014
XPKGNAME= p5-PlRPC-0.2014
XCATEGORIES= net perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN:=RPC/}
X
XMAINTAINER= eric@cirr.com
XCOMMENT= perl5 module for RPC type communication
X
XDEPENDS+= p5-Net-Daemon-*:../../net/p5-Net-Daemon
XDEPENDS+= p5-Storable-*:../../devel/p5-Storable
XDEPENDS+= p5-Crypt-DES-*:../../security/p5-Crypt-DES
X
XUSE_PERL5= # defined
XPERL5_PACKLIST= ${PERL5_SITEARCH}/auto/RPC/PlServer/.packlist
X
Xdo-configure:
X @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
X
X.include "../../mk/bsd.pkg.mk"
END-of-net/p5-PlRPC//Makefile
echo c - net/p5-PlRPC//files
mkdir -p net/p5-PlRPC//files > /dev/null 2>&1
echo x - net/p5-PlRPC//files/md5
sed 's/^X//' >net/p5-PlRPC//files/md5 << 'END-of-net/p5-PlRPC//files/md5'
X$NetBSD$
X
XSHA1 (PlRPC-0.2014.tar.gz) = 2609e2ab6bd44a55208f7d88f6cc7252d91fb56b
END-of-net/p5-PlRPC//files/md5
echo c - net/p5-PlRPC//pkg
mkdir -p net/p5-PlRPC//pkg > /dev/null 2>&1
echo x - net/p5-PlRPC//pkg/PLIST
sed 's/^X//' >net/p5-PlRPC//pkg/PLIST << 'END-of-net/p5-PlRPC//pkg/PLIST'
X@comment $NetBSD: PLIST,v 1.8 2000/08/27 07:11:17 jlam Exp $
END-of-net/p5-PlRPC//pkg/PLIST
echo x - net/p5-PlRPC//pkg/DESCR
sed 's/^X//' >net/p5-PlRPC//pkg/DESCR << 'END-of-net/p5-PlRPC//pkg/DESCR'
XNAME
X RPC::PlServer - Perl extension for writing PlRPC servers
X
XSYNOPSIS
X # Create a subclass of RPC::PlServer
X use RPC::PlServer;
X
X package MyServer;
X $MyServer::VERSION = '0.01';
X @MyServer::ISA = qw(RPC::PlServer);
X
X # Overwrite the Run() method to handle a single connection
X sub Run {
X my $self = shift;
X my $socket = $self->{'socket'};
X }
X
X # Create an instance of the MyServer class
X package main;
X my $server = MyServer->new({'localport' => '1234'}, \@ARGV);
X
X # Bind the server to its port to make it actually running
X $server->Bind();
X
XDESCRIPTION
X PlRPC (Perl RPC) is a package for implementing servers and clients that
X are written in Perl entirely. The name is borrowed from Sun's RPC
X (Remote Procedure Call), but it could as well be RMI like Java's "Remote
X Method Interface), because PlRPC gives you the complete power of Perl's
X OO framework in a very simple manner.
X
X RPC::PlServer is the package used on the server side, and you guess what
X RPC::PlClient is for. Both share the package RPC::PlServer::Comm for
X communication purposes. See the PlRPC::Client(3) manpage and the
X RPC::PlServer::Comm manpage for these parts.
X
X PlRPC works by defining a set of methods that may be executed by the
X client. For example, the server might offer a method "multiply" to the
X client. Now the clients method call
X
X @result = $client->multiply($a, $b);
X
X will be immediately mapped to a method call
X
X @result = $server->multiply($a, $b);
X
X on the server. The arguments and results will be transferred to or from
X the server automagically. (This magic has a name in Perl: It's the
X Storable module, my thanks to Raphael Manfredi for this excellent
X package.) Simple, eh? :-)
X
X The RPC::PlServer and RPC::PlClient are abstract servers and clients:
X You have to derive your own classes from it.
X
XAUTHOR AND COPYRIGHT
X The PlRPC-modules are
X
X Copyright (C) 1998, Jochen Wiedmann
X Am Eisteich 9
X 72555 Metzingen
X Germany
X
X Phone: +49 7123 14887
X Email: joe@ispsoft.de
X
X All rights reserved.
X
X You may distribute this package under the terms of either the GNU
X General Public License or the Artistic License, as specified in the Perl
X README file.
X
END-of-net/p5-PlRPC//pkg/DESCR
exit
>Release-Note:
>Audit-Trail:
>Unformatted: