1 |
Summary: smeserver module to control squid cache |
2 |
%define name smeserver-squid_cache_mgt |
3 |
Name: %{name} |
4 |
%define version 1.0 |
5 |
%define release 2 |
6 |
Version: %{version} |
7 |
Release: %smerelease %{release} |
8 |
Packager: %{_packager} |
9 |
License: Freely distributable |
10 |
Group: Backup/Daemons |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
#Patch0: %{name}-%{version}.patch.yyyymmddnn |
13 |
BuildRoot: /var/tmp/e-smith-buildroot |
14 |
BuildRequires: e-smith-devtools |
15 |
BuildArchitectures: noarch |
16 |
Requires: smeserver-release >= 6 |
17 |
AutoReqProv: no |
18 |
|
19 |
%changelog |
20 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
21 |
- Update to new release naming. No functional changes. |
22 |
- Make Packager generic |
23 |
|
24 |
* Mon Sep 25 2006 Michel Van hees <michel@vanhees.cc> |
25 |
- Bug correctoion in SPEC file |
26 |
|
27 |
* Mon Aug 28 2006 Michel Van hees <michel@vanhees.cc> |
28 |
- RePackage to fit smeserver 7 notation |
29 |
|
30 |
* Sat Dec 18 2003 Michel Van hees <mvanhees@vanhees.homeip.net> |
31 |
- initial release |
32 |
|
33 |
%description |
34 |
smeserver module to control size of cache for squid |
35 |
|
36 |
%prep |
37 |
%setup |
38 |
#%patch0 -p1 |
39 |
#%patch1 -p1 |
40 |
|
41 |
%build |
42 |
perl createlinks |
43 |
|
44 |
%install |
45 |
rm -rf $RPM_BUILD_ROOT |
46 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
47 |
rm -f %{name}-%{version}-filelist |
48 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
49 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
50 |
|
51 |
%clean |
52 |
rm -rf $RPM_BUILD_ROOT |
53 |
|
54 |
%pre |
55 |
%preun |
56 |
%post |
57 |
/sbin/e-smith/db configuration set squidCache configuration |
58 |
/sbin/e-smith/db configuration setprop squidCache squidSize 100 |
59 |
/sbin/e-smith/db configuration setprop squidCache squidPath /var/spool/squid |
60 |
/sbin/e-smith/db configuration setprop squidCache squidType ufs |
61 |
/sbin/e-smith/db configuration setprop squidCache squidMaxObj 3 |
62 |
/sbin/e-smith/db configuration setprop squidCache squidMaxType KB |
63 |
/sbin/e-smith/db configuration setprop squidCache squidFirstLevel 16 |
64 |
/sbin/e-smith/db configuration setprop squidCache squidSecondLevel 256 |
65 |
/etc/e-smith/events/actions/navigation-conf > /dev/null 2>&1 |
66 |
echo Install completed |
67 |
|
68 |
%postun |
69 |
/sbin/e-smith/db configuration delete squidCache |
70 |
/sbin/e-smith/expand-template /etc/squid/squid.conf |
71 |
/etc/e-smith/events/actions/navigation-conf > /dev/null 2>&1 |
72 |
/etc/rc.d/rc7.d/S90squid restart |
73 |
|
74 |
%files -f %{name}-%{version}-filelist |
75 |
%defattr(-,root,root) |