Subject: pkg/17684: BSDPAN support for perl5
To: None <>
From: None <>
List: netbsd-bugs
Date: 07/22/2002 20:28:42
>Number:         17684
>Category:       pkg
>Synopsis:       BSDPAN support for perl5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 22 20:29:01 PDT 2002
>Originator:     Ron Roskens
>Release:        pkgsrc 2002-07-21
pkgsrc checked out from CVS on 2002-07-21.
Anton Berezin <tobez at> wrote a set of perl modules for FreeBSD called BSDPAN. These modules which allows you to do use CPAN to install a module and have it be recorded into the FreeBSD ports database.

The following patches will add support to lang/perl5/ such that this functionality exists under the NetBSD package system.

download perl5-bsdpan.diff.gz and bsdpan-netbsd.diff.gz from into /usr/pkgsrc/distfiles/

cd /usr/pkgsrc/lang/perl5/
gzip -dc /usr/pkgsrc/distfiles/perl5-bsdpan.diff.gz | patch -p1
add "PERL_USE_BSDPAN=YES" to /etc/mk.conf
make install
perl -MCPAN -e shell
# at this point you should be able to install any perl module and see it show up the packages system. It does not affect installing packages via pkgsrc, they still are packaged as p5-*.

One caveat: the current modules do not support conflicts between p5-* packages and bsdpan-* packages.