Subject: pkg/17684: BSDPAN support for perl5
To: None <gnats-bugs@gnats.netbsd.org>
From: None <roskens@elfin.net>
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
>Closed-Date:
>Last-Modified:
>Originator:     Ron Roskens
>Release:        pkgsrc 2002-07-21
>Organization:
>Environment:
pkgsrc checked out from CVS on 2002-07-21.
>Description:
Anton Berezin <tobez at tobez.org> 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.
>How-To-Repeat:

>Fix:
download perl5-bsdpan.diff.gz and bsdpan-netbsd.diff.gz from ftp://ftp.elfin.net/pub/elfin/ 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.
>Release-Note:
>Audit-Trail:
>Unformatted: