I don't know how much Webware wants to follow the Debian conventions or
the Linux File Hierarchy Standard since it is multi-platform, but here's
what a Debian package would require. (Although you'd need to check the
policy docs to verify 100%, or 100%% :).
On Tue, Apr 10, 2001 at 12:00:05AM -0500, Ian Bicking wrote:
> > ** Program files like Page.py which are normally modified only by
> > the developers.
Top-level script in /usr/bin. Init file in /etc/init.d/. Pid file
> > ** Config files.
The difference between /usr and /var is that /usr is for files that
change only when the sysadmin upgrades things, so they can be mounted
read-only most of the time or shared via /nfs. In contrast, /var must
be on a read-write partition and must be local to the machine.
So files which are modified as the program is running go in /var.
Log files would go into /var/log/webware/.
The difference between /usr/lib and /usr/share is that /usr/lib is
for files which vary by architecture (x86, PPC, Alpha, etc) and
/usr/share is for architecture-independent files. Python scripts are
obviously architecture-independent. However, /usr/share is a new
phenomenon so the migration there isn't necessarily complete.
> A Debian package can generate the directories in /usr/local, I
> believe, just not put anything in them.
Yes. It should create the directories upon installation, and I think
it can remove them on uninstallation *if they are empty*.
> I'm not too excited about
> /var/lib/webware, but that has a certain parallel with /var/www, or
> /var/lib/mysql. But CGI scripts go in /usr/lib/cgi-bin...? I don't
> understand the distinction Debian makes there.
I was going to say CGI scripts go into /usr because the web server has
no business editing them while it's running, but obviously the web
server has no business editing HTML files either. Perhaps it was an
arbitrary decision. Or perhaps it's because anybody in the web design
group may want to edit an HTML file at any time, whereas installing a
CGI script is like installing a program and has the same security
/var/www was an arbitrary Debian decision. Previously it was
/var/web/webspace, which was too inconvenient to type, and other systems
put it in lots of other places (including /etc/htdocs and /home/htdocs,
-Mike (Iron) Orr, iron@... (if mail problems: mso@...)
http://mso.oz.net/ English * Esperanto * Russkiy * Deutsch * Espan~ol