]> git.pld-linux.org Git - packages/wccpd.git/blob - wccpd.spec
- adapterized (sorted %verify attrs)
[packages/wccpd.git] / wccpd.spec
1 Summary:        A WCCP Server Daemon
2 Summary(pl):    Serwer WCCP
3 Name:           wccpd
4 Version:        0.2
5 Release:        3
6 License:        GPL v2
7 Group:          Daemons
8 Source0:        http://dl.sourceforge.net/wccpd/%{name}-%{version}.tar.gz
9 # Source0-md5:  5f15c274de61dfb88e0dbfc1ccbe6b67
10 Source1:        %{name}.init
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
17 Requires:       bc
18 Requires:       fileutils
19 Requires:       iproute2
20 Requires:       ipvsadm
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
27
28 %description -l pl
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
32 momencie.
33
34 %prep
35 %setup -q
36
37 %build
38 rm -f missing support/missing
39 %{__aclocal}
40 %{__autoconf}
41 %{__automake}
42 %configure
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
48         $RPM_BUILD_ROOT%{_libdir}/wccpd
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
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
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 /sbin/chkconfig --add wccpd
63 if [ -f /var/lock/subsys/wccpd ]; then
64         /etc/rc.d/init.d/wccpd restart 1>&2
65 else
66         echo "Run \"/etc/rc.d/init.d/wccpd start\" to start wccpd daemon."
67 fi
68
69 %preun
70 if [ "$1" = "0" ]; then
71         if [ -f /var/lock/subsys/wccpd ]; then
72                 /etc/rc.d/init.d/wccpd stop 1>&2
73         fi
74         /sbin/chkconfig --del wccpd
75 fi
76
77 %files
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog NEWS README INSTALL.Linux doc/*.txt doc/html/*
80 %attr(754,root,root) %{_sbindir}/*
81 %dir %{_libdir}/wccpd
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
86 %{_mandir}/man8/*.8*
This page took 0.039793 seconds and 3 git commands to generate.