[Mageia-dev] Need mentor(s) to become a Mageia packager

Guillaume Rousse guillomovitch at gmail.com
Mon Jul 25 13:09:29 CEST 2011


Le 21/07/2011 23:46, Michael Scherer a écrit :
> Le jeudi 21 juillet 2011 à 16:14 -0400, Vincent a écrit :
>> Hi All,
>>
>> I am still trying to pack ZoneMinder for Cauldron.
>> Now rpms are generated and rpmlint is not complaining, but I am still
>> sure, it's not OK :) , that's why I need help.
>> Attached is the spec file, if somebody could have a look.
>>
>> Here are my questions:
>> - where should go the installed files? (Zoneminder provides perl
>> modules, the site itself, CGI services , doc and conf).
>
> conf ->  /etc/ . I would try to see how does others distribution, to have
> at least a similar path to ease the work of people changing distribution
>
> site ->  /var/www/zoneminder. Outside of the webroot, so people can
> modify it with apache configuration
Using /var for application code is a remnant of old practices, and a 
mistake morevoer, as /var is supposed to be for variable files only. 
You'd better use /usr/share/zoneminder (or a subdirectory) instead.

> apache configuration ->  /etc/httpd/conf.d/webapps.d/ , iirc
>
> perl module ->  like the other ( maybe jq can tell us the details )
The shared perl tree is for perl libraries. Private perl modules are 
better installed into a private tree, such as /usr/share/zoneminder/lib

> cgi ->  I think there is something in /usr/lib/cgi-bin, not sure. I guess
> checking other cgi would help.
cgi can be installed anywhere, provided they are marked as executables 
in apache configuration.

It's even better to keep cgi under the same web root directory, to make 
web server ACLs easier.

You can have a look at bugzilla spec file for an exemple of a large perl 
CGI web application.
-- 
BOFH excuse #3:

electromagnetic radiation from satellite debris


More information about the Mageia-dev mailing list