Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
Parallel::Pvm is a perl extension for the parallel virtual machine
(PVM) message-passing system.

View File

@@ -0,0 +1,14 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2002/10/13 04:30:05 dmcmahill Exp $
The two examples included here are crafted after the C language hello
and hello_other programs which come with PVM. To run this example,
start the pvm daemon by running
${PVM_ROOT}/lib/pvmd &
Now execute the hello.pl program by running
${PREFIX}/share/examples/p5-Parallel-Pvm/hello.pl
===========================================================================

View File

@@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.22 2013/05/31 12:41:45 wiz Exp $
#
DISTNAME= Parallel-Pvm-1.4.0
PKGNAME= p5-${DISTNAME}
PKGREVISION= 5
SVR4_PKGNAME= p5pvm
CATEGORIES= parallel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Parallel/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.csm.ornl.gov/pvm/pvm_home.html
#HOMEPAGE= http://search.cpan.org/dist/Parallel-Pvm/
COMMENT= Perl module for PVM (Parallel Virtual Machine)
PVM_ROOT?= ${LOCALBASE}/pvm3
CONFIGURE_ENV+= PVM_ROOT=${PVM_ROOT:Q} PVM_ARCH=${PVM_ARCH:Q}
MAKE_ENV+= PVM_ROOT=${PVM_ROOT:Q} PVM_ARCH=${PVM_ARCH:Q}
PERL5_PACKLIST= auto/Parallel/Pvm/.packlist
MESSAGE_SUBST+= PVM_ROOT=${PVM_ROOT}
EXAMPLES_DIR= ${PREFIX}/share/examples/p5-Parallel-Pvm
INSTALLATION_DIRS= ${EXAMPLES_DIR}
post-build:
.for f in hello.pl hello_other.pl
${SED} -e 's;@exampledir@;${EXAMPLES_DIR};g' -e 's;@perl@;${PERL5};g' \
${FILESDIR}/${f} > ${WRKDIR}/${f}
.endfor
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/hello.pl ${DESTDIR}${EXAMPLES_DIR}
${INSTALL_SCRIPT} ${WRKDIR}/hello_other.pl ${DESTDIR}${EXAMPLES_DIR}
.include "../../lang/perl5/module.mk"
.include "../../parallel/pvm3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:10:40 joerg Exp $
share/examples/p5-Parallel-Pvm/hello.pl
share/examples/p5-Parallel-Pvm/hello_other.pl

View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.3 2008/08/11 13:48:22 he Exp $
SHA1 (Parallel-Pvm-1.4.0.tar.gz) = d6dee207dbe5182b74c4cf90270a60520cbfcff2
RMD160 (Parallel-Pvm-1.4.0.tar.gz) = facb45d4539976cb582a371280cc04f0a26959d2
Size (Parallel-Pvm-1.4.0.tar.gz) = 19422 bytes

View File

@@ -0,0 +1,38 @@
#!@perl@
#
# $NetBSD: hello.pl,v 1.1.1.1 2002/10/13 04:30:05 dmcmahill Exp $
#
use Parallel::Pvm;
use File::Basename;
$mytid = Parallel::Pvm::mytid ;
printf "My task ID is %x\n", $mytid;
# spawn 1 copy of "hello_other"
$cmd="@exampledir@/hello_other.pl";
($ntask, @tids) = Parallel::Pvm::spawn($cmd, 1);
print "ntask = $ntask\n";
print "tids = @tids\n";
if ($ntask == 1) {
# receive a message from the task we have spawned
$bufid=Parallel::Pvm::recv();
if ($bufid >= 0) {
($info,$bytes,$tag,$stid) = Parallel::Pvm::bufinfo($bufid) ;
print "info = $info\n";
print "bytes = $bytes\n";
print "tag = $tag\n";
printf "stid = %x\n",$stid;
$str = Parallel::Pvm::unpack;
printf "from t%x: \"%s\"\n",$stid,$str;
}
} else {
printf "can't start hello_other\n";
}
Parallel::Pvm::exit();

View File

@@ -0,0 +1,16 @@
#!@perl@
#
# $NetBSD: hello_other.pl,v 1.1.1.1 2002/10/13 04:30:05 dmcmahill Exp $
#
use Parallel::Pvm;
use Sys::Hostname;
my $host = hostname();
$ptid = Parallel::Pvm::parent;
Parallel::Pvm::initsend(PvmDataDefault) ;
$buf=Parallel::Pvm::pack("Hi from hello_other.pl running on $host");
Parallel::Pvm::send($ptid,$buf);
Parallel::Pvm::exit;
exit 0;