Olivier LI-KIANG-CHEONG a écrit :
> Hi,

Hello

> ok for your patch, thx :-) But why not include this modification in the 
> setup.py ?

+1

> because reading the readme, we must use "sudo python setup.py install" 
> or not ?

setup should usable with user privileges (required by pseudo install used by 
packaging systems)

Shinken also doesn't require admin privileges to run and so could be installed 
in user home

> Olivier LI-KIANG-CHEONG
> mail : oliv...@gezen.fr
> http://lkco.gezen.fr
> 
> 
> 
> Le 14/08/2010 18:01, Gerhard Lausser a écrit :
>> Hi,
>>
>> please forget what i wrote about patches. I think there is an easier way.
>> What do you think about modifying such paths with sed?
>>
>> %build
>>
>> # Force python 2.6
>> %{__sed} -i 's/\/env python$/\/env python26/' bin/*.py
>>
>> # Set distribution-specific absolute pathnames
>> if test -f /etc/redhat-release
>> then
>> # RedHat/CentOS
>>    %{__sed} -i 's/workdir=..\/var/workdir=\/var\/lib\/shinken/' etc/*.ini
>>    %{__sed} -i
>> 's/modulespath=..\/shinken\/modules/\/usr\/local\/lib\/python2.6\/dist-packa
>> ges\/shinken\/modules/' etc/brokerd.ini
>> else
>> # Debian/Ubuntu and others
>>    %{__sed} -i 's/workdir=..\/var/workdir=\/var\/lib\/shinken/' etc/*.ini
>>    %{__sed} -i
>> 's/modulespath=..\/shinken\/modules/\/usr\/lib\/python2.6\/site-packages\/sh
>> inken\/modules/' etc/brokerd.ini
>> fi
>>
>> ...
>>
>> Cheers,
>> Gerhard


-- 
Stéphane

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to