ipvsadm-vl.spec 6.2 KB

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