Created
February 11, 2013 17:38
-
-
Save JustinAzoff/4756025 to your computer and use it in GitHub Desktop.
script that I use via puppet to install pf_ring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
cd /var/tmp | |
rm -rf pf_ring_trunk* | |
tar xvzf /var/lib/puppet/modules/sniffer/pf_ring_trunk_2012-03-15.tgz | |
#fix stupid build issues with snort module | |
ln -sf /var/tmp/pf_ring* /root/PF_RING | |
cd pf_ring_trunk* | |
#install /lib/modules/`uname -r`/kernel/net/pf_ring/pf_ring.ko | |
cd kernel | |
make -j4 | |
make install | |
if [ $1 = "kernel" ]; then | |
exit 0; | |
fi; | |
cd ../userland/lib/ | |
./configure --prefix=/opt/pfring | |
make -j4 | |
make install | |
cd ../libpcap | |
./configure --prefix=/opt/pfring | |
make -j4 | |
make install | |
cd ../tcpdump-4.1.1 | |
./configure --prefix=/opt/pfring | |
make -j4 | |
make install | |
cd ../snort/pfring-daq-module | |
autoreconf -ivf | |
./configure --with-libpfring-includes=/opt/pfring/include/ --with-libpfring-libraries=/opt/pfring/lib/ | |
make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment