forked from shinken-solutions/shinken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FOR_PACKAGERS
41 lines (24 loc) · 1.72 KB
/
FOR_PACKAGERS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
=== THANKS :) ====
Hi,
First of all : THANKS for trying to make a package of Shinken :)
I try to make the setup.py useful to you. It will install the shinken
library to the classic python way (in site-package).
=== Requirements ===
You will need Python >=2.4 (for 2.4 and 2.5 you will need the multiprocessing package from http://pypi.python.org/pypi/multiprocessing/ too)
You will need the pyro lib too. It must already have a package. If not, take if from pypi (easy_install)
=== Create the Package ===
You can change the place you want to put etc and var in the file setup_parameters.cfg. You can also change
the owner of theses dir (and ALL files in them) in this file.
But WARNING (bis) : if you set a --root (example =/tmp/something) it will not update the owner of the /etc and /var directory (calling with a --root is for having all files to create a package, so you don't need changing owners).
Example when you call :
python setup.py install --root=/tmp/something --record=INSTALLED_FILES --install-scripts=/usr/bin
(no trailing / for install_scripts)
You get all files to package in the file INSTALLED_FILES (and only the /tmp/moncul is changed, so it's ok for your system ;)).
The setup.py will also generate the bin/default/shinken file that will be install in /etc/default/shinken. In it, you get
all variables used by the init.d scripts. It will generate the etc and var directory with the values you give in the setup cfg file.
With the python lib + etc + var it should be ok :)
I don't know what more you need exactly, so please ask in the mailing list at
https://lists.sourceforge.net/lists/listinfo/shinken-devel
or directly via my email : [email protected]
And again : thanks a lot, a tool without package is nothing :)
Jean