Problem installing bind in jail

Matthew Seaman matthew at FreeBSD.org
Thu Apr 5 20:43:51 UTC 2012


On 05/04/2012 18:24, bsd wrote:
> I have decided to recompile bind in the latest version and I am
> running into a problem which is caused by bind port not following the
> FreeBSD requisites and trying to install things in /usr/include/isc

What on earth gives you the idea that dns/bind98 doesn't conform to
hier(7)?  The bind ports are all installing stuff correctly: the only
files that get installed in an 'isc' or 'isccc' sub-directory are
c-language header files.  That's perfectly legal according to the rules.
 No problem there.

I suggest turning off the REPLACE_BASE option in the port.  You really
don't need it -- install as normal under /usr/local (which I guess
should fix the writablity problems).  Then all you need to enable the
ports version of named is to put the following in /etc/rc.conf:

  named_enable="YES"
  named_program="/usr/local/sbin/named"

That's it.  You can now start up the ports version of named by:

  /etc/rc.d/named start

The bind port creates symlinks for named.conf, rndc.conf and rndc.key in
/usr/local/etc so you can control the ports version of bind in the usual
way using rndc(8).  (Well, assuming you've set up /etc/namedb/named.conf
properly.)

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120405/66b9330d/signature.pgp


More information about the freebsd-questions mailing list