]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - keepalived/keepalived.nm
ipfire-logos: Add deps/scriptlets for plymouth theme.
[people/amarx/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
7version = 1.2.2
2a9a44bd 8release = 2
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
32 libnl-devel
33 openssl-devel
34 popt-devel
35 end
36
37 configure_options += \
38 --sysconfdir=/etc
39
40# --with-kernel-dir=$(ls -1d --sort t /lib/modules/*/build | head 1)
41
42 make_targets += STRIP=/bin/true
43
44 test
45 # A build could silently have LVS support disabled if the kernel includes can't
46 # be properly found, we need to avoid that.
47 if ! grep -q "IPVS_SUPPORT='_WITH_LVS_'" config.log; then
48 echo "ERROR: We do not want keeepalived lacking LVS support."
49 exit 1
50 fi
51 end
52
53 install_cmds
54 rm -rvf %{BUILDROOT}/etc/rc.d \
55 %{BUILDROOT}/etc/keepalived/samples
56 end
57end
58
59packages
60 package %{name}
61 postin
62 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
63 end
64
65 postun
66 /bin/systemctl --no-reload disabled keepalived.service >/dev/null 2>&1 || :
67 /bin/systemctl stop keepalived.service >/dev/null 2>&1 || :
68 end
69
70 postup
71 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
72 /bin/systemctl try-restart keepalived.service >/dev/null 2>&1 || :
73 end
74 end
1f9bc2f0
MT
75
76 package %{name}-debuginfo
77 template DEBUGINFO
78 end
3e7718a2 79end