Pakku::RecMan
- Recommendation Manager for Pakku
Parse all distributions archives in store
directory and add them to database
recman.raku --database=recman.sqlite --store=/path/to/distributions/archives update
serve
the disributions's meta
and archives, ( also can cooperate with other Pakku::RecMan
s )
PAKKU_RECMAN_HOST=localhost PAKKU_RECMAN_PORT=4242 recman.raku --database=recman.sqlite --store=/store --cooperate=recman.cpan.org --cooperate=recman.pakku.org serve;
pakku add Pakku::RecMan
# or
zef install Pakku::RecMan
Pakku::RecMan
is a Recommendation Manager for Pakku
-
store
is anIO::Path
directory containing the*.tar.gz
archives of thedistributions
you want to serve. -
To request
meta
of a distribution:http://recman.pakku.org/meta?name=MyModule&ver=0.0.1
-
Download
archive
of a distribution:http://recman.pakku.org/archive/distribution-path-provided-in-meta.tar.gz
( The returnedmeta
will haverecman
source
key containing theurl
of the archive ) -
Currently
recman.pakku.org
hasmeta
andarchives
for allRaku
distribution
's inp6c
andcpan
, ( Except distributions with issues inMETA
file ) -
Can request any distribution's
meta
, eg:http://recman.pakku.org/meta?name=Inline::Perl5&ver=0.50
-
When running in
cooperative
mode,RecMan
s can cooperate together to fulfill a request
Having MyModule1
and MyModule2
served by local RecMan
running in cooperative mode with other RecMan
s. Requesting MyModule1
's meta
will provide MyModule1
from the local RecMan
and dependencies from the cooperative RecMan
s
-
I'm using crai to mirror locally the archives of the distributions in
p6c
andcpan
-
database
schema is stolen fromcrai
and modified to suitPakku
's needs
Haytham Elganiny elganiny.haytham@gmail.com
Copyright 2020 Haytham Elganiny
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.