Commit graph

320 commits

Author SHA1 Message Date
Karel Van Hecke 97cfc10a34 redhat: check if frr.conf already exists
Signed-off-by: Karel Van Hecke <25814162+karelvanhecke@users.noreply.github.com>
2021-11-17 11:06:23 +01:00
Jafar Al-Gharaibeh c5b26b20a7 debian, redhat: sync changelog from 8.1 release
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2021-11-08 11:43:33 -06:00
Anuradha Karuppiah b9c3be8be2 tools: add frr_babeltrace.py to /usr/lib/frr
Make the script available as a part of the FRR package install for
ease of use.

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
2021-10-15 10:37:02 -07:00
Martin Winter 328b7121ee
redhat: Install frr.conf only if no per daemon config exists
Install frr.conf template as a template file, but only install it
as a config file if no per daemon file exists. This will use the
integrated config with new setups, but keeps the per-daemon config
for existing users

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2021-08-11 12:03:29 +02:00
David Lamparter ab140d61cd build, doc: extricate --enable-systemd
Ouch, that is a *lot* of places to update...

Signed-off-by: David Lamparter <equinox@diac24.net>
2021-06-29 17:57:09 +02:00
Christian Hopps 3bb513c399 lib: adapt to version 2 of libyang
Compile with v2.0.0 tag of `libyang2` branch of:
https://github.com/CESNET/libyang

staticd init load time of 10k routes now 6s vs ly1 time of 150s

Signed-off-by: Christian Hopps <chopps@labn.net>
2021-05-13 16:24:48 -04:00
Quentin Young b832909b42 *: remove *.conf.sample files
Most of these are many, many years out of date. All of them vary
randomly in quality. They show up by default in packages where they
aren't really useful now that we use integrated config. Remove them.

The useful ones have been moved to the docs.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-04-09 13:14:30 -04:00
Quentin Young ed0c871ecf rpm: install frr.conf by default
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-04-09 13:14:30 -04:00
Javier Garcia 749714731e pceplib: Integrate pcelib into frr
Signed-off-by: Brady Johnson <brady@voltanet.io>
Co-authored-by: Javier Garcia <javier.garcia@voltanet.io>
Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
2021-03-05 12:12:47 +01:00
Sebastien Merle 4d7b695d3a pathd: New SR-TE policy management daemon
This new daemon manages Segment-Routing Traffic-Engineering
(SR-TE) Policies and installs them into zebra. It provides
the usual yang support and vtysh commands to define or change
SR-TE Policies.

In a nutshell SR-TE Policies provide the possibility to steer
traffic through a (possibly dynamic) list of Segment Routing
segments to the endpoint of the policy. This list of segments
is part of a Candidate Path which again belongs to the SR-TE
Policy. SR-TE Policies are uniquely identified by their color
and endpoint. The color can be used to e.g. match BGP
communities on incoming traffic.

There can be multiple Candidate Paths for a single
policy, the active Candidate Path is chosen according to
certain conditions of which the most important is its
preference. Candidate Paths can be explicit (fixed list of
segments) or dynamic (list of segment comes from e.g. PCEP, see
below).

Configuration example:

segment-routing
 traffic-eng
  segment-list SL
   index 10 mpls label 1111
   index 20 mpls label 2222
  !
  policy color 4 endpoint 10.10.10.4
   name POL4
   binding-sid 104
   candidate-path preference 100 name exp explicit segment-list SL
   candidate-path preference 200 name dyn dynamic
  !
 !
!

There is an important connection between dynamic Candidate
Paths and the overall topic of Path Computation. Later on for
pathd a dynamic module will be introduced that is capable
of communicating via the PCEP protocol with a PCE (Path
Computation Element) which again is capable of calculating
paths according to its local TED (Traffic Engineering Database).
This dynamic module will be able to inject the mentioned
dynamic Candidate Paths into pathd based on calculated paths
from a PCE.

https://tools.ietf.org/html/draft-ietf-spring-segment-routing-policy-06

Co-authored-by: Sebastien Merle <sebastien@netdef.org>
Co-authored-by: Renato Westphal <renato@opensourcerouting.org>
Co-authored-by: GalaxyGorilla <sascha@netdef.org>
Co-authored-by: Emanuele Di Pascale <emanuele@voltanet.io>
Signed-off-by: Sebastien Merle <sebastien@netdef.org>
2020-12-18 16:34:02 +01:00
Rafael Zalamena 319d840c02 redhat: include new BFD development header
Add to the package the BFD data plane protocol development header.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2020-11-24 07:55:07 -03:00
Martin Winter 3ad504d65a
redhat: Update changelog in frr.spec.in
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2020-10-31 03:57:46 +01:00
Martin Winter d0df840a28
redhat: Add snmp as a subpackage
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2020-10-31 03:57:46 +01:00
Martin Winter a0187fdcf1
redhat: Move RPKI to subpackage instead of a RPM build option
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2020-10-31 03:57:46 +01:00
Renato Westphal 240b7826f6 build, yang: bump libyang minimum required version to 1.0.184
It's time to say good bye to libyang 0.16.105. The recently
released libyang 1.0.184 includes numerous bug fixes and performance
improvements that we need.

Despite the major version bump from 0.x to 1.x, the libyang API is
the same except for a single backward-incompatible change in the
user types interface (which we're currently not using). Hence no
code changes were necessary to adapt FRR to libyang 1.x.

This commit also reintroduces some leafrefs that needed to be
removed from our YANG modules due to a bug that was present on
libyang 0.16.105.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-08-07 14:07:46 -03:00
Donald Sharp 1f4add997d redhat: Update logrotate to have knowledge of all daemons
Upon visual inspection the redhat logrotate file was incomplete
Make it complete.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-06-25 07:12:59 -04:00
Rafael Zalamena c871e6c9d1 build: fix data plane FPM netlink module
Changes:

*   Let the package builder scripts know that we have a new module that
    needs to be taken care of.
*   Include the frr atomic header to avoid undeclared atomic operations.
*   Disable build on *BSDs because the code is using some zebra netlink
    functions only available for Linux.
*   Move data plane FPM module outside old FPM automake definition.
*   Fix atomic usage for Ubuntu 14.04 (always use explicit).

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2020-04-14 13:45:39 -03:00
Martin Winter 83d4df8e97 redhat: Update frr.spec.in to move all systems to Python3 except CentOS 6
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2020-01-25 00:44:34 +01:00
Donatas Abraitis 40bd7a625a packaging: Redirect stderr to /dev/null in %post action (frr.spec.in)
Solves:
```
/usr/bin/sed: couldn't write 40 items to stdout: Broken pipe
/usr/bin/sed: couldn't write 40 items to stdout: Broken pipe
/usr/bin/sed: couldn't write 40 items to stdout: Broken pipe
/usr/bin/sed: couldn't write 40 items to stdout: Broken pipe
/usr/bin/sed: couldn't write 40 items to stdout: Broken pipe
/usr/bin/sed: couldn't write 40 items to stdout: Broken pipe
/usr/bin/sed: couldn't write 40 items to stdout: Broken pipe
```

This happens because `grep -q` returns immediately after first match
and closes the pipe while sed has more output to write.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-01-05 19:33:21 +02:00
Donatas Abraitis 470277454f packaging: Fix bogus date in frr.spec.in
```
RPM build errors:
    bogus date in %changelog: Sun May 28 2018 Rafael Zalamena <rzalamena@opensourcerouting.org> - 7.3_dev_MyRPMVersion
```

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-12-27 14:03:00 +02:00
Donatas Abraitis 3f5c15f66a packaging: Adopt frr.spec.in to CentOS 8
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-12-27 14:02:58 +02:00
David Lamparter d621815a0e zebra: create zebra_cumulus_mlag module
This is pretty much just to get rid of the HAVE_CUMULUS.  The
hook/module API is as "wtf" as it was before...

Signed-off-by: David Lamparter <equinox@diac24.net>
2019-12-11 11:40:47 +01:00
Sri Mohana Singamsetty 11c83aa48a tools: Modifications to copy support bundle files
This commit is to copy the support bundle scripts to appropriate directories during installation

Signed-off-by: Sri Mohana Singamsetty <msingamsetty@vmware.com>
2019-09-13 10:05:13 -07:00
David Lamparter ed18356f1f bgpd/bmp: BMP implementation
This implements BMP.  There's no fine-grained history here, the non-BMP
preparations are already split out from here so all that remains is BMP
proper.

Signed-off-by: David Lamparter <equinox@diac24.net>
2019-08-30 19:22:23 +02:00
Donald Sharp f79f7a7bb2 *: Fix spelling errors pointed out by debian packaging
Debian packaging when run finds a bunch of spelling errors:

I: frr: spelling-error-in-binary usr/bin/vtysh occurences occurrences
I: frr: spelling-error-in-binary usr/lib/frr/bfdd Amount of times Number of times
I: frr: spelling-error-in-binary usr/lib/frr/bgpd occurences occurrences
I: frr: spelling-error-in-binary usr/lib/frr/bgpd recieved received
I: frr: spelling-error-in-binary usr/lib/frr/isisd betweeen between
I: frr: spelling-error-in-binary usr/lib/frr/ospf6d Infomation Information
I: frr: spelling-error-in-binary usr/lib/frr/ospfd missmatch mismatch
I: frr: spelling-error-in-binary usr/lib/frr/pimd bootsrap bootstrap
I: frr: spelling-error-in-binary usr/lib/frr/pimd Unknwon Unknown
I: frr: spelling-error-in-binary usr/lib/frr/zebra Requsted Requested
I: frr: spelling-error-in-binary usr/lib/frr/zebra uknown unknown
I: frr: spelling-error-in-binary usr/lib/x86_64-linux-gnu/frr/libfrr.so.0.0.0 overriden overridden

This commit fixes all of them except the bgp `recieved` issue due to
it being part of json output.  That one will need to go through
a deprecation cycle.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-08-19 10:36:53 -04:00
David Lamparter 45da32d7a4 build: refactor & revamp python autoconf logic
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-04 16:21:20 +02:00
Quentin Young 97b5f22bcd vrrpd: update auto*, init scripts, etc
Add vrrpd to all the usual places daemons need to go

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-05-17 00:27:08 +00:00
Donald Sharp 08d4711684
Merge pull request #3989 from opensourcerouting/redhat-new-init
redhat: switch to new init script
2019-03-25 07:45:04 -04:00
Quentin Young 9251d1f596 doc: move rpm build doc to dev docs
------------{ <(O.O)> }------------

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-03-22 16:08:28 +00:00
David Lamparter 81b834a59d redhat: switch to new init script
Drop the special versions of frr.init/frr.service/daemons from redhat/
and use the generic versions instead.

Tested-by: Liam McBirnie <liam.mcbirnie@boeing.com>
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-03-21 13:37:04 +01:00
Martin Winter 831dd62a87 redhat: Require newer libyang (> 0.16.74) for embedded extensions
The support of embedded extensions doesn't allow to build the
RPM with and without (for older version). Require new version of
Lbyang with embedded extensions supported

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2019-02-20 05:09:03 -08:00
Martin Winter b7d673c043
Merge pull request #3719 from liam-mcb/master
Revert "redhat: don't Requires initscript on systemd based distros"
2019-02-12 08:54:53 +07:00
Quentin Young efbf903d61 tools: fix systemd dependency graph
Currently our systemd dependencies look something like this (example
from vanilla Debian 9):

$ systemctl list-dependencies frr
frr.service
● ├─system.slice
● └─sysinit.target
  ...

$ systemctl list-dependencies --reverse frr
frr.service
● └─network-online.target
●   └─apt-daily.service

Note that sysinit.target does not depend on any network* service or
target.

In other words, unless there is a service that requires
network-online.service, even if FRR is enabled it will not be started.
Therefore network-online.target is the wrong unit to have in WantedBy=,
as it is not always started.

This patch updates our service file so that it is properly started by
the system when enabled, delayed until networking is up, and if possible
delayed until after NetworkManager, systemd-networkd or any other
networking configuration manager has finished performing its tasks -
i.e. after network-online.target.

After these changes our new dependency graph looks like this:

$ systemctl list-dependencies frr
frr.service
● ├─system.slice
● │ └─networking.service
● ├─network.target
● └─sysinit.target
  ...

$ systemctl list-dependencies --reverse frr
frr.service
● └─multi-user.target
●   └─graphical.target

This way, FRR will be started by multi-user.target (just like most
applications), but delayed until after networking has been configured.

In the same stroke, this should also fix issues on systems that do not
provide "networking.service" (such as CentOS 7).

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-02-06 19:47:43 +00:00
Liam McBirnie b4e993b2ba Revert "redhat: don't Requires initscript on systemd based distros"
This reverts commit ec59a1559c.

Frr.init (called by frr.service) requires functions provided by
/etc/init.d/functions (part of the initscripts package).

Signed-off-by: Liam McBirnie <liam.mcbirnie@boeing.com>
2019-02-01 19:55:27 +10:00
David Lamparter ea4d91bfba debian/tools: new init script
This separates the init script used for the system (and called in the
systemd unit file) from the script that watchfrr uses to control
daemons.  Mixing these two caused the entire thing to become a rather
huge spaghetti mess.

Note that there is a behaviour change in that the new script always
starts zebra regardless of zebra_enable.

Side changes:
- Ubuntu 12.04 removed from backports since it doesn't work anyway
- zebra is always started regardless of zebra_enable.  To disable FRR,
  the entire init script should be disabled through policy.
- no-watchfrr operation is no longer supported by the scripts in the
  Debian packages.  (This is intentional.)

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-12-06 23:05:48 +01:00
David Lamparter 10ea85ee45 tools/frr: get rid of the bash array and "bB"
With a little shell-fu, this can actually be escaped properly.

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-12-06 17:29:27 +01:00
Donald Sharp 0100dfb9c1
Merge pull request #2705 from opensourcerouting/northbound-yang-v2
Northbound API
2018-10-31 18:50:45 -04:00
David Lamparter 7ba0150738 redhat: remove @CONFDATE@ from spec
CONFDATE should not be used like this.  Also, the extraversion is now
burned into tarballs anyway so this is no longer neccessary.

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-10-28 19:49:32 +01:00
David Lamparter 58596d3444 build: make rfptest and ospfclient "noinst"
Both of these are testing/demo-style tools that don't make sense as part
of a normal installation.  So don't install them.

NB: this is only the executables, libospfclient and the RFP code are not
affected.

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-10-28 19:48:55 +01:00
Martin Winter 7cad61cb02 redhat: Added libyang dependencies to package
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-10-27 16:16:12 -02:00
jpmondet 1c64265f86
frr-reload.py: Add python2 & python3 compatibility.
Signed-off-by: jpmondet <jp@mondet.org>
2018-09-26 21:45:33 +02:00
Quentin Young f20aafeec0 frr: improve README
Friendly READMEs are all the rage!

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-09-10 15:30:22 +00:00
Quentin Young d88f11441a frr: remove stale files, allow non-GNU Automake
* Add 'foreign' option to allow Automake to ignore missing GNU standard
  files
* Remove AUTHORS
* Remove NEWS
* Remove ChangeLog

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-09-10 15:30:22 +00:00
David Lamparter a214288c50 build: move SPHINXBUILD= to configure in rpm build
Need to pass this on configure now to work properly.

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-09 20:01:08 +02:00
Donald Sharp 55e6c1329f
Merge pull request #2862 from opensourcerouting/non-recursive
final non-recursive make
2018-09-09 13:51:58 -04:00
Wilhelm Wijkander a188423597 Update RPM building instructions 2018-09-09 00:27:57 +02:00
David Lamparter e7c25325cc *: cleanup .gitignore files
Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-08 21:30:42 +02:00
Martin Winter 13d9aad856 redhat: Add fabricd to RPM package
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-09-05 11:38:12 +02:00
Rafael Zalamena 7134904b1f bfdd: wire to the build process
Add BFD daemon to the build process and packaging instructions.

Currently the bfdd daemon does nothing, this is just to document how the
daemon insertion step occured.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-08-08 18:24:58 -03:00
Donald Sharp 7ac1de8ee0 debianpkg, redhat, tools: Fixup startup/build for new daemon
Add code to allow FRR to properly build and handle the staticd
for some of the more common packaging.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-07-29 12:37:25 -04:00
pcarana 0817301aac
RedHat spec: Add the rpki module when needed
Additional help complementing #2669, this adds the rpki module to the bgpd daemon at RPM creation.
2018-07-17 12:49:14 -05:00
Ruben Kerkhof 1a629db7a1 redhat: cleanup %pre snippet a bit
Based on https://fedoraproject.org/wiki/Packaging:UsersAndGroups

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof 0e3daa4df6 redhat: add option to enable Cumulus extensions
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof b8b18c064b redhat: quote %name macro
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof 4f20eab14c redhat: replace hardcoded path with variable
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof 4aa7422e82 redhat: remove some superflous %attr calls
These are the default

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof bc1dc4fe04 redhat: remove macro from changelog
rpmlint warns about this:
macro-in-%changelog %{version}

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof 95c16f4c20 redhat: add some newlines between sections
Makes the spec slightly easier to read

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof 1eca28ffdc redhat: more indentation
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof ff00e18d2d redhat: sort options
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof 1dc5a0dc3c redhat: quote a few macros
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof d1ef2aafc8 redhat: unversioned libs belong in -devel package
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:41 +02:00
Ruben Kerkhof 5c3ad1d46a redhat: remove support for static builds
This just doesn't work as RHEL doesn't ship static libs for the
dependencies.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:05:37 +02:00
Ruben Kerkhof 7bd661a2b5 redhat: remove superflous defattr lines
They are the default since RHEL5:
https://pagure.io/packaging-committee/issue/77

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 35a1688ab9 redhat: remove obsolete %clean section
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof e0c875f1b2 redhat: remove obsolete BuildRoot tag
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 5ebf96721a redhat: use one BuildRequires per line
Makes for easier diffing

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 7eec5b4c38 redhat: remove BuildRequires for patch
Nothing seems to need it

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof ec59a1559c redhat: don't Requires initscript on systemd based distros
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 772d418a8b redhat: remove superfluous Requires for json-c
json-c-devel is already a BuildRequires, and rpm will add the Requires
itself.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 5f371d0bdf redhat: indent some stuff in spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 98a2aecb7b redhat: replace hardcoded directory
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 515a8ee8f5 redhat: use 'service' command to restart frr
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 9b9796466b redhat: replace /etc/ with _sysconfdir where we can
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 0bb6861140 redhat: stop overriding _localstatedir
It is defined by rpm and points at /var

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof e9956ac7e0 redhat: remove some defaults from configure options
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 931e1d6824 redhat: stop overriding _sysconfdir
This macro is defined by rpm and points at /etc.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 9f892cc56c redhat: remove enable-poll option from specfile
It was removed from configure.ac in 16764760

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-21 17:03:29 +02:00
Ruben Kerkhof 0cff191d5c redhat: fix else cases in spec file
As pointed out during review, disable the options when the macros are
false.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof 2d2ab69937 redhat: spec file: specify file only once
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof 07a138ecab redhat: spec file: no need for custom attr for service file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof 95624f7b34 redhat: add missing dependencies on chkconfig in spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof c88a52f4df redhat: remove a few superfluous Requires from spec file
rpm adds these automatically

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof ccb9b8f6c0 redhat: remove a few superfluous BuildRequires from spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof 501c136231 redhat: depend on info package instead of binary in specfile
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof fadbc6e7fe redhat: install-info is not called from %pre in spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof 54c059f1cb redhat: remove wrong comment from spec file
systemd support needs watchfrr

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof a999f98cc5 redhat: spec file: all supported Fedora versions use systemd
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof 7ca1f62ca9 redhat: use default permissions for logrotate file in spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof 6ad17a64c1 redhat: spec file: we ship only one logrotate file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof c9cad8766e redhat: be consistent in adding ./configure options in spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof c410a86130 redhat: use Github for SOURCE0 in spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof e1ff824635 redhat: Use https for URL in spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof 150e7c7eb3 redhat: remove trailing whitespace from spec file
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:52 +02:00
Ruben Kerkhof fe99b0153a redhat: fix tabs vs spaces in spec file
rpmlint reports:
redhat/frr.spec:282: W: mixed-use-of-spaces-and-tabs (spaces: line 13, tab: line 282)

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2018-06-19 09:57:45 +02:00
Donald Sharp 5b7077e892 redhat: Fix old systems on upgrade path
Fix old systems in upgrade path to enable watchfrr when upgrading.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-30 07:53:28 -04:00
Donald Sharp b13124f0f7 redhat: Make watchfrr the default
With systemd being the default on more systems now, lets
configure watchfrr to start else systemd systems on
redhat will not stay up for more than 1 minute.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-30 07:52:23 -04:00
Martin Winter b4c554e24f redhat: Fix RPKI RPM build option
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-05-20 07:13:02 -07:00
Quentin Young 717b48667f doc: add "Getting Started" section
While we have docs on various pieces of the build system we don't have
any docs on how to actually get FRR running once it's installed, nor do
we have comprehensive documentation on the basic procedure for building
from source. This patch remedies both of those.

Also updated the services list in the docs and removed the SERVICES file
from the project root.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-05-16 20:24:15 +00:00
Quentin Young aa64f37df7 *: clean up various top level stuff
* Updated README to point to new bug report location
* Updated README to point to community doc location
* Remove COMMUNITY.md
* Remove references to no longer extant docs in packaging files

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-05-08 16:05:11 -04:00