1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-24 02:46:36 +01:00

Add doc about building iso image with VyOS and FastNetMon

This commit is contained in:
Pavel Odintsov 2015-06-05 13:21:49 +03:00
parent e82f20d990
commit 853a751866

55
docs/BUILDING_VYOS_ISO.md Normal file

@ -0,0 +1,55 @@
# 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:
```bash
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:
```bash
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:
```bash
apt-get install git autoconf automake dpkg-dev live-helper syslinux genisoimage
```
Install FastNetMon build deps:
```bash
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:
```bash
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```
```bash
Depends: ${shlibs:Depends}, ${misc:Depends}, libboost-thread1.42.0, libboost-system1.42.0 , libboost-regex1.42.0, libpcap0.8, liblog4cpp5
```
```bash
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
```