mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
bd48d39657
Approved by: portmgr (myself)
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cbsd
|
|
PORTVERSION= 10.0.5
|
|
PORTREVISION= 1
|
|
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= 01f481c
|
|
|
|
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>
|