forked from Lainports/freebsd-ports
While iocell is a shell script and can work cross-platform, its evident that nobody has actually tried to use it on anything other than amd64. Use tighter egrep(1) invocations, that match the new default BSD grep now in 13.0+ and up. Approved by: maintainer timeout Tested by: linimon PR: 253703 Differential Revision: https://reviews.freebsd.org/D28004
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# Created by: Bartek Rutkowski <robak@FreeBSD.org>
|
|
|
|
PORTNAME= iocell
|
|
PORTVERSION= 2.1.2
|
|
DISTVERSIONPREFIX=v
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
|
|
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/pull/
|
|
PATCHFILES+= 37.patch:-p1 # https://github.com/bartekrutkowski/iocell/pull/37
|
|
|
|
MAINTAINER= robak@FreeBSD.org
|
|
COMMENT= Feature rich Jail containers manager (iocage fork)
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= uclcmd:devel/uclcmd
|
|
|
|
CONFLICTS= iocage-*
|
|
|
|
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>
|