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

Re: /usr/local again...



Richard Kaszeta <kaszeta@me.umn.edu> writes:

> The current policy amounts to "don't assume anything about
> /usr/local, but go ahead and try and add/remove stuff from it
> anyways". 

What about this?

The only allowed changes to /usr/local are creating directories as
placeholders on package installation and removing the directories, if
empty, on package removal.  The postinst and prerm scripts must NOT
fail if either of these operations fail.  For example, the emacs
package will contain
	mkdir -p /usr/local/lib/emacs/site-lisp || true
in the postinst, and
	rmdir /usr/local/lib/emacs/site-lisp && rmdir \
	  /usr/local/lib/emacs || true
in the prerm.

You may not create any directories off of /usr/local besides those
listed in FSSTND 4.8.  You may not remove any of the directories
mentioned in 4.8, even if you created them.

If you do create a directory in /usr/local for local additions to a
package, you must ensure that the package searches that directory
before the equivalent directory in /usr.


Guy


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: