1 --- src/share/poudriere/jail.sh.orig 2013-09-09 12:10:56.000000000 -0500
2 +++ src/share/poudriere/jail.sh 2013-09-09 17:26:15.000000000 -0500
4 Other possible method are: \"allbsd\" retrieve a
5 snapshot from allbsd.org's website or \"ftp-archive\"
6 for old releases that're no longer available on \"ftp\".
7 + Can also be \"tarball\" or \"tarball:/full/path/to/txz\".
8 -p tree -- Specify which ports tree the jail to start/stop with
9 -P patch -- Specify a patch file to apply to the source before committing.
10 -t version -- version to upgrade to
13 err 1 "Upgrade is not supported with allbsd, to upgrade, please delete and recreate the jail"
16 + err 1 "Upgrade is not supported with tarball; to upgrade, please delete and recreate the jail"
19 err 1 "Unsupported method"
25 +install_from_tarball() {
26 + : ${TARBALL=/usr/obj/${VERSION}-${ARCH}.txz}
27 + msg "Installing ${VERSION} ${ARCH} from ${TARBALL} ..."
28 + tar -xpf ${TARBALL} -C ${JAILMNT}/ || err 1 " fail"
33 jail_exists ${JAILNAME} && err 2 "The jail ${JAILNAME} already exists"
40 + FCT=install_from_tarball
41 + TARBALL=${METHOD##*:}
42 + METHOD=${METHOD%%:*}