1 Summary: A WCCP Server Daemon
2 Summary(pl): Serwer WCCP
8 Source0: http://dl.sourceforge.net/wccpd/%{name}-%{version}.tar.gz
9 # Source0-md5: 5f15c274de61dfb88e0dbfc1ccbe6b67
11 Source2: %{name}.sysconfig
12 URL: http://wccpd.sourceforge.net/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: rpmbuild(macros) >= 1.268
16 Requires(post,preun): rc-scripts >= 0.2.0
17 Requires: /sbin/chkconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The WCCP (Web Cache Coordination Protocol) provides a method to
26 coordinate a farm of Web Caches from a central router. It allows
27 transparent redirection based on reachability.
30 WCCP (Web Cache Coordination Protocol) dostarcza metodê do
31 koordynowania farm Web Cache'ów z centralnego routera. Pozwala to na
32 przezroczyste przekierowania oparte na osi±galno¶ci hosta w danym
39 rm -f missing support/missing
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
49 $RPM_BUILD_ROOT%{_libdir}/wccpd
52 DESTDIR=$RPM_BUILD_ROOT
54 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wccpd
55 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/wccpd
56 install contrib/linux-ipvs/scripts/*cache $RPM_BUILD_ROOT%{_libdir}/wccpd
57 install contrib/linux-ipvs/scripts/*wccp $RPM_BUILD_ROOT%{_libdir}/wccpd
60 rm -rf $RPM_BUILD_ROOT
63 /sbin/chkconfig --add wccpd
64 %service wccpd restart "wccpd daemon"
67 if [ "$1" = "0" ]; then
69 /sbin/chkconfig --del wccpd
73 %defattr(644,root,root,755)
74 %doc AUTHORS ChangeLog NEWS README INSTALL.Linux doc/*.txt doc/html/*
75 %attr(754,root,root) %{_sbindir}/*
77 %attr(754,root,root) %{_libdir}/wccpd/*cache
78 %attr(754,root,root) %{_libdir}/wccpd/*wccp
79 %attr(754,root,root) /etc/rc.d/init.d/wccpd
80 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/wccpd