]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - keepalived/keepalived.nm
Add a -debuginfo for every package that is not noarch.
[people/amarx/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.2
8 release = 2
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 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
57 end
58
59 packages
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
75
76 package %{name}-debuginfo
77 template DEBUGINFO
78 end
79 end