-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
80 lines (71 loc) · 1.49 KB
/
snapcraft.yaml
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
name: net-snmp
version: '5.9'
summary: SNMP agent
description: |
http://www.net-snmp.org/
snmpd is an SNMP agent which binds to a port and awaits requests from
SNMP management software. Upon receiving a request, it processes the
request(s), collects the requested information and/or performs the
requested operation(s) and returns the information to the sender.
confinement: strict
grade: stable
apps:
snmpd:
command: run-snmpd
daemon: simple
plugs:
- hardware-observe
- mount-observe
- network
- network-bind
- network-observe
- network-setup-observe
- system-observe
snmpget:
command: snmpget -M $SNAP/share/snmp/mibs
plugs:
- network
snmpwalk:
command: snmpwalk -M $SNAP/share/snmp/mibs
plugs:
- network
parts:
snmpd:
plugin: autotools
configflags:
- --disable-embedded-perl
- --without-perl-modules
install-via: prefix
build-packages:
- libperl-dev
- libssl-dev
stage-packages:
- libpci3
- libssl1.0.0
filesets:
binaries:
- bin
- sbin
libraries:
- lib
mibs:
- share/snmp/mibs
stage:
- $binaries
- $libraries
- $mibs
prime:
- $binaries
- $libraries
- $mibs
configuration:
plugin: dump
source: .
organize:
run-snmpd: sbin/run-snmpd
stage:
- sbin/run-snmpd
- snmpd.conf
prime:
- sbin/run-snmpd
- snmpd.conf