[PC-BSD Testing] [PATCH] [PORTJAIL] Add option to download portjail content

Kris Moore kris at pcbsd.org
Tue Oct 18 10:49:13 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/18/11 09:22, Lars Engels wrote:
> Hi all,
>
> attached you find a patch that allows one to download and extract a
> portjail from FreeBSD's mirrors.
> It offers the user to build or download the portjail. Sample output:
>
> engels at pts/1 # portjail start
> Error: The portjail is not yet installed! Please run 'portjail init' as
root.
> Do you want to run it now? [y|n] y
> Do you like to download a pre-compiled base jail from a FreeBSD mirror via
> FTP/HTTP or do you like to build one from source? Enter d for download or
> b for build from source: [d/b] d
>
> You may enter a mirror server manually, else ftp.freebsd.org is used:
ftp4.de.freebsd.org
>
> Which protocol do you want to use? [ftp/http] http
>
> - 100% of 53 MB 224 kBps 00m00s
>
> Portjail setup finished! Please run 'portjail start' to enable the jail.
>
> Total time : 4:18.46s
> CPU utilisation (percentage) : 18.5%
>
>
> As you can see, this was 4:18 minutes with 224kBps, much faster than
building the portjail
> from scratch. :)
>
> I have only tested it on amd64, please also test it on i386.
>
> Cheers
> Lars
>
>
> _______________________________________________
> Testing mailing list
> Testing at lists.pcbsd.org
> http://lists.pcbsd.org/mailman/listinfo/testing

Lars,

Take a look here:

http://trac.pcbsd.org/browser/pcbsd/current/system-overlay/usr/local/share/pcbsd/scripts/portjail.sh

I added something similar recently, which fetches the world environment
from the PC-BSD mirrors. Your patch looks more in-depth though, allowing
source builds if the user wants it. Can you re-gen it from the current
version in SVN?

- -- 
Kris Moore
PC-BSD Software
iXsystems
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOnbwZAAoJEH/cIgwwV3zX1PcIAJovAvNvdzXa/KkRHMitcK4s
OJnMtEm6YX8rGlQDdXPNwRPW1yWocIYV38hwIKopfxt2xoXu0EqoxjvPJDIiftBF
fZB5pqEwP4C1UsWqYCD2wEwuPWCxLdJf0/LzWWO/BCEgztdnHspKLumGPgUAMAPw
YabHsodZRiJgsCTHbCZb+iBMqa8gUlY1hYDc0C20qUV35F9cBiD42XLVeUh/EC8N
szYpoQv0RtoH/oZPtu7gh6hM+sy++Va8BYU28pCRcj+/aiW44hg5H9J3onhKtJ9U
WBc2IUtUWrQDYNkA1K9ofclDnNpf0GoqEjAlkkElksEMtByNQCndt22tGP44WoM=
=fLne
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pcbsd.org/pipermail/testing/attachments/20111018/37391afd/attachment.html>


More information about the Testing mailing list