- Stage support

PR:		189894
Submitted by:	Joe Barbish <qjail@a1poweruser.com> (maintainer)
This commit is contained in:
Martin Wilke 2014-05-25 10:13:38 +00:00
parent 9cde0aba0c
commit f1873dcd90
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355156
2 changed files with 29 additions and 26 deletions

View File

@ -5,41 +5,40 @@ PORTNAME= qjail
PORTVERSION= 2.2
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}
PKGNAMESUFFIX= 2
MAINTAINER= qjail@a1poweruser.com
COMMENT= Utility to quickly deploy and manage jails
USE_BZIP2= yes
USES= tar:bzip2
NEED_ROOT= yes
NO_BUILD= yes
PKGNAMESUFFIX= 2
MAN8= qjail.8 qjail-intro.8 qjail.conf.8 qjail-howto.8
CONFLICTS_INSTALL= qjail-1.* qjail-3.*
NO_STAGE= yes
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_DATA} ${WRKSRC}/qjail.portsnap.conf ${PREFIX}/etc
.for i in qjail qjail-intro qjail.conf qjail-howto
@${INSTALL_MAN} ${WRKSRC}/${i}.8 ${MAN8PREFIX}/man/man8
.endfor
# note examples are mandatory. qjail will not function without them
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ \
&& ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
post-install:
@${ECHO_MSG} "#"
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG} "#"
${INSTALL_SCRIPT} ${WRKSRC}/qjail \
${STAGEDIR}${PREFIX}/bin
.for i in qjail2 qjail-jail2
${INSTALL_SCRIPT} ${WRKSRC}/${i} \
${STAGEDIR}${PREFIX}/etc/rc.d
.endfor
.for i in qjail.conf.sample qjail.portsnap.conf
${INSTALL_DATA} ${WRKSRC}/${i} \
${STAGEDIR}${PREFIX}/etc
.endfor
.for i in qjail qjail-intro qjail.conf qjail-howto
${INSTALL_MAN} ${WRKSRC}/${i}.8 \
${STAGEDIR}${MAN8PREFIX}/man/man8
.endfor
# note examples are mandatory. qjail will not function without them
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ \
&& ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>

View File

@ -3,6 +3,10 @@ etc/qjail.conf.sample
etc/qjail.portsnap.conf
etc/rc.d/qjail-jail2
etc/rc.d/qjail2
man/man8/qjail.8.gz
man/man8/qjail-intro.8.gz
man/man8/qjail-howto.8.gz
man/man8/qjail.conf.8.gz
%%EXAMPLESDIR%%/default/etc/make.conf
%%EXAMPLESDIR%%/default/etc/motd
%%EXAMPLESDIR%%/default/etc/periodic.conf