File: snapcraft.yaml

package info (click to toggle)
ntopng 3.8%2Bdfsg1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 50,752 kB
  • sloc: cpp: 45,340; ansic: 10,388; sh: 2,747; makefile: 950; python: 585; pascal: 291; perl: 118; ruby: 52; exp: 4
file content (72 lines) | stat: -rw-r--r-- 1,965 bytes parent folder | download | duplicates (2)
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
name: ntopng
version: dev
summary: High-speed web-based traffic analysis and flow collection.
description: ntopng is the next generation version of the original ntop, a network traffic probe that shows the network usage, similar to what the popular top Unix command does.
confinement: strict

apps:
    ntopng:
        daemon: simple
        command: bin/start-ntopng.sh
        plugs:
           - network-bind
           - network-control
    redis-server:
        daemon: simple
        command: bin/start-redis.sh
        plugs:
            - network-bind

parts:
    ndpi:
        plugin: copy
        source: https://github.com/ntop/nDPI.git
        files: {}
    ntopng-init:
        plugin: copy
        source: https://github.com/ntop/ntopng.git
        after:
            - ndpi
        files:
            '*': .
            '../../ndpi/build/*': nDPI/
        stage:
            - -*
        snap:
            - -*
    ntopng:
        plugin: autotools
        source: parts/ntopng-init/install
        after:
            - ntopng-init
        build-packages:
            - libxml2-dev
            - libpcap-dev
            - libsqlite3-dev
            - libhiredis-dev
            - libgeoip-dev
            - libcurl4-openssl-dev
            - libpango1.0-dev
            - libcairo2-dev
            - libpng12-dev
            - libmysqlclient-dev
            - libnetfilter-queue-dev
            - zlib1g-dev
            - libzmq3-dev
    redis:
        plugin: make
        source: http://download.redis.io/releases/redis-3.2.3.tar.gz
        make-install-var: PREFIX
    daemons:
        plugin: copy
        source: ./snappy/
        files:
            start-redis.sh: bin/start-redis.sh
            start-ntopng.sh: bin/start-ntopng.sh
    netcat:
        plugin: autotools
        source: http://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz
        stage:
            - bin/netcat
        snap:
            - bin/netcat