tech-pkg archive

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

PKG_SYSCONFDIR.${PKG_SYSCONFVAR}



Hi

A recent change to pkgtools/pkg_comp has broken something for me, and I 
don't think its right.

What I do with packages where I actually modify the configuration files, 
such as sudo (and now pkg_comp) is provide a specific location in the root 
filesystem for these only, so that there is nothing in /usr/pkg/etc which 
I need to backup. For instance, I was using

PKG_SYSCONFDIR.sudo=		/etc
PKG_SYSCONFDIR.pkg_comp=	/root/pkg_comp

in my pkg_install.conf but this does not now work for pkg_comp, since it 
was changed to set --sysconfdir=${PKG_SYSCONFBASE} (which btw does not 
seem correct, according to the pkgsrc guide - should be as it was, 
SYSCONFDIR)

% cd /usr/pkgsrc/pkgtools/pkg_comp
% make show-var VARNAME=PKG_SYSCONFBASE
/usr/pkg/etc
% make show-var VARNAME=PKG_SYSCONFSUBDIR
pkg_comp
% make show-var VARNAME=PKG_SYSCONFVAR
pkg_comp
% make show-var 'VARNAME=PKG_SYSCONFDIR.${PKG_SYSCONFVAR}'
/root/pkg_comp
% make show-var VARNAME=PKG_SYSCONFDIR
/root/pkg_comp

note that when I set PKG_SYSCONFDIR.pkg_comp in this way, which I 
understand this is the correct method for the user to specify the config 
files location, the files are installed ok (in /root/pkg_comp) but the 
package cannot find them, since it is looking in the 
wrong place (/usr/pkg/etc/pkg_comp)

iain


Home | Main Index | Thread Index | Old Index