Pair Networks
None

SYNOPSIS

   None

DESCRIPTION

BSDPAN::ExtUtils::Packlist overrides write() sub of the standard perl module ExtUtils::Packlist.

The overridden write() first calls the original write(). Then, if the Perl port build is detected, it returns quietly.

If, however, the Perl module being built is not a port, write() obtains the list of installed files that ExtUtils::Packlist internally maintains. Then it tries to deduce the distname, the version, and the name of the main .pm file. Then it scans the *.pm files that constite the module, trying to find what to use as the module comment (short description) and the description.

After gathering all this information, the overridden write() invokes pkg_create(1), hereby registering the module with FreeBSD package database.

If any of the above steps is unsuccessful, BSDPAN::ExtUtils::Packlist quietly returns, with the result which is equivalent to pre-BSDPAN functionality.

AUTHOR

Anton Berezin, tobez@tobez.org

SEE ALSO

perl(1), BSDPAN(3), BSDPAN::Override(3), pkg_create(1).