annotate pipe.py @ 103:8b8ef9d8f0fd

dead code and templates, reformat, maybe a little refactor
author drewp@bigasterisk.com
date Fri, 15 Jul 2022 15:24:44 -0700
parents b70070570e10
children 95fcc05c2747
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
103
8b8ef9d8f0fd dead code and templates, reformat, maybe a little refactor
drewp@bigasterisk.com
parents: 96
diff changeset
1 from pyinfra.operations import apt, files, git, server
96
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
2
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
3
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
4 def ntop():
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
5 files.directory('/opt/ntop')
103
8b8ef9d8f0fd dead code and templates, reformat, maybe a little refactor
drewp@bigasterisk.com
parents: 96
diff changeset
6
96
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
7 apt.packages(packages=[
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
8 "build-essential", "git", "bison", "flex", "libxml2-dev", "libpcap-dev", "libtool", "libtool-bin", "rrdtool",
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
9 "librrd-dev", "autoconf", "pkg-config", "automake", "autogen", "redis-server", "wget", "libsqlite3-dev", "libhiredis-dev",
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
10 "libmaxminddb-dev", "libcurl4-openssl-dev", "libpango1.0-dev", "libcairo2-dev", "libnetfilter-queue-dev", "zlib1g-dev",
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
11 "libssl-dev", "libcap-dev", "libnetfilter-conntrack-dev", "libreadline-dev", "libjson-c-dev", "libldap2-dev", "rename",
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
12 "libsnmp-dev", "libexpat1-dev", "libsnmp-dev", "libmaxminddb-dev", "libradcli-dev", "libjson-c-dev", "libzmq3-dev",
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
13 "libmariadb-dev"
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
14 ])
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
15 git.repo(src='https://github.com/ntop/nDPI.git', dest='/opt/ntop/nDPI', branch='4.4-stable')
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
16 git.repo(src='https://github.com/ntop/ntopng.git', dest='/opt/ntop/ntopng', branch='5.4-stable')
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
17
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
18 server.shell('cd /opt/ntop/nDPI; ./autogen.sh; ./configure; make -j 6')
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
19 server.shell('cd /opt/ntop/ntopng; ./autogen.sh; ./configure; make -j 6')
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
20
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
21
b70070570e10 new task for building ntop from source
drewp@bigasterisk.com
parents:
diff changeset
22 ntop()