Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2021 22:49:32 GMT
From:      Dan Langille <dvl@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 175e9e5f8908 - main - sysutils/mkjail: New port: Fat jail creation script
Message-ID:  <202107122249.16CMnWU3071810@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dvl:

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  | 24 ++++++++++++++++++++++++
 sysutils/mkjail/distinfo  |  3 +++
 sysutils/mkjail/pkg-descr | 10 ++++++++++
 sysutils/mkjail/pkg-plist |  7 +++++++
 5 files changed, 45 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index ef9e5caf77f4..70116e27277a 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -711,6 +711,7 @@
     SUBDIR += mixer
     SUBDIR += mkdesktop
     SUBDIR += mkfwimage
+    SUBDIR += mkjail
     SUBDIR += mkntpwd
     SUBDIR += mmc-utils
     SUBDIR += mmve
diff --git a/sysutils/mkjail/Makefile b/sysutils/mkjail/Makefile
new file mode 100644
index 000000000000..8f1f8f034a6a
--- /dev/null
+++ b/sysutils/mkjail/Makefile
@@ -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>
diff --git a/sysutils/mkjail/distinfo b/sysutils/mkjail/distinfo
new file mode 100644
index 000000000000..72ec9ef0844d
--- /dev/null
+++ b/sysutils/mkjail/distinfo
@@ -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
diff --git a/sysutils/mkjail/pkg-descr b/sysutils/mkjail/pkg-descr
new file mode 100644
index 000000000000..909125c094a8
--- /dev/null
+++ b/sysutils/mkjail/pkg-descr
@@ -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
diff --git a/sysutils/mkjail/pkg-plist b/sysutils/mkjail/pkg-plist
new file mode 100644
index 000000000000..584ded4d14fb
--- /dev/null
+++ b/sysutils/mkjail/pkg-plist
@@ -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



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