2018-06-26 23:37:30 +03:00
|
|
|
name: lnav
|
2020-09-23 14:47:44 -07:00
|
|
|
adopt-info: lnav
|
2020-09-23 14:15:48 -07:00
|
|
|
summary: Log File Navigator
|
2018-06-26 23:37:30 +03:00
|
|
|
description: |
|
2026-01-29 11:41:16 -08:00
|
|
|
The Log File Navigator is a log file viewer for the terminal.
|
2022-09-02 00:13:43 -07:00
|
|
|
icon: docs/assets/images/favicon.png
|
2018-06-26 23:37:30 +03:00
|
|
|
|
2025-11-19 10:07:51 -08:00
|
|
|
base: core22
|
2020-09-23 23:35:13 -07:00
|
|
|
grade: stable
|
2018-06-26 23:37:30 +03:00
|
|
|
confinement: strict
|
|
|
|
|
|
2021-09-16 06:47:55 -07:00
|
|
|
environment:
|
|
|
|
|
LOCPATH: $SNAP/usr/lib/locale
|
2021-09-26 21:14:54 -07:00
|
|
|
GIT_TEMPLATE_DIR: $SNAP/usr/share/git-core/templates
|
|
|
|
|
GIT_EXEC_PATH: $SNAP/usr/lib/git-core
|
2021-09-16 06:47:55 -07:00
|
|
|
|
2023-06-21 13:10:01 -07:00
|
|
|
plugs:
|
|
|
|
|
etc-lnav:
|
|
|
|
|
interface: system-files
|
|
|
|
|
read:
|
|
|
|
|
- /etc/lnav
|
|
|
|
|
|
2025-07-10 16:27:18 +02:00
|
|
|
slots:
|
|
|
|
|
lnav-bin:
|
|
|
|
|
interface: content
|
|
|
|
|
content: lnav
|
|
|
|
|
source:
|
|
|
|
|
read:
|
|
|
|
|
- $SNAP/bin
|
|
|
|
|
|
2018-06-26 23:37:30 +03:00
|
|
|
apps:
|
2018-07-10 22:39:05 -07:00
|
|
|
lnav:
|
2021-10-01 18:43:14 -07:00
|
|
|
command: usr/bin/lnav
|
2021-08-25 11:21:07 +00:00
|
|
|
plugs:
|
2023-06-21 13:10:01 -07:00
|
|
|
- etc-lnav
|
2018-06-26 23:37:30 +03:00
|
|
|
- home # optional, allows to read log files from home directory
|
|
|
|
|
- log-observe # required, provide access to system logs in /var/log
|
2021-06-08 19:27:44 -07:00
|
|
|
- network # required, lnav uses sendto() with UNIX domain socket
|
2021-09-26 02:15:58 -07:00
|
|
|
- removable-media
|
2021-06-08 19:27:44 -07:00
|
|
|
- ssh-keys
|
2021-09-14 22:31:07 -07:00
|
|
|
- x11
|
2018-06-26 23:37:30 +03:00
|
|
|
|
|
|
|
|
parts:
|
2025-02-12 12:20:25 -08:00
|
|
|
rustup:
|
|
|
|
|
plugin: rust
|
|
|
|
|
rust-channel: stable
|
2025-02-12 12:38:14 -08:00
|
|
|
source: .
|
|
|
|
|
override-build: ""
|
|
|
|
|
override-prime: ""
|
2018-06-26 23:37:30 +03:00
|
|
|
lnav:
|
2020-09-23 14:47:44 -07:00
|
|
|
after:
|
2025-02-12 11:35:29 -08:00
|
|
|
- rustup
|
2018-06-26 23:37:30 +03:00
|
|
|
plugin: autotools
|
2022-09-01 21:25:17 -07:00
|
|
|
autotools-configure-parameters:
|
2022-09-01 21:16:28 -07:00
|
|
|
- CFLAGS="-O2"
|
|
|
|
|
- CXXFLAGS="-O2"
|
2025-02-12 12:58:34 -08:00
|
|
|
- PATH="${HOME}/.cargo/bin:${PATH}"
|
2018-06-26 23:37:30 +03:00
|
|
|
source: https://github.com/tstack/lnav.git
|
2020-09-23 14:47:44 -07:00
|
|
|
source-depth: 500
|
|
|
|
|
override-pull: |
|
2025-11-19 12:38:28 -08:00
|
|
|
craftctl default
|
|
|
|
|
${CRAFT_PROJECT_DIR}/snap/local/scriptlets/selective-checkout --force-snapshot
|
2026-03-13 22:29:22 -07:00
|
|
|
override-build: |
|
|
|
|
|
craftctl default
|
|
|
|
|
execstack --clear-execstack lnav
|
2021-08-25 11:21:07 +00:00
|
|
|
build-packages:
|
2025-11-19 12:38:28 -08:00
|
|
|
- git
|
|
|
|
|
- curl
|
|
|
|
|
- jq
|
|
|
|
|
- sed
|
2018-06-26 23:37:30 +03:00
|
|
|
- build-essential
|
2021-06-08 15:35:25 -07:00
|
|
|
- libarchive-dev
|
2022-06-13 11:46:14 -07:00
|
|
|
- libcurl4-gnutls-dev
|
2022-09-12 13:52:34 -07:00
|
|
|
- libpcre2-dev
|
2018-06-26 23:37:30 +03:00
|
|
|
- libsqlite3-dev
|
2025-01-24 06:30:05 -08:00
|
|
|
- libunistring-dev
|
2018-06-26 23:37:30 +03:00
|
|
|
- zlib1g-dev
|
|
|
|
|
- libbz2-dev
|
2020-09-23 15:05:43 -07:00
|
|
|
stage-packages:
|
2018-06-26 23:37:30 +03:00
|
|
|
- zlib1g
|
2021-09-26 21:14:54 -07:00
|
|
|
- git-core
|
2022-06-13 11:46:14 -07:00
|
|
|
- libcurl4
|
2022-09-12 14:36:33 -07:00
|
|
|
- libpcre2-8-0
|
2021-06-08 15:50:36 -07:00
|
|
|
- libarchive13
|
2025-11-19 11:48:07 -08:00
|
|
|
- libicu70
|
2021-06-08 15:50:36 -07:00
|
|
|
- libxml2
|
2021-09-15 22:40:32 -07:00
|
|
|
- locales-all
|
2021-09-26 01:54:06 -07:00
|
|
|
- ssh
|
2021-11-05 15:13:16 -07:00
|
|
|
- tshark
|
2021-09-14 23:15:52 -07:00
|
|
|
- xclip
|