packaging

This commit is contained in:
Hannes Mehnert 2018-10-28 23:18:07 +01:00
parent 2b85c65dd8
commit bd669dbe44
2 changed files with 10 additions and 8 deletions

View file

@ -23,12 +23,13 @@ for f in albatross_log \
do install -U $basedir/packaging/rc.d/$f $rootdir/usr/local/etc/rc.d/$f; done do install -U $basedir/packaging/rc.d/$f $rootdir/usr/local/etc/rc.d/$f; done
# stage albatross app binaries # stage albatross app binaries
for f in vmmd vmmd_log vmmd_console vmmd_stats; do for f in vmmd vmmd_log vmmd_console vmmd_stats vmmd_influx vmmd_tls; do
install -U $basedir/_build/app/$f.native \ install -U $basedir/_build/app/$f.native \
$rootdir/usr/local/libexec/albatross/$f; done $rootdir/usr/local/libexec/albatross/$f; done
install -U $basedir/_build/app/vmmc_local.native \ for f in vmmc_local vmmc_remote vmmc_bistro vmmp_ca vmmp_request; do
$rootdir/usr/local/sbin/vmmc_local install -U $basedir/_build/app/$f.native \
$rootdir/usr/local/sbin/$f; done
# create +MANIFEST # create +MANIFEST
flatsize=$(find "$rootdir" -type f -exec stat -f %z {} + | flatsize=$(find "$rootdir" -type f -exec stat -f %z {} + |

View file

@ -39,14 +39,14 @@ albatross_x_start () {
_ALL) _ALL)
for _vm in $albatross_x_vms; do for _vm in $albatross_x_vms; do
eval _create_args=\"\$albatross_x_args_${_vm}\" eval _create_args=\"\$albatross_x_args_${_vm}\"
/usr/local/sbin/vmmc create $_vm $_create_args /usr/local/sbin/vmmc_local create $_vm $_create_args
done done
return return
;; ;;
esac esac
for _vm in $@; do for _vm in $@; do
eval _create_args=\"\$albatross_x_args_${_vm}\" eval _create_args=\"\$albatross_x_args_${_vm}\"
/usr/local/sbin/vmmc create $_vm $_create_args /usr/local/sbin/vmmc_local create $_vm $_create_args
done done
} }
@ -54,15 +54,16 @@ albatross_x_stop () {
case $1 in case $1 in
ALL) ALL)
for _vm in $albatross_x_vms for _vm in $albatross_x_vms
do /usr/local/sbin/vmmc destroy $_vm; done do /usr/local/sbin/vmmc_local destroy $_vm; done
return return
esac esac
for _vm in $@ for _vm in $@
do /usr/local/sbin/vmmc destroy $_vm; done do /usr/local/sbin/vmmc_local destroy $_vm; done
} }
albatross_x_status () { albatross_x_status () {
/usr/local/sbin/vmmc info for _vm in $@
do /usr/local/sbin/vmmc_local info $_vm; done
} }
case $# in case $# in