freebsd-ports/sysutils/iocell/Makefile
Juraj Lutter e054fbd8de sysutils/iocell: Allow for creating/keeping bridge interfaces
Add pull request #40 that allows for new jail parameters:

  - createbridge (default on)
  - keepbridge (default off)

createbridge controls whether the default bridge interfaces (bridge0
and bridge1) are created on jail startup if they do not exist.

keepbridge controls whether the bridge0 and bridge1 interfaces will
be destroyed on jail shutdown if they are not longer used.

Both these options prevents bridge interfaces manipulation in case
when they are being managed outside iocell.

PR:			266015
Approved by:		robak (maintainer timeout)
Differential Revision:	https://reviews.freebsd.org/D36325
2022-09-17 11:31:27 +02:00

40 lines
1.1 KiB
Makefile

PORTNAME= iocell
PORTVERSION= 2.1.2
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= sysutils
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/pull/
# https://github.com/bartekrutkowski/iocell/pull/37
# https://github.com/bartekrutkowski/iocell/pull/40
PATCHFILES+= 37.patch:-p1 \
40.patch:-p1
MAINTAINER= robak@FreeBSD.org
COMMENT= Feature rich Jail containers manager (iocage fork)
WWW= https://github.com/bartekrutkowski/iocell
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= uclcmd:devel/uclcmd
USE_GITHUB= yes
GH_ACCOUNT= bartekrutkowski
NO_BUILD= yes
post-patch:
@${REINPLACE_CMD} -e "s|amd64|${MACHINE}|g" ${WRKSRC}/lib/ioc-*
@${REINPLACE_CMD} -e "s|/usr/local/lib/iocell|${PREFIX}/lib/iocell|g" ${WRKSRC}/iocell
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/iocell
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/rc.d/iocell ${STAGEDIR}${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${WRKSRC}/iocell ${STAGEDIR}${PREFIX}/sbin
(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/iocell)
${INSTALL_MAN} ${WRKSRC}/iocell.8 ${STAGEDIR}${PREFIX}/man/man8
.include <bsd.port.mk>