]> git.pld-linux.org Git - packages/wccpd.git/blob - wccpd.spec
- use %service
[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 BuildRequires:  rpmbuild(macros) >= 1.268
16 Requires(post,preun):   rc-scripts >= 0.2.0
17 Requires:       /sbin/chkconfig
18 Requires:       bc
19 Requires:       fileutils
20 Requires:       iproute2
21 Requires:       ipvsadm
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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.
28
29 %description -l pl
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
33 momencie.
34
35 %prep
36 %setup -q
37
38 %build
39 rm -f missing support/missing
40 %{__aclocal}
41 %{__autoconf}
42 %{__automake}
43 %configure
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
49         $RPM_BUILD_ROOT%{_libdir}/wccpd
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
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
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %post
63 /sbin/chkconfig --add wccpd
64 %service wccpd restart "wccpd daemon"
65
66 %preun
67 if [ "$1" = "0" ]; then
68         %service wccpd stop
69         /sbin/chkconfig --del wccpd
70 fi
71
72 %files
73 %defattr(644,root,root,755)
74 %doc AUTHORS ChangeLog NEWS README INSTALL.Linux doc/*.txt doc/html/*
75 %attr(754,root,root) %{_sbindir}/*
76 %dir %{_libdir}/wccpd
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
81 %{_mandir}/man8/*.8*
This page took 0.06788 seconds and 3 git commands to generate.