Subject: Re: kmenu doesn't work w diskless -current
To: Louis Guillaume <lguillaume@berklee.edu>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 06/07/2005 08:56:14
On Tue, 7 Jun 2005, Louis  Guillaume wrote:

> > Do your net-booted machines have a ${PKG_SYSCONFDIR}/xdg/menus subtree?
> > With the same contents as you locally booted system?
>
> Wow. That's it...
>
> # diff -r /mnt/etc/xdg /etc/xdg
> Only in /etc/xdg/menus: applications.menu
>
> ... I didn't realize that /etc/xdg was there.
>
> But how did that applications.menu get clobbered?
> Was this stored elsewhere before?
> Surely pkg_delete doesn't clobber stuff in $PKG_SYSCONFDIR ?

It never got removed.

Since you have a shared /usr and /var/db/pkg, I assume you only install
the package one time.

But your $PKG_SYSCONFDIR is not shared, so the configurations are only
installed one time -- and only installed on the system where you did the
install.

You may want to have a shared $PKG_SYSCONFBASE also. But that may cause
problems for your shared use. Another idea is to use environment variables
for KDE to point to correct files.

See http://www.netbsd.org/Documentation/pkgsrc/faq.html#faq.conf

http://www.netbsd.org/Documentation/pkgsrc/pkginstall.html#conf-files


Also have a look at the /usr/pkg/share/examples/ directories -- these
contain the files that could be copied into place on each system.

This reminds me ... someone had mentioned before adding an option to maybe
pkg_add or another tool that will recreate the etc configurations -- then
you could run that on each system to populate its own configuration
directory. I don't think this exists yet.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/