in reply to Local Library Repository

Hello blackadder, I might be missing your point here but couldn't you just do (assuming h: is your cd-rom drive):
PPM>install h:\somelibdir\foo
-- vek --

Replies are listed 'Best First'.
Re: Re: Local Library Repository
by talwyn (Monk) on Jul 04, 2002 at 23:45 UTC
    To set up a local repository

    1. D/L all the PPD files for the modules concerned to a directory (perlmodules)
    2. Follow the links in the PPD to D/L the module tar.gz files.
    3. Create subdirectories for each relevant architecture and move archives to appropriate directory.
    4. Edit The location in each PPD to reflect a file://protocol and appropriate relative path (use '/') form for each architecture.
    5. start PPM
    6. set repository LOCAL d:\perlmodules
    7. search (best done on a box w/o inet access)
    8. If the modules show perform a test install. If it works you are ready to transfer to CDROM if not locate the mispelling or bad link and try again.
    9. reset your PPM LOCAL repository to the CDROM drive
    10. Issue a set save command to save configuration.
    11. Other stations only require the repository setting to access the CDROM. You may want to remove any other default repositories by issuing set repository --remove repositoryname.

    Talwyn

      Many Thanks for the help, I'll have ago and see, although I am struggling with point number 4, because I cannot find a PPD file for Lanman library (for example), and when tried the same thing with AdminMisc (In the PPD file, I edit the line
      <CODEBASE HREF>="file://c:/perlmodules/adminmisc/adminmisc_5006.tar")
      PPM came back with error "installing package and error reading the above file"?
      uhmmmmm?!
        You need to make the directory that holds the tar file the same as the architecture. It is expected by the ppm I believe. see Excerpt from storable below:
        storable.ppd
        <SOFTPKG NAME="Storable" VERSION="1,0,10,0"> <IMPLEMENTATION> <CODEBASE HREF="file://f:/Perlmodules/MSWin32-x86-multi-thread/Sto +rable.tar.gz" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread" /> <OS NAME="MSWin32" /> </IMPLEMENTATION> <ABSTRACT>persistency for perl data structures</ABSTRACT> <TITLE>Storable</TITLE> <AUTHOR>Raphael Manfredi (Raphael_Manfredi@pobox.com)</AUTHOR> </SOFTPKG>
        As for those modules you don't have a ppd for checkout Activestate's docs How to make a PPM Package

        Talwyn