Package keepalived: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | %define _unpackaged_files_terminate_build 1 %define _localstatedir %_var %def_enable lvs %def_enable vrrp %def_enable bfd %def_enable fwmark %def_enable snmp %def_disable dbus %def_enable regex %def_enable json %def_enable routes %def_enable libiptc %def_enable libipset %def_enable nftables %def_enable libnl Name: keepalived Version: 2.2.4 Release: alt1 Summary: HA monitor built upon LVS, VRRP and services poller License: GPLv2 Group: Networking/Other Url: http://www.keepalived.org Source0: %name-%version.tar Source1: %name.init Patch0: 0002-update-systemd-unit-file.patch Patch2: keepalived-e2k-check-nft-set-concat.patch BuildRequires: libpopt-devel libssl-devel %{?_enable_libiptc:BuildRequires: pkgconfig(libiptc)} %{?_enable_libipset:BuildRequires: pkgconfig(libipset)} %{?_enable_nftables:BuildRequires: pkgconfig(libnftnl) pkgconfig(libmnl)} %{?_enable_libnl:BuildRequires: pkgconfig(libnl-genl-3.0) pkgconfig(libnl-route-3.0)} %{?_enable_snmp:BuildRequires: libnet-snmp-devel} %{?_enable_regex:BuildRequires: pkgconfig(libpcre2-8)} BuildRequires: systemd-devel %description The main goal of the keepalived project is to add a strong & robust keepalive facility to the Linux Virtual Server project. This project is written in C with multilayer TCP/IP stack checks. Keepalived implements a framework based on three family checks : Layer3, Layer4 & Layer5/7. This framework gives the daemon the ability of checking a LVS server pool states. When one of the server of the LVS server pool is down, keepalived informs the linux kernel via a setsockopt call to remove this server entrie from the LVS topology. In addition keepalived implements an independent VRRPv2 stack to handle director failover. So in short keepalived is a userspace daemon for LVS cluster nodes healthchecks and LVS directors failover. %prep %setup %patch0 -p1 %ifarch %e2k %patch2 -p1 # lcc 1.23's edg frontend can only do numbers here (#4061) sed -i 's,"O0",0,' lib/utils.c %endif %build %autoreconf %configure \ --with-kernel-dir=/usr/include/linux-default \ --enable-strict-config-checks \ --enable-dynamic-linking \ %{subst_enable lvs} \ %{subst_enable vrrp} \ %{subst_enable bfd} \ %{subst_enable fwmark} \ %{?_enable_snmp:--enable-snmp --enable-snmp-rfc} \ %{subst_enable dbus} \ %{subst_enable regex} \ %{subst_enable json} \ %{subst_enable routes} \ %{?_enable_libiptc:--enable-libiptc-dynamic} \ %{subst_enable libipset} \ %{subst_enable nftables} \ %{?_enable_libnl:--enable-libnl-dynamic} \ --with-init=systemd \ --with-systemdsystemunitdir=%_unitdir %make_build STRIP=/bin/true %install %makeinstall_std install -pD -m755 %SOURCE1 %buildroot%_initdir/%name rm -rf %buildroot%_sysconfdir/%name/samples rm -rf %buildroot%_defaultdocdir/%name mkdir -p %buildroot%_datadir/mibs/%name for f in %buildroot%_datadir/snmp/mibs/*.txt; do bn=$(basename "$f" .txt) mv "$f" "%buildroot%_datadir/mibs/%name/$bn" done %preun %preun_service keepalived %post %post_service keepalived %files %_bindir/* %_sbindir/* %_man1dir/genhash.* %_man5dir/keepalived.conf.* %_man8dir/keepalived.* %_initdir/%name %_unitdir/%name.service %dir %_sysconfdir/%name %config(noreplace) %_sysconfdir/%name/%name.conf %config(noreplace) %_sysconfdir/sysconfig/%name %_datadir/mibs/%name %doc AUTHOR ChangeLog README %doc doc/keepalived.conf.SYNOPSIS %doc doc/*-MIB* %doc doc/*.txt %doc doc/samples %changelog * Thu Nov 25 2021 Alexey Shabalin <shaba@altlinux.org> 2.2.4-alt1 - 2.2.4 - cleanup spec * Fri Aug 06 2021 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 2.2.2-alt3 - e2k: added patch to check if NFT_SET_CONCAT is declared * Fri Jul 02 2021 Alexey Shabalin <shaba@altlinux.org> 2.2.2-alt2 - Fixed build (ALT#40355). * Mon Mar 15 2021 Anton Farygin <rider@altlinux.org> 2.2.2-alt1 - 2.2.2 * Fri Jan 22 2021 Anton Farygin <rider@altlinux.org> 2.2.1-alt1 - 2.2.1 * Tue Jul 14 2020 Anton Farygin <rider@altlinux.ru> 2.1.5-alt1 - 2.1.5 * Sat Jan 25 2020 Alexey Shabalin <shaba@altlinux.org> 2.0.20-alt1 - 2.0.20 * Mon Jan 20 2020 Alexey Shabalin <shaba@altlinux.org> 2.0.19-alt2 - update build options; enable support: + bfd + fwmark + json + libipset + nftables * Wed Oct 23 2019 Anton Farygin <rider@altlinux.ru> 2.0.19-alt1 - 2.0.19 * Thu Aug 08 2019 Anton Farygin <rider@altlinux.ru> 2.0.18-alt1 - 2.0.18 * Mon Jul 01 2019 Anton Farygin <rider@altlinux.ru> 2.0.17-alt1 - 2.0.17 * Sat May 11 2019 Michael Shigorin <mike@altlinux.org> 2.0.15-alt2 - fixed build with lcc on e2k - minor spec cleanup * Sun Apr 07 2019 Anton Farygin <rider@altlinux.ru> 2.0.15-alt1 - 2.0.15 * Tue Mar 26 2019 Anton Farygin <rider@altlinux.ru> 2.0.14-alt1 - 2.0.14 * Thu Feb 21 2019 Anton Farygin <rider@altlinux.ru> 2.0.13-alt1 - 2.0.13 * Mon Jan 28 2019 Anton Farygin <rider@altlinux.ru> 2.0.12-alt1 - 2.0.12 * Sat Jan 19 2019 Anton Farygin <rider@altlinux.ru> 2.0.11-alt1 - 2.0.11 - enabled strict config check (closes: #33349) * Thu Nov 15 2018 Anton Farygin <rider@altlinux.ru> 2.0.10-alt1 - 2.0.10 * Mon Nov 12 2018 Anton Farygin <rider@altlinux.ru> 2.0.9-alt1 - 2.0.9 * Tue Oct 23 2018 Anton Farygin <rider@altlinux.ru> 2.0.8-alt2 - 2.0.8 * Mon Sep 03 2018 Anton Farygin <rider@altlinux.ru> 2.0.7-alt1 - 2.0.7 - enabled HTTP_GET regex support (by Alexey Shabalin) * Thu May 31 2018 Anton Farygin <rider@altlinux.ru> 1.4.5-alt1 - 1.4.5 * Thu May 03 2018 Anton Farygin <rider@altlinux.ru> 1.4.3-alt1 - 1.4.3 * Sat Mar 31 2018 Anton Farygin <rider@altlinux.ru> 1.4.2-alt1 - new version * Tue Jan 23 2018 Anton Farygin <rider@altlinux.ru> 1.4.0-alt1 - new version * Tue Nov 07 2017 Anton Farygin <rider@altlinux.ru> 1.3.9-alt2 - added more correct git_commit.h initialization * Tue Oct 31 2017 Anton Farygin <rider@altlinux.ru> 1.3.9-alt1 - new version * Mon Sep 18 2017 Anton Farygin <rider@altlinux.ru> 1.3.6-alt1 - new version * Fri Mar 24 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.5-alt2 - fix pid file path * Wed Mar 22 2017 Alexey Shabalin <shaba@altlinux.ru> 1.3.5-alt1 - 1.3.5 * Wed Jan 11 2017 Anton Farygin <rider@altlinux.ru> 1.3.2-alt1 - new version * Mon Nov 07 2016 Anton Farygin <rider@altlinux.ru> 1.2.24-alt3 - build with actual version of libipset-devel * Fri Sep 30 2016 Alexey Shabalin <shaba@altlinux.ru> 1.2.24-alt2 - fix dlopen libipset - update systemd unit file * Thu Sep 29 2016 Alexey Shabalin <shaba@altlinux.ru> 1.2.24-alt1 - 1.2.24 - update sysv init script: + add LSB header + add support options from /etc/sysconfig/keepalived - update BR: and configure options - add install systemd unit file - cleanup spec * Mon Jul 18 2016 Anton Farygin <rider@altlinux.ru> 1.2.23-alt1 - new version * Tue Jun 21 2016 Anton Farygin <rider@altlinux.ru> 1.2.22-alt1 - new version * Wed Apr 08 2015 Anton Farygin <rider@altlinux.ru> 1.2.16-alt1 - new version * Wed Jan 14 2015 Anton Farygin <rider@altlinux.ru> 1.2.15-alt1 - new version * Tue May 20 2014 Anton Farygin <rider@altlinux.ru> 1.2.13-alt1 - new version * Thu Feb 20 2014 Anton Farygin <rider@altlinux.ru> 1.2.12-alt1 - new version * Fri Nov 15 2013 Anton Farygin <rider@altlinux.ru> 1.2.9-alt1 - new version * Fri Oct 11 2013 Anton Farygin <rider@altlinux.ru> 1.2.8-alt1 - new version * Wed Aug 29 2012 Anton Farygin <rider@altlinux.ru> 1.2.7-alt1 - new version * Tue Aug 28 2012 Anton Farygin <rider@altlinux.ru> 1.2.6-alt1 - new version * Tue Aug 14 2012 Anton Farygin <rider@altlinux.ru> 1.2.5-alt1 - new version * Sat Oct 01 2011 Anton Farygin <rider@altlinux.ru> 1.2.2-alt1 - new version * Wed Dec 22 2010 Anton Farygin <rider@altlinux.ru> 1.2.1-alt1 - new version * Wed Dec 08 2010 Igor Vlasenko <viy@altlinux.ru> 1.1.17-alt2.1 - rebuild with new openssl and/or boost by request of git.alt administrator * Thu Apr 02 2009 Denis Ovsienko <pilot@altlinux.ru> 1.1.17-alt2 - try x86_64 * Thu Apr 02 2009 Denis Ovsienko <pilot@altlinux.ru> 1.1.17-alt1 - update to upstream's stable release (with alpha-omega merged) - adjust kheaders patch - employ ExclusiveArch to stick with i586 * Tue Dec 16 2008 Denis Ovsienko <pilot@altlinux.ru> 1.1.15-alt1 - update to current version - add alpha-omega patch rev. 0.17 - fix package build * Thu Aug 09 2007 Denis Kuznetsov <dek@altlinux.ru> 1.1.13-alt1 - Start package |