NAME
mcpani -- A command line tool to manage a CPAN Mini Mirror.
SYNOPSIS
mcpani [options] < --add | --update | --mirror | --inject >
Commands:
--add Add a new package to the repository
--module Name of the module to add
--authorid Author ID of the module
--modversion Version number of the module
--file tar.gz file of the module
--update Update local CPAN mirror and inject modules
--mirror Update local CPAN mirror from remote
--inject Add modules from repository to CPAN mirror
Options:
-h, --help This synopsis
-H, --man Detailed description
-l, --local local location for CPAN::Mini Mirror
-r, --remote CPAN mirror to mirror from
-v, --verbose verbose output
-V, --version Version information.
OVERVIEW
mcpani is a command-line brief description goes here.
COMMAND LINE OPTIONS
--add
Add a module to the repository for later inclusion in the CPAN Mini mirror. The add command requires the follow parameters:
- --module
-
This is the package name of the module.
-
A CPAN 'like' author ID for the module. The author ID does not need to exist on CPAN.
- --modversion
-
Version number of the module. This must match the version number in the file name.
- --file
-
File name and path of the module. The file name must follow the standard CPAN naming convention (the resulting file from a
make tardist
).
Example:
mcpani --add --module CPAN::Mini::Inject --authorid SSORICHE
--modversion 0.01 file ./CPAN-Mini-Inject-0.01.tar.gz
--update
Update the local CPAN Mini mirror from remote then inject the modules in the repository. This is the same as running mcpani --mirror
then mcpani --inject
--mirror
Update the local CPAN Mini mirror from CPAN.
--inject
Add the repository modules into the CPAN Mini mirror.
-l, --local
A local directory to store the CPAN Mini mirror in. Specifying this option overides the value in the config file.
-r, --remote
A CPAN site to create the local CPAN Mini mirror from.
-v, --verbose
Display verbose processing information
-V, --version
Display version information.
CONFIGURATION FILE
mcpani uses a simple configuration file in the following format:
local: /www/CPAN
remote: ftp://ftp.cpan.org/pub/CPAN ftp://ftp.kernel.org/pub/CPAN
repository: /work/mymodules
passive: yes
Description of options:
local
location to store local CPAN::Mini mirror (*REQUIRED*)
remote
CPAN site(s) to mirror from. Multiple sites can be listed space separated. (*REQUIRED*)
repository
Location to store modules to add to the local CPAN::Mini mirror.
passive
Enable passive FTP.
mcpani will search the following four places in order:
file pointed to by the environment variable MCPANI_CONFIG
$HOME/.mcpani/config
/usr/local/etc/mcpani
/etc/mcpani
AUTHOR
Shawn Sorichetti <ssoriche@coloredblocks.net>
Copyright & License
Copyright 2004 Shawn Sorichetti, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.