Commit dcfb9be9 authored by Łukasz Nowak's avatar Łukasz Nowak

Name distribution slapos.cookbook

parent 9039007c
*pyc *pyc
build build
dist dist
slapos.UNKOWN_NAME_TODO.egg-info slapos.cookbook.egg-info
0.1 (unreleased) 0.1 (unreleased)
================ ================
* All slapos.recipe.* became slapos.UNKOWN_NAME_TODO:* [Łukasz Nowak] * All slapos.recipe.* became slapos.cookbook:* [Łukasz Nowak]
slapos.UNKOWN_NAME_TODO slapos.cookbook
======================= ===============
...@@ -3,7 +3,7 @@ import glob ...@@ -3,7 +3,7 @@ import glob
import os import os
version = '0.1' version = '0.1'
name = 'slapos.UNKOWN_NAME_TODO' name = 'slapos.cookbook'
long_description = open("README.txt").read() + "\n" + \ long_description = open("README.txt").read() + "\n" + \
open("CHANGES.txt").read() + "\n" open("CHANGES.txt").read() + "\n"
......
...@@ -11,7 +11,7 @@ Example buildout:: ...@@ -11,7 +11,7 @@ Example buildout::
[zlib] [zlib]
# Use standard configure, make, make install way # Use standard configure, make, make install way
recipe = slapos.UNKOWN_NAME_TODO:build recipe = slapos.cookbook:build
url = http://prdownloads.sourceforge.net/libpng/zlib-1.2.5.tar.gz?download url = http://prdownloads.sourceforge.net/libpng/zlib-1.2.5.tar.gz?download
md5sum = c735eab2d659a96e5a594c9e8541ad63 md5sum = c735eab2d659a96e5a594c9e8541ad63
slapos_promisee = slapos_promisee =
...@@ -31,7 +31,7 @@ Example buildout:: ...@@ -31,7 +31,7 @@ Example buildout::
file:share/man/man3/zlib.3 file:share/man/man3/zlib.3
[file] [file]
recipe = slapos.UNKOWN_NAME_TODO:buildcmmi recipe = slapos.cookbook:buildcmmi
url = ftp://ftp.astron.com/pub/file/file-5.04.tar.gz url = ftp://ftp.astron.com/pub/file/file-5.04.tar.gz
md5sum = accade81ff1cc774904b47c72c8aeea0 md5sum = accade81ff1cc774904b47c72c8aeea0
environment = environment =
...@@ -62,7 +62,7 @@ Example buildout:: ...@@ -62,7 +62,7 @@ Example buildout::
[somethingelse] [somethingelse]
# default way with using script # default way with using script
recipe = slapos.UNKOWN_NAME_TODO:build recipe = slapos.cookbook:build
url_0 = http://host/path/file.tar.gz url_0 = http://host/path/file.tar.gz
md5sum = 9631070eac74f92a812d4785a84d1b4e md5sum = 9631070eac74f92a812d4785a84d1b4e
script = script =
......
...@@ -13,7 +13,7 @@ Usage ...@@ -13,7 +13,7 @@ Usage
download download
[download] [download]
recipe = slapos.UNKOWN_NAME_TODO:download recipe = slapos.cookbook:download
url = https://some.url/file url = https://some.url/file
Such profile will download https://some.url/file and put it in Such profile will download https://some.url/file and put it in
......
...@@ -15,18 +15,18 @@ Buildout configuration: ...@@ -15,18 +15,18 @@ Buildout configuration:
... ...
[java] [java]
recipe = slapos.UNKOWN_NAME_TODO:java recipe = slapos.cookbook:java
By default it will fetch Java 6u25, but you might want to install from another location or another version like this:: By default it will fetch Java 6u25, but you might want to install from another location or another version like this::
[java] [java]
recipe = slapos.UNKOWN_NAME_TODO:java recipe = slapos.cookbook:java
download-url = ftp://location/to/self-extracting/java.bin download-url = ftp://location/to/self-extracting/java.bin
Or you can install openjdk instead. Or you can install openjdk instead.
[java] [java]
recipe = slapos.UNKOWN_NAME_TODO:java recipe = slapos.cookbook:java
flavour = openjdk flavour = openjdk
......
librecipe librecipe
========= =========
Thanks to using slapos.UNKOWN_NAME_TODO:librecipe it is easier to create zc.buildout recipes in SlapOS environment. Thanks to using slapos.cookbook:librecipe it is easier to create zc.buildout recipes in SlapOS environment.
How to use? How to use?
----------- -----------
......
...@@ -13,7 +13,7 @@ Usage ...@@ -13,7 +13,7 @@ Usage
parts = template parts = template
[template] [template]
recipe = slapos.UNKOWN_NAME_TODO:template recipe = slapos.cookbook:template
url = http://server/with/template url = http://server/with/template
# optional md5sum # optional md5sum
md5sum = 1234567890 md5sum = 1234567890
......
...@@ -39,7 +39,7 @@ class BaseSlapRecipe: ...@@ -39,7 +39,7 @@ class BaseSlapRecipe:
def __init__(self, buildout, name, options): def __init__(self, buildout, name, options):
"""Default initialisation""" """Default initialisation"""
self.name = name self.name = name
options['eggs'] = 'slapos.UNKOWN_NAME_TODO' options['eggs'] = 'slapos.cookbook'
self.options = options self.options = options
self.logger = logging.getLogger(self.name) self.logger = logging.getLogger(self.name)
self.slap = slap.slap() self.slap = slap.slap()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment