ipvsadm-vl.spec 5.3 KB

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