1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/sysutils/qjail/Makefile
Chris Rees 7b182efc57 Qjail [ q = quick ] is a 4th generation wrapper for the basic chroot jail
system that includes security and performance enhancements. Plus a new level
of "user friendliness" enhancements dealing with deploying just a few jails or
large jail environments consisting of 100's of jails.

Qjail requires no knowledge of the jail command usage. It uses "nullfs" for
read-only system binaries, sharing one copy of them with all the jails.

Uses "mdconfig" to create sparse image jails. Sparse image jails provide a
method to limit the total disk space a jail can consume, while only occupying
the physical disk space of the sum size of the files in the image jail.

Ability to assign ip address with their network device name,
so aliases are auto created on jail start and auto removed on jail stop.

Ability to create "ZONE"s of identical qjail systems, each with their own
group of jails.

Ability to designate a portion of the jail name as a group prefix so the
command being executed will apply to only those jail names matching that prefix.

WWW:        http://sourceforge.net/projects/qjail/
            http://qjail.sourceforge.net/

PR:		ports/148777
Submitted by:	Joe Barbish <joeb@a1poweruser.com>
Approved by:	rene (mentor)
2011-06-11 21:22:20 +00:00

44 lines
1.2 KiB
Makefile

# New ports collection makefile for: qjail
# Date created: July 22 2010
# Whom: Joe Barbish
#
# $FreeBSD$
PORTNAME= qjail
PORTVERSION= 1.0
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= qjail@a1poweruser.com
COMMENT= Utility to quickly deploy and manage large numbers of jails
LICENSE= BSD
USE_BZIP2= yes
NO_BUILD= yes
MAN8= qjail.8 qjail-intro.8 qjail.conf.8
post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
-e 's|/usr/local|${PREFIX}|'
@${FIND} ${WRKSRC}/examples -name '*.bak' -delete
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/qjail ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/qjail2 ${PREFIX}/etc/rc.d
@${INSTALL_SCRIPT} ${WRKSRC}/qjail-jail2 ${PREFIX}/etc/rc.d
@${INSTALL_DATA} ${WRKSRC}/qjail.conf.sample ${PREFIX}/etc
@${INSTALL_MAN} ${WRKSRC}/qjail.8 ${MAN8PREFIX}/man/man8
@${INSTALL_MAN} ${WRKSRC}/qjail-intro.8 ${MAN8PREFIX}/man/man8
@${INSTALL_MAN} ${WRKSRC}/qjail.conf.8 ${MAN8PREFIX}/man/man8
# note examples are mandatory. qjail will not function without them
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ \
&& ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>