Subject: Pkgsrc.pm
To: None <tech-pkg@netbsd.org>
From: Masao Uebayashi <uebayasi@soum.co.jp>
List: tech-pkg
Date: 03/06/2002 22:30:58
Hello,

I've created a Perl5 module to use internal functions of pkg_*
commands.  Currently, the only available function is pmatch().

  oratosquilla % cat test.pl
  use Pkgsrc;
  print Pkgsrc::pmatch('foo>=1.0', 'foo-0.1.2'), "\n";
  print Pkgsrc::pmatch('foo>=1.0', 'foo-3.4.5'), "\n";
  exit(0);
  oratosquilla % perl test.pl
  perl test.pl
  0
  1
  oratosquilla %

You need two archives.

  http://www.re.soum.co.jp/~uebayasi/netbsd/libpkgsrc-20020306.shar
  http://www.re.soum.co.jp/~uebayasi/netbsd/p5-Pkgsrc-20020306.shar

Regards,
Masao