git: 175e9e5f8908 - main - sysutils/mkjail: New port: Fat jail creation script
Dan Langille
dvl at FreeBSD.org
Mon Jul 12 22:49:33 UTC 2021
The branch main has been updated by dvl:
URL: https://cgit.FreeBSD.org/ports/commit/?id=175e9e5f8908be2bd87f0edf915029faeb080f79
commit 175e9e5f8908be2bd87f0edf915029faeb080f79
Author: Dan Langille <dvl at FreeBSD.org>
AuthorDate: 2021-07-12 22:45:44 +0000
Commit: Dan Langille <dvl at 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 at 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 at 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
+ at sample etc/mkjail.conf.sample
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%DATADIR%%/create.sh
+%%DATADIR%%/getrelease.sh
+%%DATADIR%%/update.sh
+%%DATADIR%%/upgrade.sh
More information about the dev-commits-ports-all
mailing list