Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2002 11:12:50 +0100
From:      "Didier Wiroth" <>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Installing additional ports in a jail!
Message-ID:  <000001c2a034$b208a610$952b6e94@lucifer>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Sorry for posting that!

Your method (method from Ruben de Groot) is quite good! It works really
good with the ports collection and with the src code!

I have just tried after having post the message! So to avoid future
postings, here is are the methods for the ports collection and for the
source code!

A) For the ports collection

1) cd /usr/ports/<someport>
2) make
3) mount_null /usr/ports /jails/jailX/usr/ports
4) chroot /jails/jailX
5) cd /usr/ports/<someport>
6) make install
7) exit
8) umount_null /jails/jailX/usr/ports

B) For the source code (for example for recompiling and updating a
daemon). Here is how I did it for example for applying the
jailed/chrooted openssh option to the sshd with a patch available here:

1) cd /usr/src/crypto/openssh
2) patch < /path/to/openssh.diff
3) cd /usr/src/secure/usr.sbin/sshd
4) patch < /path/to/Makefile.diff
5) mount_null /usr/src /jails/jailX/usr/src
6) chroot /jails/jailX
7) cd /usr/src/secure/usr.sbin/sshd
8) make && make install
9) exit
10) umount /jails/jailX/usr/src

That's it!
Again thanks, to anybody for the help

To Unsubscribe: send mail to
with "unsubscribe freebsd-questions" in the body of the message

Want to link to this message? Use this URL: <$b208a610$952b6e94>