Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: usage of LIBDIR



If we want to have a chance to see CrossFire included in some
of the major Linux distributions (Red Hat, Debian, ...) or in
some other OpenSource packages, there are a few things that
should be changed in the directory structure.

In principle, the $(prefix)/lib directory should be read-only.
This is not the case with CrossFire, because several files
(highscore, temp_maps, bookarch) are modified by the program.
These files should go into $(prefix)/var.

Also, all files that are not platform-specific should go into
$(prefix)/share, not $(prefix)/lib.  Actually, this means that
all files that do not go into $(prefix)/var should go there.

Changing this will be annoying because there are several places
in the code that have to be cleaned up (e.g. using a symbol
VARDIR instead of LIBDIR).  But that will have to be done sooner
or later.

There is also one problem with the random map generator, because
it needs write access to the maps directory, which should not be
allowed in $(prefix)/share (or /lib).  Is there any solution to
that, besides re-writing the function that saves the maps?

-Raphaël
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]