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