git: c8db4f9cf119 - main - sysutils/appjail-devel: New port: Simple and easy-to-use tool for creating portable jails (devel)

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Tue, 16 May 2023 15:27:01 UTC
The branch main has been updated by acm:

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

commit c8db4f9cf11961f5ba1c72dca316b0aec00b2235
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2023-05-16 15:25:27 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2023-05-16 15:25:27 +0000

    sysutils/appjail-devel: New port: Simple and easy-to-use tool for creating portable jails (devel)
    
    AppJail is an open source framework entirely written in sh(1) and
    C to create isolated, portable and easy to deploy environments using
    FreeBSD jails that behaves like an application.
---
 sysutils/Makefile                |   1 +
 sysutils/appjail-devel/Makefile  |  34 +++++++++++
 sysutils/appjail-devel/distinfo  |   3 +
 sysutils/appjail-devel/pkg-descr |   3 +
 sysutils/appjail-devel/pkg-plist | 126 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 167 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 44f93307eeef..784e45b6f02e 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -53,6 +53,7 @@
     SUBDIR += apcpwr
     SUBDIR += apcupsd
     SUBDIR += appjail
+    SUBDIR += appjail-devel
     SUBDIR += apt-mirror-devel
     SUBDIR += aptly
     SUBDIR += arc_summary
diff --git a/sysutils/appjail-devel/Makefile b/sysutils/appjail-devel/Makefile
new file mode 100644
index 000000000000..acf9165b0da7
--- /dev/null
+++ b/sysutils/appjail-devel/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	appjail
+DISTVERSIONPREFIX=	v
+DISTVERSION=	g20230515
+CATEGORIES=	sysutils
+PKGNAMESUFFIX= -devel
+
+MAINTAINER=	acm@FreeBSD.org
+COMMENT=	Simple and easy-to-use tool for creating portable jails (devel)
+WWW=		https://github.com/DtxdF/AppJail
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+CONFLICTS=	appjail
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	DtxdF
+GH_PROJECT=	AppJail
+GH_TAGNAME=	f32080a9de86dfe1acd80b8728ad637994227a9a
+
+ALL_TARGET=	utils-strip
+
+PORTDOCS=	README.md
+
+OPTIONS_DEFINE=			DEBOOTSTRAP DOCS GIT
+DEBOOTSTRAP_DESC=		Support for Debian and Ubuntu jails
+DEBOOTSTRAP_RUN_DEPENDS=	debootstrap>0:sysutils/debootstrap
+GIT_RUN_DEPENDS=		git>0:devel/git
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}/${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/appjail-devel/distinfo b/sysutils/appjail-devel/distinfo
new file mode 100644
index 000000000000..3d3f62bcad20
--- /dev/null
+++ b/sysutils/appjail-devel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1684183081
+SHA256 (DtxdF-AppJail-vg20230515-f32080a9de86dfe1acd80b8728ad637994227a9a_GH0.tar.gz) = 02d7bcb524f365ae0877510f5e9976b75cfe0193cfa68f598c6978957cc08b64
+SIZE (DtxdF-AppJail-vg20230515-f32080a9de86dfe1acd80b8728ad637994227a9a_GH0.tar.gz) = 215866
diff --git a/sysutils/appjail-devel/pkg-descr b/sysutils/appjail-devel/pkg-descr
new file mode 100644
index 000000000000..7050513e9e74
--- /dev/null
+++ b/sysutils/appjail-devel/pkg-descr
@@ -0,0 +1,3 @@
+AppJail is an open source framework entirely written in sh(1) and
+C to create isolated, portable and easy to deploy environments using
+FreeBSD jails that behaves like an application.
diff --git a/sysutils/appjail-devel/pkg-plist b/sysutils/appjail-devel/pkg-plist
new file mode 100644
index 000000000000..1509b85f8231
--- /dev/null
+++ b/sysutils/appjail-devel/pkg-plist
@@ -0,0 +1,126 @@
+bin/appjail
+bin/appjail-config
+bin/appjail-dns
+etc/rc.d/appjail
+etc/rc.d/appjail-natnet
+libexec/appjail/appjail-config/appjail-config
+libexec/appjail/appjail-config/tok
+libexec/appjail/getservbyname/getservbyname
+libexec/appjail/ipcheck/ipcheck
+libexec/appjail/network/network
+%%DATADIR%%/cmd/cmd
+%%DATADIR%%/cmd/config
+%%DATADIR%%/cmd/cpuset
+%%DATADIR%%/cmd/disable
+%%DATADIR%%/cmd/enable
+%%DATADIR%%/cmd/enabled
+%%DATADIR%%/cmd/expose
+%%DATADIR%%/cmd/fetch
+%%DATADIR%%/cmd/fstab
+%%DATADIR%%/cmd/help
+%%DATADIR%%/cmd/jail
+%%DATADIR%%/cmd/limits
+%%DATADIR%%/cmd/login
+%%DATADIR%%/cmd/logs
+%%DATADIR%%/cmd/makejail
+%%DATADIR%%/cmd/nat
+%%DATADIR%%/cmd/network
+%%DATADIR%%/cmd/pkg
+%%DATADIR%%/cmd/quick
+%%DATADIR%%/cmd/restart
+%%DATADIR%%/cmd/rstop
+%%DATADIR%%/cmd/run
+%%DATADIR%%/cmd/service
+%%DATADIR%%/cmd/start
+%%DATADIR%%/cmd/startup
+%%DATADIR%%/cmd/stop
+%%DATADIR%%/cmd/sysrc
+%%DATADIR%%/cmd/update
+%%DATADIR%%/cmd/upgrade
+%%DATADIR%%/cmd/usage
+%%DATADIR%%/cmd/version
+%%DATADIR%%/cmd/zfs
+%%DATADIR%%/files/config.conf
+%%DATADIR%%/files/default.conf
+%%DATADIR%%/files/default_template.conf
+%%DATADIR%%/files/exclude-thinjail.files
+%%DATADIR%%/files/include-thinjail.files
+%%DATADIR%%/files/rctl-actions
+%%DATADIR%%/files/rctl-resources
+%%DATADIR%%/files/rctl-subjects
+%%DATADIR%%/lib/atexit
+%%DATADIR%%/lib/check_func
+%%DATADIR%%/lib/colors
+%%DATADIR%%/lib/copy
+%%DATADIR%%/lib/files
+%%DATADIR%%/lib/jail
+%%DATADIR%%/lib/jail_types
+%%DATADIR%%/lib/kern_modules
+%%DATADIR%%/lib/keys
+%%DATADIR%%/lib/load
+%%DATADIR%%/lib/log
+%%DATADIR%%/lib/mksum
+%%DATADIR%%/lib/mount
+%%DATADIR%%/lib/network
+%%DATADIR%%/lib/random
+%%DATADIR%%/lib/replace
+%%DATADIR%%/lib/strlen
+%%DATADIR%%/lib/sysexits
+%%DATADIR%%/lib/tempfile
+%%DATADIR%%/lib/version
+%%DATADIR%%/lib/whitespaces
+%%DATADIR%%/lib/zfs
+%%DATADIR%%/makejail/cmd/all/ADD
+%%DATADIR%%/makejail/cmd/all/ARG
+%%DATADIR%%/makejail/cmd/all/CLEAR
+%%DATADIR%%/makejail/cmd/all/CMD
+%%DATADIR%%/makejail/cmd/all/COPY
+%%DATADIR%%/makejail/cmd/all/ENTRYPOINT
+%%DATADIR%%/makejail/cmd/all/ENV
+%%DATADIR%%/makejail/cmd/all/MOUNT
+%%DATADIR%%/makejail/cmd/all/PKG
+%%DATADIR%%/makejail/cmd/all/RAW
+%%DATADIR%%/makejail/cmd/all/REPLACE
+%%DATADIR%%/makejail/cmd/all/RUN
+%%DATADIR%%/makejail/cmd/all/SERVICE
+%%DATADIR%%/makejail/cmd/all/SET
+%%DATADIR%%/makejail/cmd/all/SYSRC
+%%DATADIR%%/makejail/cmd/all/UMOUNT
+%%DATADIR%%/makejail/cmd/all/USER
+%%DATADIR%%/makejail/cmd/all/VAR
+%%DATADIR%%/makejail/cmd/all/WORKDIR
+%%DATADIR%%/makejail/cmd/build/LOGIN
+%%DATADIR%%/makejail/cmd/build/OPTION
+%%DATADIR%%/makejail/cmd/build/RESTART
+%%DATADIR%%/makejail/cmd/build/START
+%%DATADIR%%/makejail/cmd/build/STOP
+%%DATADIR%%/makejail/write/all/ADD
+%%DATADIR%%/makejail/write/all/ARG
+%%DATADIR%%/makejail/write/all/CMD
+%%DATADIR%%/makejail/write/all/COPY
+%%DATADIR%%/makejail/write/all/MOUNT
+%%DATADIR%%/makejail/write/all/PKG
+%%DATADIR%%/makejail/write/all/RAW
+%%DATADIR%%/makejail/write/all/REPLACE
+%%DATADIR%%/makejail/write/all/RUN
+%%DATADIR%%/makejail/write/all/SERVICE
+%%DATADIR%%/makejail/write/all/SET
+%%DATADIR%%/makejail/write/all/SYSRC
+%%DATADIR%%/makejail/write/all/UMOUNT
+%%DATADIR%%/makejail/write/all/VAR
+%%DATADIR%%/makejail/write/all/WORKDIR
+%%DATADIR%%/makejail/write/build/LOGIN
+%%DATADIR%%/makejail/write/build/OPTION
+%%DATADIR%%/makejail/write/build/RESTART
+%%DATADIR%%/makejail/write/build/START
+%%DATADIR%%/makejail/write/build/STOP
+%%DATADIR%%/scripts/ajconf.sh
+%%DATADIR%%/scripts/ascii2oct.sh
+%%DATADIR%%/scripts/dns.sh
+%%DATADIR%%/scripts/get_depends.sh
+%%DATADIR%%/scripts/run_init.sh
+%%DATADIR%%/scripts/run_jail.sh
+%%EXAMPLESDIR%%/templates/bridge.conf
+%%EXAMPLESDIR%%/templates/linux.conf
+%%EXAMPLESDIR%%/templates/vnet.conf
+%%EXAMPLESDIR%%/templates/xorg.conf