HEADS UP: BIND Removal. Short instructions for migration to pkgsrc-BIND

Jeremy C. Reed reed at reedmedia.net
Mon Apr 12 14:45:29 PDT 2010


On Mon, 12 Apr 2010, Jan Lentfer wrote:

> > > > named_flags="-c named.conf"
> > > >       
> > 
> > Why?
> >   
> If I don't set it named refuses to start with:
> Apr 12 21:58:49 epia named[49440]: none:0: open: /etc/named.conf: file not
> found

I propose that the package be fixed so it is built with 
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR:Q}

It currently uses /etc as a convenience for some, but that is 
inconsistent with pkgsrc.

> > named_program="/usr/pkg/sbin/named"
> >   
> > The script already sets "command". Maybe you have a conflict with
> > named_program in etc/defaults/rc.conf?

In addition, I propose that the rc.d script name and the defined "name" 
should be the same, like name="named9". (Can't really rename the 
script to "named" because of conflicts.)

> > > > # chown -R named /etc/namedb
> > > >       
> > 
> > But that doesn't help if you need to temporarily revert to other named. Set
> > alternative using named_flags="-u bind" or set BIND_USER and BIND_GROUP as
> > appropriate in the mk.conf files when building packages.
> > 
> >   
> Many roads will get you to the finish :-). If you pkg_radd will 
> BIND_USER and BIND_GROUP in mk.conf still be taken into account? If 
> you have to switch back you have to issue a "chown -R bind 
> /etc/namedb" with my approach. I'd think the effort is about the same.

No they are compile time options.

See pkgsrc/mk/platform/DragonFly.mk if you wanted this to be permanent.

Another way would be to share the UID and GID between the two accounts.






More information about the Users mailing list