- Remove auto-start from Ubuntu 12.04 Backport - Update Doc to explain on how to enable startup Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
3.2 KiB
Building your own FRRouting Debian Package
(Tested on Ubuntu 12.04, 14.04, 16.04 and Debian 8)
-
Follow the package installation as outlined in doc/Building_on_XXXX.md (XXXX refers your OS Distribution) to install the required build packages
-
Install the following additional packages:
apt-get install realpath equivs groff fakeroot debhelper -
Checkout FRR under a unpriviledged user account
git clone https://github.com/frrouting/frr.git frr -
Run Bootstrap and make distribution tar.gz
cd frr ./bootstrap.sh ./configure --with-pkg-extra-version=-MyDebPkgVersion make distNote: configure parameters are not important for the Debian Package building - except the
with-pkg-extra-versionif you want to give the Debian Package a specific name to mark your own unoffical build -
Edit
debianpkg/rulesand set the configuration as neededLook for section
dh_auto_configureto modify the configure options as needed. Options might be different between mainrulesandbackports/XXXX/debian/rules. Please adjust as needed on all files -
Create backports debian sources
Move the
debianpkgtodebianand create the backports (Debian requires to not ship adebiandirectory inside the source directory to avoid build conflicts with the reserveddebiansubdirectory name during the build)mv debianpkg debian make -f debian/rules backportsThis will create a
frr_*.orig.tar.gzwith the source (same as dist tar), and multiplefrr_*.debian.tar.xzandfrr_*.dscfor the debian package source on each backport supported distribution -
Create a new directory to build the package and populate with package src
mkdir frrpkg cd frrpkg tar xf ~/frr/frr_*.orig.tar.gz cd frr* . /etc/os-release tar xf ~/frr/frr_*${ID}${VERSION_ID}*.debian.tar.xz -
Build Debian Package Dependencies and install them as needed
sudo mk-build-deps --install debian/control -
Build Debian Package
debuild -b -uc -us
DONE.
If all works correctly, then you should end up with the Debian packages under
frrpkg. If distributed, please make sure you distribute it together with
the sources (frr_*.orig.tar.gz, frr_*.debian.tar.xz and frr_*.dsc)
Enabling daemons after installation of the package:
-
Edit
/etc/frr/daemonsand enable required routing daemons (Zebra is probably needed for most deployments, so make sure to enable it.) -
Check your firewall / IPtables to make sure the routing protocols are allowed.
-
Enable FRR at startup
-
On
init.dbased systems (Ubuntu 12.04)sudo update-rc.d frr defaults -
On
systemdbased systems (Debian 8, Ubuntu 14.04, 16.04)sudo systemctl enable frr
-
-
Start/Restart the daemons (or reboot)
-
On
init.dbased systems (Ubuntu 12.04)sudo invoke-rc.d frr start -
on
systemdbased systems (Debian 8, Ubuntu 14.04, 16.04)sudo systemctl start frr
-
Configuration is stored in /etc/frr/*.conf files and daemon selection
is stored in /etc/frr/daemons.