On Tue, 11 Jun 2002, Jon Clausen wrote:

> Hi list
> 
> In the continuing story of my pet project "Blinder" to control my blinds
> from a Bering box:
> 
> I'm getting very close now. :)
> So close that I hope to wake up to an artificial sunrise before the 
> weekend...
> 
> So close, in fact, that I'm beginning to start thinking about making a 
> .lrp out of it. But before I do that I would like to get some advice on
> where the different parts belong in the filesystem.
> 
> As it is most of the scripts/C-executables live in a subdir to
> /usr/local/bin. One thing is that I would like to be FHS-compliant, but
> mainly I want my stuff to be in the 'correct' places wrt LEAF/Bering.
> And as I have absolutely no experience in these matters, I'm clueless
> both wrt the FHS *and* common programming practise. :-P

If you have not yet read the latest FHS, you should.  LEAF generally
follows the principles outlined there. (http://www.pathname.com/fhs/)

> The parts involved are:
> Scripts (The 'main' constituents. Called by cron as needed, plus various
> support functions.)
> C-executables (handle actual I/O to the parport)

executable "scripts" and binaries are not usually distinguished... rather
their purpose is.  You probably want to put both in /usr/bin.

> Data files

Somewhere in /var, depending on their purpose.  Note where lrpkg puts its
files.

> Config files

If you only have one, it might make sense to put it in /etc. If you have
multiple config files, you should create a directory in /etc.

> 
> And ones that are more or less self evident (wrt to placement in the
> FS):
> Temp files
> Cgi-scripts
> html (well, actually almost everything is cgi, and I think I'm gonna
> kill the last of the html too)
> 
> Questions involve (but aren't limited to ;)
> - Where do the 'programs' go? (this is my primary concern)

Programs necessary to bring the operating system up are in /bin and
/sbin... once the operating system is functional, most executables should
be in /usr/bin and /usr/sbin.  The distinction between /bin and /sbin is
of limited use on a LEAF box, since most logins are to root.

> - Am I 'allowed' (or even encouraged) to put stuff in /etc ?

Yes.

> - Where does one keep app-specific data?

/var

> - Where does the stuff definitely *not* go?

/
/proc (unless you are writing kernel drivers)
/dev
/root

You probably don't want to put your files in /sbin or /usr/sbin.

/usr/local/* is really only used if you don't want to create a dedicated
package.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to