@@ -1110,31 +1110,6 @@ EOF
1110
1110
1111
1111
sudo modprobe br_netfilter
1112
1112
sudo sysctl -p
1113
-
1114
- # ## PDNS
1115
- sudo apt-get install -y git binutils-dev libldns-dev libpcap-dev libdate-simple-perl libdatetime-perl libdbd-mysql-perl
1116
- cd /tmp || return
1117
-
1118
- # From pevious install
1119
- if [ -d /tmp/passivedns ]; then
1120
- sudo rm -rf /tmp/passivedns
1121
- fi
1122
- git clone https://github.com/gamelinux/passivedns.git
1123
- cd passivedns/ || return
1124
- autoreconf --install
1125
- ./configure
1126
- make -j" $( getconf _NPROCESSORS_ONLN) "
1127
- sudo checkinstall -D --pkgname=passivedns --default
1128
- chown ${USER} :${USER} -R /tmp/passivedns/
1129
- sudo -u ${USER} bash -c ' /etc/poetry/bin/poetry --directory /opt/CAPEv2/ run pip install unicorn capstone'
1130
- sudo -u ${USER} bash -c ' cd /tmp/passivedns/ ; /etc/poetry/bin/poetry --directory /opt/CAPEv2/ run pip install unicorn capstone'
1131
- sed -i ' s/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
1132
-
1133
- if [ -d /tmp/passivedns ]; then
1134
- cd /tmp || return
1135
- sudo rm -rf /tmp/passivedns
1136
- fi
1137
-
1138
1113
}
1139
1114
1140
1115
function install_clamav() {
@@ -1523,6 +1498,29 @@ function install_postgres_pg_activity() {
1523
1498
sudo apt-get install -y pg-activity
1524
1499
}
1525
1500
1501
+ function install_passivedns() {
1502
+ sudo apt-get install -y git binutils-dev libldns-dev libpcap-dev libdate-simple-perl libdatetime-perl libdbd-mysql-perl
1503
+ cd /tmp || return
1504
+
1505
+ # From pevious install
1506
+ if [ -d /tmp/passivedns ]; then
1507
+ sudo rm -rf /tmp/passivedns
1508
+ fi
1509
+ git clone https://github.com/gamelinux/passivedns.git
1510
+ cd passivedns/ || return
1511
+ autoreconf --install
1512
+ ./configure
1513
+ make -j" $( getconf _NPROCESSORS_ONLN) "
1514
+ sudo checkinstall -D --pkgname=passivedns --default
1515
+ chown ${USER} :${USER} -R /tmp/passivedns/
1516
+ sed -i ' s/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
1517
+
1518
+ if [ -d /tmp/passivedns ]; then
1519
+ cd /tmp || return
1520
+ sudo rm -rf /tmp/passivedns
1521
+ fi
1522
+ }
1523
+
1526
1524
# Doesn't work ${$1,,}
1527
1525
COMMAND=$( echo " $1 " | tr " {A-Z}" " {a-z}" )
1528
1526
@@ -1678,6 +1676,8 @@ case "$COMMAND" in
1678
1676
install_DIE;;
1679
1677
' fluentd' )
1680
1678
install_fluentd;;
1679
+ ' passivedns' )
1680
+ install_passivedns;;
1681
1681
* )
1682
1682
usage;;
1683
1683
esac
0 commit comments