Friday, May 15, 2009

ASDF-INSTALL and Cliki

This article should be posted before The annoyance of ASDF-INSTALL, but it is also the time factor of blog debut.

ASDF-INSTALL and Cliki works together as a Common Lisp's answer to CPAN, I use it to get Common Lisp libraries for a long time, but what I want to say is how to create your own package and tell it to Cliki.

  1. Make a gzipped tarball of the ASDF system, arranged to unpack into a subdirectory systemname_version.

    $ tar -cvzf systemname_version.tar.gz systemname_version/

  2. Cliki require that all packages are accompanied by detached PGP signatures.

    $ gpg -b -a mail-reader_0.1.tar.gz

    Note I have runned Linux in virtual machine for a long time and gpg complained it can not get enough random feeds when I want to generate a new key pair.

    $ gpg —gen-key

    Finally, I got sufficient random feeds by run this command in putty and run

    $ cat /etc/random

    in eshell in emacs in another putty process. I don't known why, it just works.

  3. Upload the package and signature file to a web server.
  4. Create a page on cliki with the same name as the package which content should contain

    :(package "http://www.example.com/lisp/mail-reader_0.1.tar.gz")

    Note you should not use "A N other" as Your name for editing, It let me stumble until I realize it. but why is it default?

No comments:

Post a Comment