1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 13:22:36 +01:00
fastnetmon-rewritten/docs/BUILDING_VYOS_ISO.md
2015-06-05 13:38:33 +03:00

2.0 KiB

This guide fill describe how build iso image of VyOS with bundled FastNetMon

First af all, you need only Debian Squeeze for building this image!

Install VyOS keyring:

apt-get install debian-archive-keyring
wget http://vyos.net/so3group_maintainers.key
gpg --import so3group_maintainers.key

Enable Backports repo and install Squashfs tools:

echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list
apt-get update
apt-get -t squeeze-backports install squashfs-tools

Install packages for building iso image:

apt-get install git autoconf automake dpkg-dev live-helper syslinux genisoimage

Install FastNetMon build deps:

apt-get install -y  cmake libboost-thread-dev libboost-system-dev libboost-regex-dev libpcap-dev libnuma-dev liblog4cpp5-dev libboost-all-dev libgpm-dev libncurses5-dev libgeoip-dev clang

New manual:

git clone https://github.com/pavel-odintsov/build-iso.git
cd build-iso
git submodule update --init pkgs/fastnetmon/
export PATH=/sbin:/usr/sbin:$PATH
autoreconf -i
echo -e "libboost-regex1.42.0\nlibboost-thread1.42.0\nliblog4cpp5\nlibpcap0.8\nfastnetmon" >> livecd/config.vyatta/chroot_local-packageslists/vyatta-full.list

Replace depends for vim pkgs/fastnetmon/debian/control

Depends: ${shlibs:Depends}, ${misc:Depends}, libboost-thread1.42.0, libboost-system1.42.0 , libboost-regex1.42.0, libpcap0.8, liblog4cpp5
cd pkgs/fastnetmon
ln -s ../src/fastnetmon_init_script_debian_6_7 debian/fastnetmon.init
ln -s ../src/fastnetmon.service debian/fastnetmon.service
cd ..
cd ..
make fastnetmon


cd pkgs
wget http://ftp.us.debian.org/debian/pool/main/b/boost1.42/libboost-regex1.42.0_1.42.0-4_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/b/boost1.42/libboost-thread1.42.0_1.42.0-4_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/l/log4cpp/liblog4cpp5_1.0-4_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/libp/libpcap/libpcap0.8_1.1.1-2+squeeze1_amd64.deb
cd ..

./configure
make iso