]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - keepalived/keepalived.nm
compat-gnutls: Only ship libgnutls.
[people/arne_f/ipfire-3.x.git] / keepalived / keepalived.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = keepalived
7 version = 1.2.7
8 release = 1
9
10 groups = Applications/System
11 url = http://www.keepalived.org/
12 license = GPLv2+
13 summary = High Availability monitor built upon LVS, VRRP and service pollers.
14
15 description
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.
26 end
27
28 source_dl = http://www.keepalived.org/software/
29
30 build
31 requires
32 kernel-devel
33 net-snmp-devel >= 5.7.2-2
34 libnl-devel
35 openssl-devel
36 popt-devel
37 end
38
39 configure_options += \
40 --enable-snmp \
41 --enable-vrrp
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
58 end
59
60 packages
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
76
77 package %{name}-debuginfo
78 template DEBUGINFO
79 end
80 end