-
-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
96 lines (90 loc) · 2.13 KB
/
snapcraft.yaml
File metadata and controls
96 lines (90 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: lnav
adopt-info: lnav
summary: Log File Navigator
description: |
The Log File Navigator is a log file viewer for the terminal.
icon: docs/assets/images/favicon.png
contact: support@lnav.org
website: https://lnav.org
issues: https://github.com/tstack/lnav/issues
source-code: https://github.com/tstack/lnav
donation: https://github.com/sponsors/tstack
base: core22
grade: stable
confinement: strict
environment:
LOCPATH: $SNAP/usr/lib/locale
GIT_TEMPLATE_DIR: $SNAP/usr/share/git-core/templates
GIT_EXEC_PATH: $SNAP/usr/lib/git-core
plugs:
etc-lnav:
interface: system-files
read:
- /etc/lnav
slots:
lnav-bin:
interface: content
content: lnav
source:
read:
- $SNAP/bin
apps:
lnav:
command: usr/bin/lnav
plugs:
- etc-lnav
- home # optional, allows to read log files from home directory
- log-observe # required, provide access to system logs in /var/log
- network # required, lnav uses sendto() with UNIX domain socket
- removable-media
- ssh-keys
- x11
parts:
rustup:
plugin: rust
rust-channel: stable
source: .
override-build: ""
override-prime: ""
lnav:
after:
- rustup
plugin: autotools
autotools-configure-parameters:
- CFLAGS="-O2"
- CXXFLAGS="-O2"
- PATH="${HOME}/.cargo/bin:${PATH}"
source: https://github.com/tstack/lnav.git
source-depth: 500
override-pull: |
craftctl default
${CRAFT_PROJECT_DIR}/snap/local/scriptlets/selective-checkout --force-snapshot
override-build: |
craftctl default
execstack --clear-execstack $SNAPCRAFT_PART_INSTALL/usr/bin/lnav || true
build-packages:
- git
- curl
- jq
- sed
- build-essential
- libarchive-dev
- libcurl4-gnutls-dev
- libpcre2-dev
- libsqlite3-dev
- libunistring-dev
- zlib1g-dev
- libbz2-dev
- execstack
stage-packages:
- zlib1g
- git-core
- libcurl4
- libpcre2-8-0
- libarchive13
- libicu70
- libxml2
- locales-all
- ssh
- tshark
- xclip