1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-20 07:38:40 +02:00
Commit Graph

55 Commits

Author SHA1 Message Date
Florian Eckert
7b552f298e keepalived: fix building with disable libipvs dynamic
Backport of upstream staging commit to fix compilation issue with x86_64 as
ppc64le build hosts.
42c020aab6

This fixes #10642.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-03-05 11:53:40 +01:00
Florian Eckert
e48a43f924 keepalived: update version to 2.0.20
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2020-02-27 12:26:59 +01:00
Florian Eckert
bc98aaa3f7 keepalived: set default run directory for pid file on build
This fixes a runtime startup error on system which does not have a
toplevel runtime directory for the pid file. On openwrt the pid is
located at /var/run and not on /run. To fix that add a configure option to
move the pid location to /var/run.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-11-04 13:44:02 +01:00
Florian Eckert
9d0439cc12 keepalived: fix runtime error if kernel option CONFIG_PROC_EVENTS is not enabled
This fixes a runtime startup error for system, which does not have enabled the
kernel config option CONFIG_PROC_EVENTS.

This workaround was published on github under the following URL.
https://github.com/acassen/keepalived/issues/1119

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-11-04 13:43:32 +01:00
Florian Eckert
e2689219be keepalived: update version to 2.0.19
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-10-21 07:43:22 +02:00
Sven Eckelmann
bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Florian Eckert
333324f973 keepalived: update version to 2.0.18
Update version to 2.0.18

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-08-06 14:30:06 +02:00
Florian Eckert
7a207f87af keepalived: fix shellcheck warnings
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-08-06 14:30:06 +02:00
Florian Eckert
bd2040cfdf keepalived: update to version 2.0.16
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-05-08 11:11:26 +02:00
Florian Eckert
8a999846bb keepalived: update to version 2.0.15
Update keepalived to version 2.0.15

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-04-10 09:01:05 +02:00
Florian Eckert
344114ae81 keepalived: add new option vrrp_startup_delay
Redmine-patch-id: 3441
Add new global option vrrp_startup_delay to the uci.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-04-03 11:18:23 +02:00
Florian Eckert
37e7dbc3fc keepalived: update to version 2.0.14
Redmine-patch-id: 3383
Update keepalived to version 2.0.14.
Add Config.in file.

Authored-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-04-03 11:18:15 +02:00
Jan Pavlinec
8b6020db7f
keepalived: update to version 2.0.10
Fixes CVE-2018-19046

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-01-19 23:43:17 +01:00
Florian Eckert
810f85c1a9 keepalived: add cpe id
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-01-18 09:55:05 +08:00
Eneas U de Queiroz
d33a4c4924 keepalived: build without libipset
keepalived 2.0.7 is not compatible with libipset 7.x.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-12-28 11:02:00 +08:00
Florian Eckert
b443dfe00b keepalived: add ipvs uci support
Add uci ipvs support to keepalived.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-11-12 15:20:20 +01:00
Stijn Tintel
ffa1012131 keepalived: disable libnl
When libnl is enabled and libnl-genl is disabled, libnl-genl-3.so.200 is
installed by InstallDev, and keepalived picks it up anyway.
This causes build to fail with the following error:

Package keepalived is missing dependencies for the following libraries:
libnl-genl-3.so.200

Instead of having a conditional dependency it is better to have a
consistent build. Disable libnl to enforce this.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2018-10-07 14:40:52 +03:00
Florian Eckert
d7e5b3a0d0 net/keepalived: enable lvs support
Enable IPVS support.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-13 15:33:25 +02:00
Florian Eckert
4868b6f7a8 net/keepalived: update to version 2.0.7
Update keepalived to version 2.0.7.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-09-13 08:22:55 +02:00
Florian Eckert
bafec2901b net/keepalived: update to 1.4.4
Update to new upstream stable version 1.4.4

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-09 10:01:13 +02:00
Florian Eckert
3bf2768d2e net/keepalived: update to 1.4.3
bump PKG_VERSION to 1.4.3

To Fix compilation issue cherry-pick two commits from keepalived master tree:
afc450807c
58ae2ba75f

This was discussed on:
https://github.com/acassen/keepalived/issues/835

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-05-08 14:51:32 +02:00
Florian Eckert
0cf53a97aa net/keepalived: bump PKG_RELEASE add co maintainer
- Bump PKG_RELEASE number to 2
- Add me as co maintainer

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-22 15:32:56 +01:00
Florian Eckert
d5793b4917 net/keepalived: remove unsupported notify form print_notify statement
Remove unsupported "notify" script during uci config generation.
This change will remove keepalived warnings on startup.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-22 15:32:56 +01:00
Florian Eckert
0e88bff102 net/keepalived: add procd_add_reload_trigger
Do service reload handling by procd.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-22 15:32:56 +01:00
Florian Eckert
455d9a5b48 net/keepalived: change use_vmac to boolean
Append use_vmac with no_val_ so that the uci generation will treat this
as an boolean option. If the option is set then a interface with
vrrp.{virtual_router_id} is added to the system.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-22 15:32:56 +01:00
Florian Eckert
e518c65b58 net/keepalived: update keepalived.conf generation header
Add date info to keepalived config generated.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-22 15:32:56 +01:00
Florian Eckert
062c35f560 net/keepalived: on virtual IP allow empty device option
If ip is referenced in the instance section it is not necessary to add a
device option on every "ip_address". In most sitution it es enough to
add only an ip. Allow empty device option will solve this issue.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-22 15:32:56 +01:00
Florian Eckert
a7f02bf1c8 net/keepalived: fix kmod-macvlan dependency
If the option 'use_vmac' is selected in a keepalived config and
kmod-macvlan is not installed then keepalived raise an error.

  Netlink: error: Not supported, type=(16), seq=1510647577, pid=0
  vmac: Error creating VMAC interface vrrp.42 for vrrp_instance xxx!!!

Add 'kmod-macvlan' to the package dependency list fixes this error.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2018-01-22 15:32:56 +01:00
Florian Eckert
738da3146c net/keepalived: add keepalived.user script handling
Add keepalived.user script handling which are also saved during sysupgrade.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-11-08 11:36:58 +01:00
Florian Eckert
ff33ff463b net/keepalived: add notify hotplug-call script handling
During keepalived config generation for the vrrp_instance and vrrp_sync_group
the notify_* sections are automatic added to the runtime keepalived.conf.
This could be used for service which want to react on keepalived notifications.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-11-08 11:36:58 +01:00
Florian Eckert
4bd238e852 net/keepalived: comment alt_config_file
Comment alt_config_file option in default config

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-11-07 10:54:27 +01:00
Florian Eckert
d4e1c96cc4 net/keepalived: move track_interface generation into own section
In a vrrp_instance the track_interface could not be referenced similar
to a track_script. The uci track_interface section must be always set
into every vrrp_instance.

During config generation use the already prepared function
"print_track_elem_indent" to write the track_interface section into every
vrrp_instance which references this.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-10-30 15:40:25 +01:00
Florian Eckert
b66372fb43 net/keepalived: add quoting for print_elems_indent function
If you add a notify_* script which is not only a path to a script or
to a bin file, it is necessary to quote to whole string. If you do not
quote this the config will not get accepted by keepalived and so will
not start. This will fix this issue.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-10-30 15:40:25 +01:00
Florian Eckert
e58a068447 net/keepalived: preserve keepalived uci file over sysupgrade
Preserve keepalived uci file over sysupgrade.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-10-30 15:40:25 +01:00
Florian Eckert
2360f361f5 net/keepalived: update CONFIGURE_ARGS
Remove unused and unrecognized (outdated) configure options in Makefile.
--enable-vrrp
--enable-fwmark
--disable-debug
--disable-profile

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-10-30 15:40:25 +01:00
Florian Eckert
b5104b0f62 net/keepalived: update version to 1.3.9
update keepalived to version 1.3.9

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-10-30 15:16:26 +01:00
Florian Eckert
ebc64a2748 net/keepalived: remove patches for version 1.2.19
This patches are already upstream. Not needed anymore.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-10-30 15:15:54 +01:00
Etienne Champetier
4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Alexandru Ardelean
1faf879b4e keepalived: switch maintainer to Ben Kelly (@scrpi)
Talked it over with Ben (@scrpi).
He said he'd be fine with taking over maintainership of this.

@scrpi: please confirm this on PR.

Signed-off-by: Ben Kelly <ben@benjii.net>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-09 12:30:28 +02:00
Stijn Tintel
54d955f91a Merge pull request #3759 from commodo/keepalived-default-old-conf
keepalived: use old keepalived.conf by default
2017-01-04 19:48:21 +01:00
Alexandru Ardelean
f59f751e9a keepalived: use old keepalived.conf by default
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-04 20:46:53 +02:00
Stijn Tintel
28275a74c2 keepalived: fix recvmsg/sendmsg on mips64 again
Commit e73964fa8f incorrectly dropped the
patch 101-update-struct-msghdr.patch. Add it again, and while add it
also add the follow-up patch that was added upstream.

Fixes #3757.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2017-01-04 19:02:03 +01:00
Alexandru Ardelean
e73964fa8f keepalived: upgrade to version 1.2.19
Dropped patches, unrequired.
There is a newer version released, but I cannot vouch for it yet.
We've been using this one for about a year now.

Since, I only recently became maintainer of `keepalived`, I will
push this as the current stable one, and start using a newer
version internally, before releasing it to the public.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-12-31 16:26:51 +02:00
Alexandru Ardelean
70d7f3b367 keepalived: add myself as maintainer
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-12-31 16:07:36 +02:00
Ben Kelly
8483011a51 keepalived: suppress reloads when config md5 has no change
Signed-off-by: Ben Kelly <ben@benjii.net>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-12-31 12:39:05 +02:00
Ben Kelly
0b16c2ada2 keepalived: Fix ordering of config sections
keepalived seems to be rather particular about which config parameters
come before others.

When defining a virtual IP address, keepalived will check to see if the
vrrp instance is associated with a valid interface. Previously, the
interface parameter was declared after the virtual IP address which
caused an error when keepalived tried to run this check. Keepalived
tries to fall back to checking if 'eth0' exists.

The fix is to re-order the config stanzas so that the interface
parameter comes before the virtual IP address definitions.

Signed-off-by: Ben Kelly <ben@benjii.net>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-12-31 12:37:14 +02:00
Ben Kelly
37d9426ac5 keepalived: Fix track_* option in vrrp_instance defn
Also fix ordering of config stanzas

We were parsing the track_script and track_interface definitions to
include the weight param when configuring a vrrp_instance. This is not
correct, as the weight param inside a vrrp instance is used to augment
the one defined in the script.

We were also not taking into account vrrp_script stanzas

This commit skips the parsing and simply lists the name of the
track/vrrp object

Signed-off-by: Ben Kelly <ben@benjii.net>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-12-31 12:31:40 +02:00
Alexandru Ardelean
a883235e13 keepalived: add uci config support
Adding @scrpi (Ben Kelly).
Initial UCI config support was written by me (@commodo)

Updates & fixes added by Ben.

Signed-off-by: Ben Kelly <ben@benjii.net>
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-12-31 12:15:54 +02:00
Alexandru Ardelean
e5c3d4433f keepalived: convert init script to procd format
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-12-31 12:15:22 +02:00
Alexandru Ardelean
e40ba7cc8e keepalived: make the use of libnl optional
keepalived seems to work fine without it.
There is fall-back code that kicks in when it's not present.

So, we will build against (or pull) the libnl package only
if there is another package that pulls it.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-12-31 12:07:56 +02:00