--- rmpi-0.6-3.orig/debian/watch
+++ rmpi-0.6-3/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://cran.r-project.org/src/contrib/Rmpi_(.*)\.tar.gz
--- rmpi-0.6-3.orig/debian/compat
+++ rmpi-0.6-3/debian/compat
@@ -0,0 +1 @@
+5
--- rmpi-0.6-3.orig/debian/overrides
+++ rmpi-0.6-3/debian/overrides
@@ -0,0 +1 @@
+r-cran-rmpi: executable-not-elf-or-script ./usr/lib/R/site-library/Rmpi/Rslaves.bat
--- rmpi-0.6-3.orig/debian/changelog
+++ rmpi-0.6-3/debian/changelog
@@ -0,0 +1,262 @@
+rmpi (0.6-3-1b1) staging; urgency=low
+
+  * No-change rebuild against libopenmpi1.6.
+
+ -- Jon Severinsson <jon@severinsson.net>  Tue, 28 Jan 2014 00:00:00 +0100
+
+rmpi (0.6-3-1) unstable; urgency=low
+
+  * New upstream release
+  
+  * debian/control: Set Build-Depends: to current R version 
+  
+  * (Re-)building with R 3.0.0 (beta)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Tue, 26 Mar 2013 14:37:20 -0500
+
+rmpi (0.6-2-1) unstable; urgency=low
+
+  * New upstream release
+
+  * debian/control: Set Build-Depends: to current R version
+  * debian/control: Set Standards-Version: to current version 
+  
+  * debian/control: Added 'mpi-default-bin' to Build-Depends:
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sun, 10 Mar 2013 20:22:05 -0500
+
+rmpi (0.6-1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Mon, 20 Aug 2012 05:18:07 -0500
+
+rmpi (0.6-0-1) unstable; urgency=low
+
+  * New upstream release
+
+  * debian/control: Set Build-Depends: to current R version
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 08 Aug 2012 17:13:58 -0500
+
+rmpi (0.5-9-3) unstable; urgency=low
+
+  * configure.ac: Modified to cope with MPICH2 which should help with
+    architectures which cannot provide OpenMPI
+
+  * debian/control: Set Build-Depends: to current R version
+  * debian/control: Change Depends to ${R:Depends}
+  * debian/control: Set Standards-Version: to current version 
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Tue, 15 May 2012 16:13:17 -0500
+
+rmpi (0.5-9-2) unstable; urgency=low
+
+  * Rebuilt for R 2.14.0 so that a default NAMESPACE file is created
+
+  * debian/control: Set (Build-)Depends: to current R version
+  * debian/control: Set Standards-Version: to current version 
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 22 Oct 2011 17:05:39 -0500
+
+rmpi (0.5-9-1) unstable; urgency=low
+
+  * New upstream release
+  
+  * debian/control: Set (Build-)Depends: to current R version
+  * debian/control: Set Standards-Version: to current version 
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Tue, 30 Nov 2010 18:49:40 -0600
+
+rmpi (0.5-8-2) unstable; urgency=low
+
+  * debian/rules: Pass extra argument '--no-test-load' to R CMD INSTALL 
+    as we would need an MPI env. to load Rmpi		(Closes: #584353)
+  
+  * debian/control: Set (Build-)Depends: to current R version
+  * debian/control: Set Standards-Version: to current version 
+  
+ -- Dirk Eddelbuettel <edd@debian.org>  Thu, 03 Jun 2010 09:50:18 -0500
+
+rmpi (0.5-8-1) unstable; urgency=low
+
+  * New upstream release
+
+  * debian/control: Set (Build-)Depends: to current R version
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Tue, 19 Jan 2010 13:39:49 -0600
+
+rmpi (0.5-7-4) unstable; urgency=low
+
+  * Rebuilt for R 2.10.0 to work with new R-internal help file conversion
+
+  * debian/control: Set (Build-)Depends: to current R version
+  * debian/control: Set Standards-Version: to current version 
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Tue, 03 Nov 2009 14:02:14 -0600
+
+rmpi (0.5-7-3) unstable; urgency=low
+
+  * debian/control: Corrected typo and set Depends: to mpi-default-bin
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Mon, 01 Jun 2009 21:29:17 -0500
+
+rmpi (0.5-7-2) unstable; urgency=low
+
+  * debian/control: Rewrote dependency on MPI using the new meta-packages 
+    mpi-default-dev (for Build-Depends:) and mpi-default-bin (for Depends:)
+    now that Open MPI 1.3.2 has hit unstable
+
+  * debian/control: Changed Section: to new section 'gnu-r'
+  
+  * debian/control: Set (Build-)Depends: to current R version
+  * debian/control: Set Standards-Version: to current version 3.8.1
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Mon, 01 Jun 2009 14:12:02 -0500
+
+rmpi (0.5-7-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Fri, 20 Feb 2009 17:38:55 -0600
+
+rmpi (0.5-6-3) unstable; urgency=low
+
+  * src/Rmpi.c: Applied a miniscule patch to set the dlopen() flag to 
+    RTLD_GLOBAL | RTLD_LAZY  which stops a most annoying segmentation fault 
+    on amd64. Patch reported upstream to Rmpi and Open MPI after a chase 
+    of almost two weeks.  Big thanks to Jeff Squires from Open MPI for his
+    help in narrowing this down.
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sun, 08 Feb 2009 08:51:19 -0600
+
+rmpi (0.5-6-2) unstable; urgency=low
+
+  * Rebuilt under Open MPI 1.3
+
+  * debian/control: (Build-)Depends: on Open MPI tightened to (>= 1.3)
+  * debian/control: (Build-)Depends: updated to r-base-(core|dev) (>= 2.8.2)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Mon, 26 Jan 2009 21:10:26 -0600
+
+rmpi (0.5-6-1) unstable; urgency=low
+
+  * New upstream release
+
+  * debian/control: (Build-)Depends: updated to r-base-dev (>= 2.8.0)
+  * debian/control: Standards-Version: upgradeded to current version
+  
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 06 Dec 2008 08:48:11 -0600
+
+rmpi (0.5-5-2) unstable; urgency=low
+
+  * debian/control: Set versioned Build-Depends on libopenmpi-dev (>= 1.2.4-5)
+
+  * configure.ac, configure: Patched to also search in /usr/lib/openmpi
+    for include/mpi.h and libraries; patch sent upstream; will be in next
+    (upstream) release 0.5-6  				(Closes: #456851)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 19 Dec 2007 16:22:44 -0600
+
+rmpi (0.5-5-1) unstable; urgency=low
+
+  * New upstream release
+
+  * debian/control: Split (Build-)Depends: on MPI libraries: 
+    	libopenmpi-dev [i386 amd64 alpha ia64 powerpc sparc], 
+  	lam4-dev [!i386 !amd64 !alpha !ia64 !powerpc !sparc]  
+    in other words we use LAM as the fallback where Open MPI is not avilable
+
+  * Built with R 2.6.0, so setting (Build-)Depends: to 
+    'r-base-(core|dev) >= 2.6.0' to prevent move to testing before R 2.6.0
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 24 Oct 2007 09:37:21 -0500
+
+rmpi (0.5-4-2) unstable; urgency=low
+
+  * src/Rmpi.c: Patch suggested by upstream to silence the (erroneous)
+    Open MPI 'osc pt2pt' warning message
+  
+  * debian/control: Add 'openmpi-bin' to Depends: as the mpirun (aka 
+    orterun) frontend is needed
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 10 Oct 2007 12:52:58 -0500
+
+rmpi (0.5-4-1) unstable; urgency=low
+
+  * New upstream release
+  * Built with R 2.6.0 release candidate, setting (Build-)Depends: to 
+    'r-base-(core|dev) >> 2.5.1' to prevent move to testing before R 2.6.0
+
+  * Switched to using Open MPI (instead of LAM/MPI) 
+  * debian/control: Set Build-Depends: to on libopenmpi-dev
+  
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 03 Oct 2007 20:31:28 -0500
+
+rmpi (0.5-3-1) unstable; urgency=low
+
+  * New upstream release
+  
+  * debian/rules: Simplified to cdbs-based one-liner sourcing r-cran.mk 
+  * debian/control: Build-Depends: updated to r-base-dev (>= 2.4.0)
+  * debian/control: Standards-Version: upgradeded to 3.7.2
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Thu, 12 Oct 2006 18:22:57 -0500
+
+rmpi (0.5-2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed,  5 Apr 2006 21:18:50 -0500
+
+rmpi (0.5-1-1) unstable; urgency=low
+
+  * New upstream release
+
+  * debian/post{inst,rm}: Really no longer call R to update html index
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Thu,  5 Jan 2006 20:54:37 -0600
+
+rmpi (0.5-0-1) unstable; urgency=low
+
+  * New upstream release
+
+  * debian/watch: Updated regular expression
+  * debian/post{inst,rm}: No longer call R to update html index
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Mon, 28 Nov 2005 20:35:21 -0600
+
+rmpi (0.4.9-2) unstable; urgency=low
+
+  * Rebuilt against newer lam library for C++ transition (Closes: #329486)
+  * debian/control: Updated Build-Depends: to lam4-dev (>= 7.1.1-3.2)
+
+  * debian/watch: Corrected regular expression (thanks, Rafael Laboissier)
+  * debian/post{inst,rm}: Call /usr/bin/R explicitly (thanks, Kurt Hornik)
+  * debian/control: Upgraded Standards-Version: to 3.6.2.1
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Thu, 22 Sep 2005 00:40:10 -0500
+
+rmpi (0.4.9-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Mon,  9 May 2005 21:17:05 -0500
+
+rmpi (0.4.8-2) unstable; urgency=low
+
+  * Rebuilt under R 2.0.0
+  * debian/control: Updated Build-Depends: and Depends: accordingly
+  * debian/post{inst,rm}: Only run build-help.pl if R is installed
+  * debian/watch: Added watch file
+  * debian/control: Added Suggests: r-cran-rsprng
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Fri,  8 Oct 2004 20:23:16 -0500
+
+rmpi (0.4.8-1) unstable; urgency=low
+
+  * Initial Debian Release
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sat, 10 Jul 2004 21:59:13 -0500
+
+
--- rmpi-0.6-3.orig/debian/rules
+++ rmpi-0.6-3/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+# 							-*- makefile -*-
+# debian/rules file for the Debian/GNU Linux r-cran-rmpi package
+# Copyright 2003-2010 by Dirk Eddelbuettel <edd@debian.org>
+
+include /usr/share/R/debian/r-cran.mk
+
+##extraInstallFlags="--configure-args=--with-mpi=/usr/lib/openmpi"
+extraInstallFlags="--no-test-load"
--- rmpi-0.6-3.orig/debian/copyright
+++ rmpi-0.6-3/debian/copyright
@@ -0,0 +1,34 @@
+This is the Debian GNU/Linux r-cran-rmpi package of Rmpi, an interface
+package for GNU R providing access to the MPI (Message-Passing
+Interface) API with interactive R slave functionalities.  Rmpi was
+written by Hao Yu.
+
+This package was created by Dirk Eddelbuettel <edd@debian.org>.
+The sources were downloaded from 
+	http://cran.us.r-project.org/src/contrib/
+
+The package was renamed from its upstream name 'Rmpi' to 'r-cran-rmpi'
+to highlight the fact that is it a CRAN package for R.
+
+Copyright (C) 2003 - 2008 Hao Yu
+
+License: GPL-2
+
+On a Debian GNU/Linux system, the GPL license (v2) is included in the file
+/usr/share/common-licenses/GPL-2.
+
+For reference, the upstream DESCRIPTION file is included below:
+
+    Package: Rmpi
+    Version: 0.4-8
+    Date: 2004-04-21
+    Title: Interface (Wrapper) to MPI (Message-Passing Interface)
+    Author: Hao Yu
+    Maintainer: Hao Yu <hyu@stats.uwo.ca>
+    Depends: R (>= 1.8.1)
+    Description: Rmpi provides an interface (wrapper) to MPI APIs. It also 
+    	     provides interactive R slave environment in which 
+    	     distributed statistical computing can be carried out.
+    License: GPL version 2 or newer
+    URL: http://www.stats.uwo.ca/faculty/yu/Rmpi
+    Packaged: Thu Apr 22 10:03:22 2004; hyu
--- rmpi-0.6-3.orig/debian/control
+++ rmpi-0.6-3/debian/control
@@ -0,0 +1,16 @@
+Source: rmpi
+Section: gnu-r
+Priority: optional
+Maintainer: Dirk Eddelbuettel <edd@debian.org>
+Build-Depends: debhelper (>= 7.0.0), cdbs, r-base-dev (>= 3.0.0~20130324), mpi-default-dev, mpi-default-bin
+Standards-Version: 3.9.4
+
+Package: r-cran-rmpi
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${R:Depends}, mpi-default-bin
+Suggests: r-cran-rsprng
+Description: GNU R package interfacing MPI libraries for distributed computing
+ This CRAN package provides an interface to the MPI (Message-Passing
+ Interface) API. It also provides an interactive R slave environment
+ in which distributed statistical computing can be carried out.
+
