/[smeserver]/smeserver-squid_cache_mgt/F/smeserver-squid_cache_mgt-1.0.spec
ViewVC logotype

Annotation of /smeserver-squid_cache_mgt/F/smeserver-squid_cache_mgt-1.0.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Tue Sep 26 17:20:23 2006 UTC (17 years, 8 months ago) by charliebrady
Changes since 1.1: +0 -0 lines
Import of smeserver-squid_cache_mgt

1 charliebrady 1.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: %{release}
8     Copyright: Freely distributable
9     Group: Backup/Daemons
10     Source: %{name}-%{version}.tar.gz
11     #Patch0: %{name}-%{version}.patch.yyyymmddnn
12     Packager: Michel Van hees <michel@vanhees.cc>
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     * Mon Sep 25 2006 Michel Van hees <michel@vanhees.cc>
21     - Bug correctoion in SPEC file
22    
23     * Mon Aug 28 2006 Michel Van hees <michel@vanhees.cc>
24     - RePackage to fit smeserver 7 notation
25    
26     * Sat Dec 18 2003 Michel Van hees <mvanhees@vanhees.homeip.net>
27     - initial release
28    
29     %description
30     smeserver module to control size of cache for squid
31    
32     %prep
33     %setup
34     #%patch0 -p1
35     #%patch1 -p1
36    
37     %build
38     perl createlinks
39    
40     %install
41     rm -rf $RPM_BUILD_ROOT
42     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
43     rm -f %{name}-%{version}-filelist
44     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
45     echo "%doc COPYING" >> %{name}-%{version}-filelist
46    
47     %clean
48     rm -rf $RPM_BUILD_ROOT
49    
50     %pre
51     %preun
52     %post
53     /sbin/e-smith/db configuration set squidCache configuration
54     /sbin/e-smith/db configuration setprop squidCache squidSize 100
55     /sbin/e-smith/db configuration setprop squidCache squidPath /var/spool/squid
56     /sbin/e-smith/db configuration setprop squidCache squidType ufs
57     /sbin/e-smith/db configuration setprop squidCache squidMaxObj 3
58     /sbin/e-smith/db configuration setprop squidCache squidMaxType KB
59     /sbin/e-smith/db configuration setprop squidCache squidFirstLevel 16
60     /sbin/e-smith/db configuration setprop squidCache squidSecondLevel 256
61     /etc/e-smith/events/actions/navigation-conf > /dev/null 2>&1
62     echo Install completed
63    
64     %postun
65     /sbin/e-smith/db configuration delete squidCache
66     /sbin/e-smith/expand-template /etc/squid/squid.conf
67     /etc/e-smith/events/actions/navigation-conf > /dev/null 2>&1
68     /etc/rc.d/rc7.d/S90squid restart
69    
70     %files -f %{name}-%{version}-filelist
71     %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed