ipvsadm-vl.spec 5.7 KB

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