[12546] | 1 | %bcond_with systemd |
---|
| 2 | |
---|
[521] | 3 | Summary: Utility to administer the Linux Virtual Server |
---|
| 4 | Summary(ja): Linux Virtual Server を管理するためのユーティリティ |
---|
| 5 | Name: ipvsadm |
---|
[12546] | 6 | Version: 1.31 |
---|
| 7 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
| 8 | Group: system,network |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
[521] | 11 | |
---|
[12546] | 12 | License: GPLv2+ |
---|
| 13 | URL: https://kernel.org/pub/linux/utils/kernel/ipvsadm/ |
---|
[11950] | 14 | Source0: https://kernel.org/pub/linux/utils/kernel/ipvsadm/%{name}-%{version}.tar.xz |
---|
[6030] | 15 | Source1: ipvsadm.init |
---|
| 16 | Source2: ipvsadm-config |
---|
[11950] | 17 | Patch3: 0003-ipvsadm-use-CFLAGS-and-LDFLAGS-environment-variables.patch |
---|
[6030] | 18 | |
---|
[12546] | 19 | BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-buildroot |
---|
| 20 | BuildRequires: libnl3-devel |
---|
| 21 | BuildRequires: popt-devel |
---|
| 22 | %if %{with systemd} |
---|
| 23 | %{?systemd_requires} |
---|
| 24 | %else |
---|
[6030] | 25 | Requires(post): /sbin/chkconfig |
---|
| 26 | Requires(preun): /sbin/chkconfig |
---|
[12546] | 27 | %endif |
---|
[521] | 28 | |
---|
| 29 | %description |
---|
| 30 | ipvsadm is a utility to administer the IP Virtual Server services |
---|
| 31 | offered by the Linux kernel. |
---|
| 32 | |
---|
| 33 | |
---|
[12546] | 34 | %debug_package |
---|
| 35 | |
---|
| 36 | |
---|
[521] | 37 | %prep |
---|
[6030] | 38 | %setup -q |
---|
[11950] | 39 | %patch3 -p1 |
---|
[521] | 40 | |
---|
| 41 | |
---|
| 42 | %build |
---|
| 43 | CFLAGS="${RPM_OPT_FLAGS}" %__make |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
| 48 | mkdir -p ${RPM_BUILD_ROOT}/{sbin,%{_mandir}/man8,etc/rc.d/init.d} |
---|
| 49 | %__make install BUILD_ROOT=${RPM_BUILD_ROOT} MANDIR=%{_mandir} |
---|
[6030] | 50 | # Install config file which controls the service behavior |
---|
| 51 | install -D -p -m 0600 %{SOURCE2} %{buildroot}/etc/sysconfig/ipvsadm-config |
---|
[12546] | 52 | %if %{with systemd} |
---|
| 53 | %{__rm} -f %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name} |
---|
| 54 | %{__install} -p -D -m 0644 %{SOURCE10} %{buildroot}%{_unitdir}/%{name}.service |
---|
| 55 | %else |
---|
| 56 | # Overwrite the provided init script with our flexible and LSB compliant one |
---|
| 57 | %{__install} -p -m 0755 %{SOURCE1} %{buildroot}/etc/rc.d/init.d/ipvsadm |
---|
| 58 | %endif |
---|
[521] | 59 | |
---|
| 60 | |
---|
[12546] | 61 | %clean |
---|
| 62 | rm -rf $RPM_BUILD_DIR/%{name} |
---|
| 63 | rm -rf $RPM_BUILD_ROOT |
---|
[521] | 64 | |
---|
| 65 | |
---|
| 66 | %post |
---|
[12546] | 67 | %if %{with systemd} |
---|
| 68 | %systemd_post %{name}.service |
---|
| 69 | %else |
---|
[521] | 70 | /sbin/chkconfig --add ipvsadm |
---|
[12546] | 71 | %endif |
---|
[521] | 72 | |
---|
| 73 | %preun |
---|
[12546] | 74 | %if %{with systemd} |
---|
| 75 | %systemd_preun %{name}.service |
---|
| 76 | %else |
---|
[521] | 77 | /sbin/chkconfig --del ipvsadm |
---|
[12546] | 78 | %endif |
---|
[521] | 79 | |
---|
[12546] | 80 | %if %{with systemd} |
---|
| 81 | %postun |
---|
| 82 | %systemd_postun_with_restart %{name}.service |
---|
| 83 | %endif |
---|
[521] | 84 | |
---|
| 85 | |
---|
[12546] | 86 | %files |
---|
| 87 | %defattr(-,root,root) |
---|
| 88 | %doc README |
---|
| 89 | %config(noreplace) /etc/sysconfig/ipvsadm-config |
---|
| 90 | /sbin/ipvsadm* |
---|
| 91 | %{_mandir}/man8/ipvsadm* |
---|
| 92 | %if %{with systemd} |
---|
| 93 | %{_unitdir}/%{name}.service |
---|
| 94 | %else |
---|
| 95 | %config /etc/rc.d/init.d/ipvsadm |
---|
| 96 | %endif |
---|
[521] | 97 | |
---|
[12546] | 98 | |
---|
[521] | 99 | %changelog |
---|
[12546] | 100 | * Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.31-1 |
---|
| 101 | - updated to 1.31. |
---|
| 102 | - dropped Patch1 and 2. |
---|
| 103 | |
---|
[11950] | 104 | * Thu Nov 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.29-1 |
---|
| 105 | - updated to 1.29 |
---|
| 106 | - dropped Patch0. |
---|
| 107 | - imported Patch1-3 from rawhide. |
---|
| 108 | - dropped BR: libnl-devel. |
---|
| 109 | - added BR: libnl3-devel. |
---|
| 110 | |
---|
[6030] | 111 | * Wed Apr 11 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.26-1 |
---|
| 112 | - update to 1.26 |
---|
| 113 | - update init scripts |
---|
| 114 | |
---|
[521] | 115 | * Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 1.24-1vl5 |
---|
| 116 | - applied new versioning policy, spec in utf-8 |
---|
| 117 | |
---|
| 118 | * Sun Oct 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.24-0vl1 |
---|
| 119 | - initial build for Vine Linux |
---|
| 120 | |
---|
| 121 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.24-8.1 |
---|
| 122 | - rebuild |
---|
| 123 | |
---|
| 124 | * Mon May 15 2006 Phil Knirsch <pknirsch@redhat.com> - 1.24-8 |
---|
| 125 | - Added missing prereq to chkconfig |
---|
| 126 | |
---|
| 127 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.24-7.2.1 |
---|
| 128 | - bump again for double-long bug on ppc(64) |
---|
| 129 | |
---|
| 130 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.24-7.2 |
---|
| 131 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
| 132 | |
---|
| 133 | * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> |
---|
| 134 | - rebuilt |
---|
| 135 | |
---|
| 136 | * Mon Mar 14 2005 Lon Hohberger <lhh@redhat.com> 1.24-7 |
---|
| 137 | - rebuilt |
---|
| 138 | |
---|
| 139 | * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> |
---|
| 140 | - rebuilt |
---|
| 141 | |
---|
| 142 | * Tue Mar 16 2004 Mike McLean <mikem@redhat.com> 1.24-4.2.ipvs120 |
---|
| 143 | - bump release |
---|
| 144 | |
---|
| 145 | * Tue Mar 02 2004 Mike McLean <mikem@redhat.com> 1.24-4.1.ipvs120 |
---|
| 146 | - update to new version for 2.6 kernel |
---|
| 147 | |
---|
| 148 | * Thu Jan 08 2004 Mike McLean <mikem@redhat.com> 1.21-10.ipvs108 |
---|
| 149 | - fixing a minor bug/typo in output format processing |
---|
| 150 | |
---|
| 151 | * Wed Aug 06 2003 Mike McLean <mikem@redhat.com> 1.21-9.ipvs108 |
---|
| 152 | - Dropping kernel-source BuildRequires and including a local copy of |
---|
| 153 | net/ip_vs.h to compensate. |
---|
| 154 | - Incorporating some upstream changes, most notably the --sort option. |
---|
| 155 | |
---|
| 156 | * Fri Jun 13 2003 Mike McLean <mikem@redhat.com> 1.21-8 |
---|
| 157 | - dropping ppc from excluded arches |
---|
| 158 | |
---|
[11950] | 159 | * Fri Apr 4 2003 Mike McLean <mikem@redhat.com> 1.21-7 |
---|
[521] | 160 | - changing %%ExcludeArch |
---|
| 161 | |
---|
[11950] | 162 | * Fri Apr 4 2003 Mike McLean <mikem@redhat.com> 1.21-6 |
---|
[521] | 163 | - added BuildRequires: kernel-source |
---|
| 164 | - escaped all %% characters in %%changelog |
---|
| 165 | |
---|
| 166 | * Mon Dec 2 2002 Mike McLean <mikem@redhat.com> 1.21-5 |
---|
| 167 | - Improved the description in the ipvsadm initscript. |
---|
| 168 | - fixed Buildroot to use _tmppath |
---|
| 169 | |
---|
| 170 | * Wed Aug 21 2002 Philip Copeland <bryce@redhat.com> 1.21-4 |
---|
| 171 | - Argh,.. %%docdir was defined which overrode what I'd |
---|
| 172 | intended to happen |
---|
| 173 | |
---|
[11950] | 174 | * Thu Aug 1 2002 Philip Copeland <bryce@redhat.com> |
---|
[521] | 175 | - Ah... the manuals were being pushed into /usr/man |
---|
| 176 | instead of /usr/share/man. Fixed. |
---|
| 177 | |
---|
| 178 | * Tue Jul 16 2002 Philip Copeland <bryce@redhat.com> |
---|
| 179 | - Minor Makefile tweak so that we do a minimal hunt for to find |
---|
| 180 | the ip_vs.h file location |
---|
| 181 | |
---|
[11950] | 182 | * Sun Dec 16 2001 Wensong Zhang <wensong@linuxvirtualserver.org> |
---|
[521] | 183 | - Changed to install ipvsadm man pages according to the %%{_mandir} |
---|
| 184 | |
---|
[11950] | 185 | * Sat Dec 30 2000 Wensong Zhang <wensong@linuxvirtualserver.org> |
---|
[521] | 186 | - update the %%file section |
---|
| 187 | |
---|
[11950] | 188 | * Sun Dec 17 2000 Wensong Zhang <wensong@linuxvirtualserver.org> |
---|
[521] | 189 | - Added a if-condition to keep both new or old rpm utility building |
---|
| 190 | the package happily. |
---|
| 191 | |
---|
| 192 | * Tue Dec 12 2000 P.opeland <bryce@redhat.com> |
---|
| 193 | - Small modifications to make the compiler happy in RH7 and the Alpha |
---|
| 194 | - Fixed the documentation file that got missed off in building |
---|
| 195 | the rpm |
---|
| 196 | - Made a number of -pedantic mods though popt will not compile with |
---|
| 197 | -pedantic |
---|
| 198 | |
---|
| 199 | * Wed Aug 9 2000 Horms <horms@vergenet.net> |
---|
| 200 | - Removed Obseletes tag as ipvsadm is back in /sbin where it belongs |
---|
| 201 | as it is more or less analogous to both route and ipchains both of |
---|
| 202 | which reside in /sbin. |
---|
| 203 | - Create directory to install init script into. Init scripts won't install |
---|
| 204 | into build directory unless this is done |
---|
| 205 | |
---|
| 206 | * Thu Jul 6 2000 Wensong Zhang <wensong@linuxvirtualserver.org> |
---|
| 207 | - Changed to build rpms on the ipvsadm tar ball directly |
---|
| 208 | |
---|
| 209 | * Wed Jun 21 2000 P.Copeland <copeland@redhat.com> |
---|
| 210 | - fixed silly install permission settings |
---|
| 211 | |
---|
| 212 | * Mon Jun 19 2000 P.Copeland <copeland@redhat.com> |
---|
| 213 | - Added 'dist' and 'rpms' to the Makefile |
---|
| 214 | - Added Obsoletes tag since there were early versions |
---|
| 215 | of ipvsadm-*.rpm that installed in /sbin |
---|
| 216 | - Obsolete tag was a bit vicious re: piranha |
---|
| 217 | |
---|
| 218 | * Mon Apr 10 2000 Horms <horms@vergenet.net> |
---|
| 219 | - created for version 1.9 |
---|