User Tools

Site Tools

Translations of this page:

Sidebar

compilation_debian

Preparation

Before compile and build package need satisfy some dependencies
cmake - open-source system that manages the build process
gcc - GNU Compiler Collection (GCC) is a compiler system
linux-headers-`uname -r` - source code of current installing linux kernel, need for build ipoe and vlan_mon modules. If you don`t need these modules, you may don`t install this
git - version-control system for tracking changes, (need for downloading source code)
libpcre3-dev - source code of pcre lib, accel-ppp need it for use reg expression
libssl-dev - source code of pcre lib, accel-ppp need it for use regular expression
liblua5.1-0-dev - this need for create custom username (IPoE) from packet. Script write on lua language

apt-get install -y build-essential cmake gcc linux-headers-`uname -r` git libpcre3-dev libssl-dev liblua5.1-0-dev

After install dependencies, download accel-ppp source code with git client, tree master . Master tree contain actual patches last release.

git clone git://git.code.sf.net/p/accel-ppp/code /opt/accel-ppp-code

Create directory for build source code and go to this directory.

mkdir /opt/accel-ppp-code/build
cd /opt/accel-ppp-code/build/

Next params:

-DBUILD_IPOE_DRIVER=TRUE
Include IPoE module. This module need if you want use accel-ppp as shared interface.
-DBUILD_VLAN_MON_DRIVER=TRUE
Include vlan monitoring module. If you want create vlan automatically on analyse IP headers with regular expression set on accel-ppp config file. (Available for IPoE and PPPoE)
-DKDIR=/usr/src/linux-headers-`uname -r`
Sets path to Linux kernel source code. Need only for build IPOE, VLAN-MON.
-DCMAKE_INSTALL_PREFIX=/usr
Path for install executable code. If you build DEB package, not recommended change this.
-DCPACK_TYPE=Debian9
This arguments for building DEB package.
cmake -DBUILD_IPOE_DRIVER=TRUE -DBUILD_VLAN_MON_DRIVER=TRUE -DCMAKE_INSTALL_PREFIX=/usr -DKDIR=/usr/src/linux-headers-`uname -r` -DLUA=TRUE -DCPACK_TYPE=Debian9 ..

Notice: ended symbols .. sets path to accel-ppp source code, not delete this!
Compile:

make

Make DEB package

cpack -G DEB

Install package

dpkg -i accel-ppp.deb

If you have success packet install, rename config file to accel-ppp.conf

mv /etc/accel-ppp.conf.dist /etc/accel-ppp.conf

Edit accel-ppp.conf for you schemas and run accel-ppp Run as systemd unit

systemctl start accel-ppp

or run manual (not recommended)

accel-pppd -d -c /etc/accel-ppp.conf

Notice: for rotation log you can read https://accel-ppp.org/wiki/doku.php?id=faq

compilation_debian.txt · Last modified: 2019/01/17 15:09 by dimka88