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 Requires(post,preun): rc-scripts >= 0.2.0
16 Requires: /sbin/chkconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The WCCP (Web Cache Coordination Protocol) provides a method to
25 coordinate a farm of Web Caches from a central router. It allows
26 transparent redirection based on reachability.
29 WCCP (Web Cache Coordination Protocol) dostarcza metodê do
30 koordynowania farm Web Cache'ów z centralnego routera. Pozwala to na
31 przezroczyste przekierowania oparte na osi±galno¶ci hosta w danym
38 rm -f missing support/missing
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
48 $RPM_BUILD_ROOT%{_libdir}/wccpd
51 DESTDIR=$RPM_BUILD_ROOT
53 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/wccpd
54 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/wccpd
55 install contrib/linux-ipvs/scripts/*cache $RPM_BUILD_ROOT%{_libdir}/wccpd
56 install contrib/linux-ipvs/scripts/*wccp $RPM_BUILD_ROOT%{_libdir}/wccpd
59 rm -rf $RPM_BUILD_ROOT
62 /sbin/chkconfig --add wccpd
63 if [ -f /var/lock/subsys/wccpd ]; then
64 /etc/rc.d/init.d/wccpd restart 1>&2
66 echo "Run \"/etc/rc.d/init.d/wccpd start\" to start wccpd daemon."
70 if [ "$1" = "0" ]; then
71 if [ -f /var/lock/subsys/wccpd ]; then
72 /etc/rc.d/init.d/wccpd stop 1>&2
74 /sbin/chkconfig --del wccpd
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog NEWS README INSTALL.Linux doc/*.txt doc/html/*
80 %attr(754,root,root) %{_sbindir}/*
82 %attr(754,root,root) %{_libdir}/wccpd/*cache
83 %attr(754,root,root) %{_libdir}/wccpd/*wccp
84 %attr(754,root,root) /etc/rc.d/init.d/wccpd
85 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/wccpd