diff options
author | miwi <miwi@FreeBSD.org> | 2014-05-25 18:13:38 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-05-25 18:13:38 +0800 |
commit | db464027459387c00c61880496ba58b945c3c5f4 (patch) | |
tree | 6058b75e4c2638554ff0b55f1502083fb4100d8b /sysutils | |
parent | 4fa208ee9c17318c7b45f894f35626cba35bbcd0 (diff) | |
download | freebsd-ports-gnome-db464027459387c00c61880496ba58b945c3c5f4.tar.gz freebsd-ports-gnome-db464027459387c00c61880496ba58b945c3c5f4.tar.zst freebsd-ports-gnome-db464027459387c00c61880496ba58b945c3c5f4.zip |
- Stage support
PR: 189894
Submitted by: Joe Barbish <qjail@a1poweruser.com> (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/qjail2/Makefile | 47 | ||||
-rw-r--r-- | sysutils/qjail2/pkg-plist | 4 |
2 files changed, 27 insertions, 24 deletions
diff --git a/sysutils/qjail2/Makefile b/sysutils/qjail2/Makefile index e39a242b496a..e93981ad253c 100644 --- a/sysutils/qjail2/Makefile +++ b/sysutils/qjail2/Makefile @@ -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 + + ${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 ${MAN8PREFIX}/man/man8 + ${INSTALL_MAN} ${WRKSRC}/${i}.8 \ + ${STAGEDIR}${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} "#" + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + @(cd ${WRKSRC}/examples/ \ + && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}) .include <bsd.port.mk> diff --git a/sysutils/qjail2/pkg-plist b/sysutils/qjail2/pkg-plist index f8106ab5b8f7..bbe19de733ce 100644 --- a/sysutils/qjail2/pkg-plist +++ b/sysutils/qjail2/pkg-plist @@ -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 |