Add jadm 1.0, freeBSD jail framework with zfs, vnet and jail.conf

support.

PR:		ports/193574
Submitted by:	Nikolay Dachev <jadm dachev info>
This commit is contained in:
vanilla
2014-09-15 02:27:39 +00:00
parent 3b92e54df2
commit e261fc38f3
5 changed files with 48 additions and 0 deletions
+1
View File
@@ -394,6 +394,7 @@
SUBDIR += isomaster
SUBDIR += isomd5sum
SUBDIR += istatd
SUBDIR += jadm
SUBDIR += jail-primer
SUBDIR += jail2
SUBDIR += jailctl
+33
View File
@@ -0,0 +1,33 @@
# Created by: Nikolay Dachev <jadm@dachev.info>
# $FreeBSD$
PORTNAME= jadm
PORTVERSION= 1.0
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= jadm@dachev.info
COMMENT= FreeBSD jail framework with zfs, vnet and jail.conf support
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${PYTHON_LIBDIR}/site-packages/paramiko/:${PORTSDIR}/security/py-paramiko \
${PYTHON_LIBDIR}/site-packages/netifaces.so:${PORTSDIR}/net/py-netifaces \
${PYTHON_LIBDIR}/site-packages/tabulate.py:${PORTSDIR}/devel/py-tabulate \
${PYTHON_LIBDIR}/site-packages/ipaddress.py:${PORTSDIR}/net/py-ipaddress
USES= python
USE_PYTHON= distutils autoplist
PLIST_FILES= man/man8/jadm.8.gz
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 901000
IGNORE= freeBSD before 9.1 is not supported
.endif
pre-install:
${CP} ${WRKSRC}/man8/jadm.8 ${WRKDIR}/stage${PREFIX}/man/man8
.include <bsd.port.post.mk>
+2
View File
@@ -0,0 +1,2 @@
SHA256 (jadm-1.0.tar.gz) = 2c654494feb8d0bf29dc3ebc0f8e0d924c99c9168a62f7edc3a672089612c828
SIZE (jadm-1.0.tar.gz) = 33335
+10
View File
@@ -0,0 +1,10 @@
--- setup.py.orig 2014-09-14 17:02:59.000000000 +0800
+++ setup.py 2014-09-15 10:21:15.776638606 +0800
@@ -37,5 +37,5 @@ setup(
)
# man page install
-if sys.argv[1] == "install":
- os.system('cp ./man8/jadm.8 /usr/local/man/man8/jadm.8')
+#if sys.argv[1] == "install":
+ #os.system('cp ./man8/jadm.8 /usr/local/man/man8/jadm.8')
+2
View File
@@ -0,0 +1,2 @@
Jadm is python script which pars /etc/jail.conf in his own format.
Use zfs for jail home also bridge interface and epair interfaces for jail vnet.