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>
This commit is contained in:
Dan Langille 2021-07-12 22:45:44 +00:00
parent 4ce5ce2a5e
commit 175e9e5f89
5 changed files with 45 additions and 0 deletions

View file

@ -711,6 +711,7 @@
SUBDIR += mixer
SUBDIR += mkdesktop
SUBDIR += mkfwimage
SUBDIR += mkjail
SUBDIR += mkntpwd
SUBDIR += mmc-utils
SUBDIR += mmve

24
sysutils/mkjail/Makefile Normal file
View file

@ -0,0 +1,24 @@
PORTNAME= mkjail
DISTVERSION= 0.0.1
CATEGORIES= sysutils
MAINTAINER= fuz@fuz.su
COMMENT= Fat jail creation script
LICENSE= BSD2CLAUSE
OPTIONS_DEFINE= DOCS
USE_GITHUB= yes
NO_BUILD= yes
NO_ARCH= yes
do-install:
cd ${WRKSRC}/src && ${CP} -a bin share etc ${STAGEDIR}${PREFIX}
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

3
sysutils/mkjail/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1624881221
SHA256 (mkjail-mkjail-0.0.1_GH0.tar.gz) = b471f14411b7db3a9ddc0ee7d506589bcd0244c59f13c8c6e1f73121d3db8600
SIZE (mkjail-mkjail-0.0.1_GH0.tar.gz) = 6349

10
sysutils/mkjail/pkg-descr Normal file
View file

@ -0,0 +1,10 @@
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

View file

@ -0,0 +1,7 @@
bin/mkjail
@sample etc/mkjail.conf.sample
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%DATADIR%%/create.sh
%%DATADIR%%/getrelease.sh
%%DATADIR%%/update.sh
%%DATADIR%%/upgrade.sh