freebsd-ports/sysutils/qjail/Makefile
Chris Rees 2054dc76b4 Update to 1.8
uname -r shows 4 formats.
9.0-BETA1, 9.0-RC1, 9.0-RELEASE, and 9.0-RELEASE-p1
Logic added by 1.7 was supposed to correctly remove the -p1 string,
which it did if present, but if not present the -RELEASE gets removed
in error which results in the incorrect ftp url path for fetching the
install source.

Rewrote logic to handle -p suffix differently so it gets stripped
off leaving 9.0-RELEASE which is handled normally.

PR:		ports/174037
Submitted by:	Joe Barbish <qjail@a1poweruser.com> (maintainer)
Feature safe:	yes
2012-12-02 12:25:48 +00:00

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: qjail
# Date created: July 22 2010
# Whom: Joe Barbish
#
# $FreeBSD$
PORTNAME= qjail
PORTVERSION= 1.8
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= qjail@a1poweruser.com
COMMENT= Utility to quickly deploy and manage 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
.for i in qjail qjail-intro qjail.conf
@${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} "#"
.include <bsd.port.mk>