Problem installing bind in jail

2012-04-05 Thread bsd
Hi, 

I have followed the tutorial provided in 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html
I have now five jails up and running and I am very happy with the system. 

One of my jail is acting as an important DNS server and It needs to be up to 
date. 

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 


making all in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include/isc
making install in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc
making install in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc
/bin/sh ../../../../mkinstalldirs /usr/include/isc
mkdir /usr/include/isc
mkdir: /usr/include/isc: Read-only file system
*** Error code 1

Stop in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc.
[…] 



I am not certain of the path I should take to solve this issue… 
Most probably I should simlink from the RO part of the system to the RW… but I 
am not 100% sure how to proceed. 


Why is ISC trying to setup things in this location and not on 
/usr/local/include/ ? 


I think I would need to simlink from the RO portion of the system 
/usr/include/isc to /usr/local/include/isc but I am not certain how to proceed. 



Thanks for your help. 

G.B. 


––
- Grégory Bernard Director -
--- www.osnet.eu ---
-- Your provider of OpenSource appliances --
––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem installing bind in jail

2012-04-05 Thread Matthew Seaman
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




signature.asc
Description: OpenPGP digital signature


Re: Problem installing bind in jail

2012-04-05 Thread Da Rock

On 04/06/12 03:24, bsd wrote:

Hi,

I have followed the tutorial provided in 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html
I have now five jails up and running and I am very happy with the system.

One of my jail is acting as an important DNS server and It needs to be up to 
date.

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


making all in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/x86_32/include/isc
making install in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include
making all in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc
making install in 
/s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc
/bin/sh ../../../../mkinstalldirs /usr/include/isc
mkdir /usr/include/isc
mkdir: /usr/include/isc: Read-only file system
*** Error code 1

Stop in /s/portbuild/usr/ports/dns/bind98/work/bind-9.8.2/lib/isc/include/isc.
[…]



I am not certain of the path I should take to solve this issue…
Most probably I should simlink from the RO part of the system to the RW… but I 
am not 100% sure how to proceed.


Why is ISC trying to setup things in this location and not on 
/usr/local/include/ ?


I think I would need to simlink from the RO portion of the system 
/usr/include/isc to /usr/local/include/isc but I am not certain how to proceed.
Assuming your replacing the base version, you cannot use symlinks but 
you can use a nullfs mount. You can make any part RW this way as long as 
its a directory.


As Matthew pointed out, all is in order here. No rule breaks happening... :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org