|
@@ -1,18 +1,24 @@
|
|
|
Summary: Utility to administer the Linux Virtual Server
|
|
|
Summary(ja): Linux Virtual Server を管理するためのユーティリティ
|
|
|
Name: ipvsadm
|
|
|
-Version: 1.24
|
|
|
+Version: 1.26
|
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
-License: GPL
|
|
|
+Source0: http://www.LinuxVirtualServer.org/software/ipvsadm-%{version}.tar.gz
|
|
|
+Source1: ipvsadm.init
|
|
|
+Source2: ipvsadm-config
|
|
|
+patch0: ipvsadm-1.26-popt.patch
|
|
|
+
|
|
|
+License: GPLv2+
|
|
|
URL: http://www.LinuxVirtualServer.org/
|
|
|
Group: Applications/System
|
|
|
+
|
|
|
Buildroot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-buildroot
|
|
|
-Provides: %{name}-%{version}
|
|
|
-PreReq: chkconfig
|
|
|
+Buildrequires: libnl-devel
|
|
|
+Buildrequires: popt-devel
|
|
|
+Requires(post): /sbin/chkconfig
|
|
|
+Requires(preun): /sbin/chkconfig
|
|
|
|
|
|
-Source0: http://www.LinuxVirtualServer.org/software/ipvsadm-%{version}.tar.gz
|
|
|
-patch0: ipvsadm-1.24-kernhdr-1.2.0.patch
|
|
|
|
|
|
%description
|
|
|
ipvsadm is a utility to administer the IP Virtual Server services
|
|
@@ -20,7 +26,7 @@ offered by the Linux kernel.
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -n %{name}-%{version}
|
|
|
+%setup -q
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
@@ -32,12 +38,17 @@ CFLAGS="${RPM_OPT_FLAGS}" %__make
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/{sbin,%{_mandir}/man8,etc/rc.d/init.d}
|
|
|
%__make install BUILD_ROOT=${RPM_BUILD_ROOT} MANDIR=%{_mandir}
|
|
|
+# Overwrite the provided init script with our flexible and LSB compliant one
|
|
|
+install -p -m 0755 %{SOURCE1} %{buildroot}/etc/rc.d/init.d/ipvsadm
|
|
|
+# Install config file which controls the service behavior
|
|
|
+install -D -p -m 0600 %{SOURCE2} %{buildroot}/etc/sysconfig/ipvsadm-config
|
|
|
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
%doc README
|
|
|
%config /etc/rc.d/init.d/ipvsadm
|
|
|
+%config(noreplace) /etc/sysconfig/ipvsadm-config
|
|
|
/sbin/ipvsadm*
|
|
|
%{_mandir}/man8/ipvsadm*
|
|
|
|
|
@@ -56,6 +67,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Apr 11 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.26-1
|
|
|
+- update to 1.26
|
|
|
+- update init scripts
|
|
|
+
|
|
|
* Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 1.24-1vl5
|
|
|
- applied new versioning policy, spec in utf-8
|
|
|
|