2017-06-24 19:47:16 +03:00
|
|
|
name: glances
|
2019-01-26 00:49:14 +03:00
|
|
|
adopt-info: glances
|
2017-06-24 19:47:16 +03:00
|
|
|
summary: Glances an Eye on your system. A top/htop alternative.
|
|
|
|
description: |
|
|
|
|
Glances is a cross-platform monitoring tool which aims to present
|
|
|
|
a maximum of information in a minimum of space through a curses or
|
|
|
|
Web based interface. It can adapt dynamically the displayed information
|
|
|
|
depending on the user interface size.
|
|
|
|
|
2024-02-03 11:59:31 +03:00
|
|
|
base: core22
|
2017-06-24 19:47:16 +03:00
|
|
|
grade: stable
|
|
|
|
confinement: strict
|
|
|
|
|
|
|
|
apps:
|
|
|
|
glances:
|
2024-03-23 13:39:21 +03:00
|
|
|
# adapter: none
|
2022-10-22 13:25:41 +03:00
|
|
|
command: bin/glances-launch $SNAP/bin/glances
|
2017-06-24 19:47:16 +03:00
|
|
|
plugs:
|
|
|
|
- network
|
2017-11-02 23:08:24 +03:00
|
|
|
- system-observe
|
2018-01-01 12:43:34 +03:00
|
|
|
- mount-observe
|
|
|
|
- hardware-observe
|
|
|
|
- log-observe
|
|
|
|
- network-observe
|
|
|
|
- physical-memory-observe
|
|
|
|
- upower-observe
|
2019-01-23 22:30:27 +03:00
|
|
|
- home
|
2019-04-05 13:40:43 +03:00
|
|
|
- network-bind
|
2019-01-25 11:50:08 +03:00
|
|
|
environment:
|
|
|
|
LANG: C.UTF-8
|
|
|
|
LC_ALL: C.UTF-8
|
2019-01-23 22:30:27 +03:00
|
|
|
|
2019-04-10 12:35:42 +03:00
|
|
|
plugs:
|
|
|
|
home-glances-config:
|
|
|
|
interface: personal-files
|
|
|
|
read:
|
2019-04-11 19:45:47 +03:00
|
|
|
- $HOME/.config/glances/glances.conf
|
2019-04-10 12:35:42 +03:00
|
|
|
etc-glances-config:
|
|
|
|
interface: system-files
|
|
|
|
read:
|
2019-04-11 19:45:47 +03:00
|
|
|
- /etc/glances/glances.conf
|
2019-04-10 12:35:42 +03:00
|
|
|
|
2017-06-24 19:47:16 +03:00
|
|
|
parts:
|
|
|
|
glances:
|
2019-04-11 19:55:02 +03:00
|
|
|
after:
|
|
|
|
- selective-checkout
|
2017-06-24 19:47:16 +03:00
|
|
|
plugin: python
|
2019-01-25 11:54:34 +03:00
|
|
|
source: .
|
2019-01-26 00:49:14 +03:00
|
|
|
# FIXME: Theoretically this also replaces `summary` and `description`
|
|
|
|
# keys, however due to the following bug we still need to keep
|
|
|
|
# them until it is fixed.
|
|
|
|
# https://bugs.launchpad.net/snapcraft/+bug/1813364
|
|
|
|
parse-info: [setup.py]
|
|
|
|
override-pull: |
|
2024-03-23 13:39:21 +03:00
|
|
|
craftctl default
|
|
|
|
"$CRAFT_STAGE"/scriptlets/selective-checkout
|
2023-11-26 12:02:30 +03:00
|
|
|
|
|
|
|
fastapi:
|
|
|
|
plugin: python
|
|
|
|
source: https://github.com/tiangolo/fastapi.git
|
2024-02-03 11:59:31 +03:00
|
|
|
source-tag: '0.109.0'
|
2023-11-26 12:02:30 +03:00
|
|
|
source-depth: 1
|
|
|
|
override-build: |
|
2024-03-23 13:39:21 +03:00
|
|
|
mkdir -p $CRAFT_PART_BUILD/dist
|
|
|
|
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/fastapi-dist
|
2023-11-26 12:02:30 +03:00
|
|
|
organize:
|
|
|
|
fastapi-dist: fastapi/dist
|
|
|
|
|
|
|
|
uvicorn:
|
2017-06-24 19:47:16 +03:00
|
|
|
plugin: python
|
2023-11-26 12:02:30 +03:00
|
|
|
source: https://github.com/encode/uvicorn.git
|
2024-02-03 11:59:31 +03:00
|
|
|
source-tag: '0.27.0.post1'
|
2019-01-26 06:21:22 +03:00
|
|
|
source-depth: 1
|
2021-01-24 23:51:58 +03:00
|
|
|
override-build: |
|
2024-03-23 13:39:21 +03:00
|
|
|
mkdir -p $CRAFT_PART_BUILD/dist
|
|
|
|
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/uvicorn-dist
|
2021-01-24 23:51:58 +03:00
|
|
|
organize:
|
2023-11-26 12:02:30 +03:00
|
|
|
uvicorn-dist: uvicorn/dist
|
2022-10-22 12:53:39 +03:00
|
|
|
|
2023-11-27 00:40:36 +03:00
|
|
|
orjson:
|
|
|
|
plugin: python
|
|
|
|
source: https://github.com/ijl/orjson.git
|
2024-02-03 11:59:31 +03:00
|
|
|
source-tag: '3.9.12'
|
2023-11-27 00:40:36 +03:00
|
|
|
source-depth: 1
|
|
|
|
override-build: |
|
2024-03-23 13:39:21 +03:00
|
|
|
mkdir -p $CRAFT_PART_BUILD/dist
|
|
|
|
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/orjson-dist
|
2023-11-27 00:40:36 +03:00
|
|
|
organize:
|
|
|
|
orjson-dist: orjson/dist
|
|
|
|
|
|
|
|
jinja2:
|
|
|
|
plugin: python
|
|
|
|
source: https://github.com/pallets/jinja.git
|
2024-02-03 11:59:31 +03:00
|
|
|
source-tag: '3.1.3'
|
2023-11-27 00:40:36 +03:00
|
|
|
source-depth: 1
|
|
|
|
override-build: |
|
2024-03-23 13:39:21 +03:00
|
|
|
mkdir -p $CRAFT_PART_BUILD/dist
|
|
|
|
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/jinja2-dist
|
2023-11-27 00:40:36 +03:00
|
|
|
organize:
|
|
|
|
jinja2-dist: jinja2/dist
|
|
|
|
|
2017-06-25 11:17:12 +03:00
|
|
|
docker:
|
|
|
|
plugin: python
|
|
|
|
source: https://github.com/docker/docker-py.git
|
2024-02-03 11:59:31 +03:00
|
|
|
source-tag: '7.0.0'
|
2019-01-26 06:21:22 +03:00
|
|
|
source-depth: 1
|
2021-01-24 23:51:58 +03:00
|
|
|
override-build: |
|
2024-03-23 13:39:21 +03:00
|
|
|
mkdir -p $CRAFT_PART_BUILD/dist
|
|
|
|
cp -r $CRAFT_PART_BUILD/dist $CRAFT_PART_INSTALL/docker-dist
|
2021-01-24 23:51:58 +03:00
|
|
|
organize:
|
2023-05-19 10:02:10 +03:00
|
|
|
docker-dist: docker/dist
|
|
|
|
|
2019-04-10 12:35:42 +03:00
|
|
|
launchers:
|
2022-10-22 13:25:41 +03:00
|
|
|
source: snap/local/launchers
|
2019-04-10 12:35:42 +03:00
|
|
|
plugin: dump
|
|
|
|
organize:
|
|
|
|
'*': bin/
|
2022-10-22 12:53:39 +03:00
|
|
|
|
2019-04-11 19:55:02 +03:00
|
|
|
selective-checkout:
|
2023-05-19 11:15:12 +03:00
|
|
|
plugin: nil
|
2019-04-11 19:55:02 +03:00
|
|
|
build-packages:
|
2023-05-19 11:15:12 +03:00
|
|
|
- git
|
|
|
|
stage-snaps:
|
|
|
|
- selective-checkout
|
2019-04-11 19:55:02 +03:00
|
|
|
prime:
|
2023-05-19 11:15:12 +03:00
|
|
|
- -*
|