OK, you can actually do this. The problem is that if you really know what you're doing, it's trivial to get this working, and if you don't you have to learn an awful lot about how the everything works through trial and error. This could be eliminated if mcpani autodetected an empty dir and setup the appropriate files (it only does this when you specify --mirror, which will suck down the universe).
Here's what I did:
- Inside CPAN empty dir, create authors and modules dirs.
- touch authors/01mailrc.txt.gz
- touch modules/02packages.details.txt.gz
- touch modules/03modlist.data.gz
- use mcpani to --add your pkg
- mcpani --inject -v
This will create a valid "micro CPAN" with just a couple of packages in it. For a secure server, try using sshfs and fuse to mount a remote ssh directory, and make it look like a normal directory.
cpanp needs a little help next. First you add "custom source" and use file:///yourcpan (obvious part). Next, you need to help cpanp find your file by installing "package-with-dashes-and-version". The version is seems to be necessary, otherwise it will just stick with an old version.
Does anyone know how to make cpanp realize that there is a new version of a local package (so we don't have to specify the version at the prompt)?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.