Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2011 17:35:13 +0100
From:      Daniel Bye <freebsd-questions@slightlystrange.org>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: /etc/rc.d/jail using new-style jail command?
Message-ID:  <20110620163513.GC14851@catflap.slightlystrange.org>
In-Reply-To: <4DFF6A21.9070901@a1poweruser.com>
References:  <BANLkTinS%2Bf=GoBWz5-nqT8Qczb2Z8QOspw@mail.gmail.com> <4DFEAD65.70306@a1poweruser.com> <20110620092347.GA14851@catflap.slightlystrange.org> <4DFF6A21.9070901@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--GyRA7555PLgSTuth
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 20, 2011 at 11:41:21AM -0400, Fbsd8 wrote:
> Daniel Bye wrote:
> >On Sun, Jun 19, 2011 at 10:16:05PM -0400, Fbsd8 wrote:=20
> >>Give the qjail port a try. It has the ability to reference jails by nam=
e=20
> >>and create jails without starting them. Though it does not use the=20
> >>new-style jail command.
> >
> ><root@fbsd:/usr/ports/sysutils/qjail>
> >zsh/2 1002 # make install
> >=3D=3D=3D>  Installing for qjail-1.0
> >=3D=3D=3D>   Generating temporary packing list
> >=3D=3D=3D>  Checking if sysutils/qjail already installed
> >install:
> >/data/portbuild/usr/ports/sysutils/qjail/work/qjail-1.0/qjail-jail2: No=
=20
> >such
> >/ file or directory
> >*** Error code 71
> >
> >Stop in /usr/ports/sysutils/qjail.
> >
> >
> >Any progress on getting the port fixed? I really like qjail, and find it
> >pretty intuitive, but the port hasn't worked properly since it was added=
 to
> >the collection.
> >
> >Dan
> >
>=20
>=20
> Dan,
> qjail installs fine for me. You have something mis-configured
> on your system.
> /data/portbuild/ is invalid path which is not part of an normal install.

My system is set up just fine, thanks. My ports tree is located on a single
server, and shared via NFS.  To avoid hitting the rather slow disks in the
host machine, each client sets WRKDIRPREFIX so that ports build locally.=20
This is fully supported by the ports system, and should not cause a
well-behaved port to break.[1] And indeed, this configuration has been
working flawlessly now for well over 6 years, and it is not the source of
the problem now.

This is what happens when I try to install qjail on the host where the ports
tree lives:

<root@catflap(1):/usr/ports/sysutils/qjail>
zsh/3 1001 # make install
=3D=3D=3D>  Installing for qjail-1.0
=3D=3D=3D>   Generating temporary packing list
=3D=3D=3D>  Checking if sysutils/qjail already installed
install: /usr/ports/sysutils/qjail/work/qjail-1.0/qjail-jail2: No such file
or directory
*** Error code 71

Stop in /usr/ports/sysutils/qjail.

<root@catflap(1):/usr/ports/sysutils/qjail>
zsh/3 1007 # ls /usr/ports/sysutils/qjail/work/qjail-1.0/qjail-jail2
ls: /usr/ports/sysutils/qjail/work/qjail-1.0/qjail-jail2: No such file or
directory


The file isn't there.

Bah! Scratch that. Just ran make distclean && make install and it works.

My apologies, Joe, I should have tried that much sooner...  I can only
assume it happened because I installed the port by hand shortly after you
announced its release a few months ago, before it was formally accepted as
part of the tree. I guess I forgot to clean up after that manual test
install and grab the latest version from the ports.

To the originator of this thread - do give qjail a try - it's very good.

~runs away and hides

Dan


1
http://www.freebsd.org/doc/en/books/porters-handbook/porting-wrkdirprefix.h=
tml
--=20
Daniel Bye
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

--GyRA7555PLgSTuth
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk3/dsEACgkQixf5fBYiFmrWcQCfQcqqsbNAfIntkyO+L7KacHY4
5Z8An0/kOITRr/zYn0KzH396NJKumZsk
=cSYH
-----END PGP SIGNATURE-----

--GyRA7555PLgSTuth--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110620163513.GC14851>