mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
5989861156
PR: ports/186864 Submitted by: Oleg Ginzburg <olevole@olevole.ru> (maintainer)
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cbsd
|
|
PORTVERSION= 10.0.3
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.bsdstore.ru/downloads/ \
|
|
GH
|
|
|
|
MAINTAINER= olevole@olevole.ru
|
|
COMMENT= Yet another FreeBSD Jail Management Utility
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync \
|
|
sudo:${PORTSDIR}/security/sudo \
|
|
sqlite3:${PORTSDIR}/databases/sqlite3
|
|
LIB_DEPENDS= libssh2.so:${PORTSDIR}/security/libssh2
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= olevole
|
|
GH_PROJECT= cbsd
|
|
GH_COMMIT= 2bb261e
|
|
|
|
USE_RC_SUBR= cbsdd cbsdrsyncd
|
|
|
|
SUB_FILES= pkg-message
|
|
PLIST_FILES+= man/man8/cbsd.8.gz
|
|
|
|
CBSD_HOME?= ${PREFIX}/cbsd
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
USERS= ${PORTNAME}
|
|
GROUPS= ${PORTNAME}
|
|
|
|
.if ${OSVERSION} < 901000
|
|
IGNORE= does not work on FreeBSD < 9.1
|
|
.endif
|
|
|
|
.if ${OSVERSION} < 902001
|
|
RUN_DEPENDS+= sysrc:${PORTSDIR}/sysutils/sysrc
|
|
.endif
|
|
|
|
post-install:
|
|
@${FIND} -s ${STAGEDIR}${CBSD_HOME} -not -type d | ${SORT} | \
|
|
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
|
|
@${FIND} ${STAGEDIR}${CBSD_HOME} -type d | ${SORT} -r | \
|
|
${SED} -e 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.post.mk>
|