ArpON's install:
================

1) Porting avaible;
2) General options;
3) Static linking;

In order to use ArpON you need the following 
libraries installed in your system:

	- Pthread
	- Libpcap
	- LibNet 1.1
	- LibDNet

1) Porting available

ArpON is supported on all linux os, Mac OS X, FreeBSD, OpenBSD and NetBSD.
There are two method of installation:

 - cmake method
 - Makefile method

* Cmake method

Cmake method can produce automatically the binary packages of debian/ubuntu  deb, rpm, sh, tar.gz, tar.bz2 ,stgz 
To install arpon via cmake follow these commands as root:

	$ mkdir build
	$ cd build
	$ cmake ..
	$ make
	$ make install

 If you want personalize the compilation phase
 with your custom CFLAGS run cmake with:

 	-DCMAKE_C_FLAGS="-your-personal-cflags"

 If you have problems with cmake test, run cmake by specifying
 the library and the include path where to search with:

	-DCMAKE_INCLUDE_PATH="/path/to/include/"
	-DCMAKE_LIBRARY_PATH="/path/to/include/"


 If you want to make a deb,rpm,tar.gz,tbz2,stgz package
 run after the "make" phase:
	$ fakeroot cpack .

* Makefile method
	
	$ make

	For Linux users:
		$ make linux

	For Debian users:
		$ make debian

	For Gentoo users:
		$ make gentoo

	For Mac OS X users:
        	$ make osx

	For FreeBSD users:
		$ make freebsd
		$ make freebsd_new

	For NetBSD users:
		$ make netbsd
		$ make netbsd_new

	For OpenBSD users:
		$ make openbsd
		$ make openbsd_new

2) General options:
	
	Clean with:
		$ make clean

	Install with:
		# sudo make install
	Or
		# make install

	Uninstall with
		# sudo make install
	Or
		# make uninstall

	Use with:
		# ./arpon
	Or
		# arpon

3) Static linking:
==================

If you have problems with make, search the static linking libraries in:

	- /usr/lib
	- /usr/local/lib

Later, search .a or .so or .dylib of

	- libpcap
	- libnet
	- libdnet

Example path of static libraries in my OS system:

	- /usr/lib/libpcap.a
	- /usr/lib/libnet.a
	- /usr/local/lib/libdnet.a

Later, open arpon's makefile and modify your OS gcc line.
For example, in my OS (Linux) I modify his line

From:

	gcc $(CFLAGS) $(LDFLAGS) $(LIBS_LINUX) -DLINUX -o $(EXEC) $(SOURCE)

To:

	gcc $(CFLAGS) $(LDFLAGS) $(LIBS_LINUX) -DLINUX -o $(EXEC) $(SOURCE) /usr/lib/libpcap.a /usr/lib/libnet.a /usr/local/lib/libdnet.a

Save and exit, go:

$ make
$ sudo make install
