[Xastir-Dev] New Directory Structure

Curt Mills, WE7U hacker at tc.fluke.com
Wed Jun 18 11:51:25 EDT 2003


On Tue, 17 Jun 2003, Alan Crosswell wrote:

> Attached find a replacement patch for the
> xastir-datadir.patch.  It sticks XASTIR_DATA_BASE in CPPFLAGS instead of
> in config.h, which makes the Makefile GNU compliant by permitting
> $prefix (which $datadir is based on) to be redefined at make time (as
> well as at configure time).  config.h considered harmful:-)

Alan:  The new patch appears to work just fine!

So...  What do people think of the new structure?  Personally, I
like it, but am a bit concerned as to how to get existing users
migrated with little pain.  The benefits of this outweigh the pain
of migrating, right?

So far I've needed to do this:


    Close all Xastir sessions by all users
    mv /usr/local/xastir /usr/local/share
    Edit ~/.xastir/config/xastir.cnf:  Change "/usr/local/xastir" to
        "/usr/local/share/xastir".


Is there a way to automate the above, perhaps detecting during "make
install" that the old heirarchy is in place, and moving things
automatically/editing the config file?  If we could automate it so
that the user doesn't have to worry about it, we could put these
patches in fairly soon.  I'd hate to have to ask users to hand-edit
their config files, or start a new config from scratch.

It'd be nice to do the moving of files out of /var/tmp at roughly
the same time, although I think those are all hard-coded in the
sources and not in the config file, so it's not as critical.  We can
actually do it anytime.  Leaving old copies of the files in /var/tmp
doesn't really hurt anything either.

-- 
Curt Mills, WE7U                    hacker_NO_SPAM_ at tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math!"
"Windows:  Microsoft's tax on computer illiterates!" -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"




More information about the Xastir-dev mailing list