1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Update to 10.0.6.

Changes for 10.0.6:
 cbsd taskd: daemon for internal tasks
 bconstruct-tui: menubox for vm_os_type and get_vm_profiles
 bhyve: add support for install FreeBSD guest from ISO
 bhyve: implement other method for POPCNT checking
 repo: newjname as argument for alternative name of stored jail

PR:		191844
Submitted by:	olevole@olevole.ru (maintainer)
This commit is contained in:
Raphael Kubo da Costa 2014-07-13 11:38:47 +00:00
parent 74a0052cf9
commit c00cf327d8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361672
4 changed files with 46 additions and 24 deletions

View File

@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= cbsd
PORTVERSION= 10.0.5
PORTREVISION= 2
PORTVERSION= 10.0.6
CATEGORIES= sysutils
MAINTAINER= olevole@olevole.ru
@ -18,7 +17,7 @@ LIB_DEPENDS= libssh2.so:${PORTSDIR}/security/libssh2 \
USE_GITHUB= yes
GH_ACCOUNT= olevole
GH_COMMIT= 01f481c
GH_COMMIT= cac57bb
USE_RC_SUBR= cbsdd cbsdrsyncd
@ -40,7 +39,15 @@ IGNORE= does not support FreeBSD versions < 9.1
RUN_DEPENDS+= sysrc:${PORTSDIR}/sysutils/sysrc
.endif
do-install:
@${ECHO} "Installing in ${CBSD_HOME}"
${MKDIR} ${STAGEDIR}${CBSD_HOME}
${CP} -R ${WRKSRC}/* ${STAGEDIR}${CBSD_HOME}
@${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}
@${FIND} ${STAGEDIR}${CBSD_HOME} -type d | ${SORT} -r | \

View File

@ -1,2 +1,2 @@
SHA256 (cbsd-10.0.5.tar.gz) = d34b61ed9056ce8df6db6f283c6a78185f41ce25bde8d3f7321a12de9a041676
SIZE (cbsd-10.0.5.tar.gz) = 358951
SHA256 (cbsd-10.0.6.tar.gz) = 378a0f04abb562eb21b985034f4b74d0ff2e57161800b3c9e748e0ff4633736a
SIZE (cbsd-10.0.6.tar.gz) = 383249

View File

@ -20,28 +20,28 @@ export NO_CBSD_HISTORY=yes
globalconf=${cbsd_globalconf:-"${workdir}/cbsd.conf"}
if [ ! -f ${globalconf} ]; then
echo "cbsd: no such ${globalconf}";
exit 1
echo "cbsd: no such ${globalconf}";
exit 1
fi
if [ ! -f ${inventory} ]; then
echo "cbsd: no such ${inventory}";
exit 1
echo "cbsd: no such ${inventory}";
exit 1
fi
if [ ! -f ${mdtools} ]; then
echo "cbsd: no such ${mdtools}";
exit 1
echo "cbsd: no such ${mdtools}";
exit 1
fi
if [ ! -f ${subr} ]; then
echo "cbsd: no such ${subr}";
exit 1
echo "cbsd: no such ${subr}";
exit 1
fi
if [ ! -f ${localcbsdconf} ]; then
echo "cbsd: no such ${localcbsdconf}";
exit 1
echo "cbsd: no such ${localcbsdconf}";
exit 1
fi
. ${globalconf}
@ -53,25 +53,32 @@ fi
start_precmd=${name}_prestart
stop_precmd=${name}_prestop
stop_cmd=${name}_stop
command="${sbindir}/cbsdd"
command="${toolsdir}/cbsdd"
pidfile="/var/run/$name.pid"
command_args="&"
cbsdd_prestart() {
find ${ftmpdir} -depth 1 -maxdepth 1 -type f -exec rm -f {} \;
%%PREFIX%%/bin/cbsd sysinv mode=update
%%PREFIX%%/bin/cbsd netinv
/usr/bin/find ${ftmpdir} -depth 1 -maxdepth 1 -type f -exec rm -f {} \;
%%PREFIX%%/bin/cbsd sysinv mode=update
%%PREFIX%%/bin/cbsd netinv
. ${inventory}
. ${inventory}
[ -n "$nat_enable" ] && %%PREFIX%%/bin/cbsd naton
/usr/sbin/daemon ${rcddir}/jails-astart start
[ -n "$nat_enable" ] && %%PREFIX%%/bin/cbsd naton
/usr/sbin/daemon ${rcddir}/jails-astart start
}
cbsdd_prestop()
{
${rcddir}/jails-astart stop
[ -n "${nat_enable}" ] && %%PREFIX%%/bin/cbsd natoff
${rcddir}/jails-astart stop
[ -n "${nat_enable}" ] && %%PREFIX%%/bin/cbsd natoff
}
cbsdd_stop()
{
[ -f "${pidfile}" ] && kill -9 $( cat ${pidfile} )
}
run_rc_command "$1"

View File

@ -0,0 +1,8 @@
@mode 500
@group cbsd
@owner cbsd
bin/cbsd
@owner
@group
@mode
man/man8/cbsd.8.gz