Bug 256871

Summary: [New Port] sysutils/mkjail: Fat jail creation script
Product: Ports & Packages Reporter: Robert Clausecker <fuz>
Component: Individual Port(s)Assignee: Dan Langille <dvl>
Status: Closed FIXED    
Severity: Affects Only Me CC: dvl, feld, grahamperrin
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
sysutils/mkjail: Fat jail creation script none

Description Robert Clausecker 2021-06-28 12:35:11 UTC
Created attachment 226089 [details]
sysutils/mkjail: Fat jail creation script

From https://wiki.freebsd.org/WantedPorts.

Port comprises a bunch of shell scripts.  NO_BUILD, NO_ARCH.
Portlint likes this port, builds fine on arm64 13.0-RELEASE with Poudriere.

***
mkjail can be used on FreeBSD to create new jails, keep them updated,
and upgrade to a new release.

mkjail requires the use of ZFS and will create each new jail in a
separate filesystem.

mkjail is not a jail manager.  Jails are configured via /etc/jail.conf
and started/stopped via service jail start foo.

WWW: https://github.com/mkjail/mkjail
***
Comment 1 Dan Langille freebsd_committer 2021-07-02 18:15:21 UTC
On thing I noticed in testing (not related to this PR): /usr/local/etc/mkjail.conf is ignored. I did not try /usr/local/etc/mkjail/mkjail.conf
Comment 2 Dan Langille freebsd_committer 2021-07-12 22:50:16 UTC
(In reply to Dan Langille from comment #1)

Ahh, my testing was from ~/mkjail

No wonder my test did not succeed.
Comment 3 commit-hook freebsd_committer 2021-07-12 22:50:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=175e9e5f8908be2bd87f0edf915029faeb080f79

commit 175e9e5f8908be2bd87f0edf915029faeb080f79
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2021-07-12 22:45:44 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2021-07-12 22:49:30 +0000

    sysutils/mkjail: New port: Fat jail creation script

    mkjail can be used on FreeBSD to create new jails, keep them updated,
    and upgrade to a new release.

    mkjail requires the use of ZFS and will create each new jail in a
    separate filesystem.

    mkjail is not a jail manager.  Jails are configured via /etc/jail.conf
    and started/stopped via service jail start foo.

    PR:             256871
    Reported by:    Robert Clausecker <fuz@fuz.su>

 sysutils/Makefile               |  1 +
 sysutils/mkjail/Makefile (new)  | 24 ++++++++++++++++++++++++
 sysutils/mkjail/distinfo (new)  |  3 +++
 sysutils/mkjail/pkg-descr (new) | 10 ++++++++++
 sysutils/mkjail/pkg-plist (new) |  7 +++++++
 5 files changed, 45 insertions(+)
Comment 4 Dan Langille freebsd_committer 2021-07-12 22:50:53 UTC
Thank you.