]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - keepalived/keepalived.nm
ppp: Re-add ifname patch
[people/ms/ipfire-3.x.git] / keepalived / keepalived.nm
CommitLineData
3e7718a2
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = keepalived
78522c10
MT
7version = 1.2.7
8release = 1
3e7718a2
MT
9
10groups = Applications/System
11url = http://www.keepalived.org/
12license = GPLv2+
13summary = High Availability monitor built upon LVS, VRRP and service pollers.
14
15description
16 The main goal of the keepalived project is to add a strong & robust keepalive
17 facility to the Linux Virtual Server project. This project is written in C with
18 multilayer TCP/IP stack checks. Keepalived implements a framework based on
19 three family checks : Layer3, Layer4 & Layer5/7. This framework gives the
20 daemon the ability to check the state of an LVS server pool. When one of the
21 servers of the LVS server pool is down, keepalived informs the linux kernel via
22 a setsockopt call to remove this server entry from the LVS topology. In
23 addition keepalived implements an independent VRRPv2 stack to handle director
24 failover. So in short keepalived is a userspace daemon for LVS cluster nodes
25 healthchecks and LVS directors failover.
26end
27
28source_dl = http://www.keepalived.org/software/
29
30build
31 requires
78522c10
MT
32 kernel-devel
33 net-snmp-devel >= 5.7.2-2
3e7718a2
MT
34 libnl-devel
35 openssl-devel
36 popt-devel
37 end
38
39 configure_options += \
78522c10
MT
40 --enable-snmp \
41 --enable-vrrp
3e7718a2
MT
42
43 make_targets += STRIP=/bin/true
44
45 test
46 # A build could silently have LVS support disabled if the kernel includes can't
47 # be properly found, we need to avoid that.
48 if ! grep -q "IPVS_SUPPORT='_WITH_LVS_'" config.log; then
49 echo "ERROR: We do not want keeepalived lacking LVS support."
50 exit 1
51 fi
52 end
53
54 install_cmds
55 rm -rvf %{BUILDROOT}/etc/rc.d \
56 %{BUILDROOT}/etc/keepalived/samples
57 end
58end
59
60packages
61 package %{name}
62 postin
63 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
64 end
65
66 postun
67 /bin/systemctl --no-reload disabled keepalived.service >/dev/null 2>&1 || :
68 /bin/systemctl stop keepalived.service >/dev/null 2>&1 || :
69 end
70
71 postup
72 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
73 /bin/systemctl try-restart keepalived.service >/dev/null 2>&1 || :
74 end
75 end
1f9bc2f0
MT
76
77 package %{name}-debuginfo
78 template DEBUGINFO
79 end
3e7718a2 80end