[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: webb app import directory



On Sun, 2010-06-27 at 22:57 +0200, glaskoncILLa wrote:
> 
> Let me describe this little better (Sean already knows some details):
> 
> - its all about IP network/addresses management aplication, mostly perl 
> CGI's on Mysql with some HTML and CSS. Upload directory is for 
> spreadsheets for importing data in applications.
> 
> - is it /usr/share/PACKAGE the best place for CGI's? Also what about 
> permissions there, CGI's must be executabile and seems to me all other 
> apps in /usr/share are root:root so I have to give x for everybody else 
> and that surely doesnt look like good thing..

It's OK - they shouldn't be in anyone's path.  You might want it to
be /usr/share/PACKAGE/cgi-bin if there are other non-cgi scripts
in /usr/share/PACKAGE for running from cron or suchlike.


> - what about changes from original source? Upstream application isn't 
> FHS compatible and I have made several changes in original code to 
> change paths and to make application use dbconfig-common generated file 
> for database connection credentials, do I have to describe/make diff's 
> of those changes?

There is normally a diff which is the debian packaging.  You can chunk
this down to smaller bits and use a patch system or VCS packaging
system. Questions about this stuff are probably better done on -mentors.


> - also, there are few scripts which can be executed from 
> terminal/crontab for automatic syncing against DNS, OCS inventory tool 
> and SNMP based collecting addresses directly from devices, /usr/bin?

If you expect them to be run from the command-line then /usr/bin but if
they are to be run from /etc/cron.d/PACKAGE or something like that, then
they could be in /usr/share/PACKAGE instead.


> Maybe its the best if I attach beta version of package so if any of you 
> guys have half hour free to check what thats all about and point me in 
> right direction with locations, I would really appreciate that and you 
> be surely get some extra points for your version of heaven because I'm 
> working pretty hard, packaging and perl are new to me...

There is a quite active and helpful group of perl packagers, so you
might also consider asking for help / review for people on debian-perl
mailing list.

Cheers,
					Andrew McMillan.

-- 
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com                            +64(272)DEBIAN
     Do nothing unless you must, and when you must act -- hesitate.
------------------------------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: