1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/sysutils/cbsd/Makefile
Kirill Ponomarev 4b5cdfeb10 sysutils/cbsd: Update to 13.0.4
Changes: https://github.com/cbsd/cbsd/releases/tag/v13.0.4
Reported by:	maintainer

(cherry picked from commit 17f2334e19)
2021-04-13 10:25:43 +02:00

53 lines
1.4 KiB
Makefile

PORTNAME= cbsd
DISTVERSION= 13.0.4
CATEGORIES= sysutils
MAINTAINER= olevole@olevole.ru
COMMENT= Yet another FreeBSD Jail, XEN and Bhyve Management Utility
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \
libssh2.so:security/libssh2
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \
rsync:net/rsync \
sqlite3:databases/sqlite3 \
sudo:security/sudo
USES= compiler:c++11-lang libedit pkgconfig:both
USE_GITHUB= yes
USE_RC_SUBR= cbsdd cbsdrsyncd cbsd-statsd-bhyve cbsd-statsd-hoster \
cbsd-statsd-jail
SUB_FILES= pkg-deinstall pkg-message
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
BIN_FILES= bin/cbsdsh/mknodes bin/cbsdsh/mksyntax
CBSD_HOME?= ${PREFIX}/cbsd
.include <bsd.port.options.mk>
do-install:
@${ECHO} "Installing in ${CBSD_HOME}"
${MKDIR} ${STAGEDIR}${CBSD_HOME}
${CP} -a ${WRKSRC}/ ${STAGEDIR}${CBSD_HOME}
.for i in ${BIN_FILES}
${STRIP_CMD} ${STAGEDIR}${CBSD_HOME}/${i}
.endfor
${INSTALL_MAN} ${WRKSRC}/man/cbsd.8 ${STAGEDIR}${PREFIX}/man/man8/cbsd.8
${INSTALL_PROGRAM} ${WRKSRC}/bin/cbsdsh/cbsd ${STAGEDIR}${PREFIX}/bin
post-install:
${CAT} ${PKGDIR}/pkg-plist-chunk > ${TMPPLIST} ;
@${FIND} -s ${STAGEDIR}${CBSD_HOME} -not -type d | ${SORT} | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/bsdconfig
@${LN} -sf ${CBSD_HOME}/share/bsdconfig/cbsd ${STAGEDIR}${PREFIX}/libexec/bsdconfig/cbsd
.include <bsd.port.mk>