/[smecontribs]/rpms/smeserver-dansguardian/contribs7/smeserver-dansguardian.spec
ViewVC logotype

Annotation of /rpms/smeserver-dansguardian/contribs7/smeserver-dansguardian.spec

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


Revision 1.2 - (hide annotations) (download)
Wed Apr 2 15:03:56 2008 UTC (16 years, 7 months ago) by slords
Branch: MAIN
Changes since 1.1: +4 -0 lines
Add Id, Authority, Name

1 slords 1.2 # $Id$
2     # Authority: dungog
3     # Name: Stephen Noble
4    
5 slords 1.1 %define name smeserver-dansguardian
6     %define version 2.9
7     %define release 3
8    
9     Summary: Set up dansguardian to filter www content.
10     Name: %{name}
11     Version: %{version}
12     Release: %{release}%{?dist}
13     License: GNU GPL version 2
14     URL: http://www.dungog.net/sme
15     Group: SMEserver/addon
16     Source: %{name}-%{version}.tar.gz
17     Patch0: smeserver-dansguardian-2.9-unblock80.patch
18     BuildRoot: %{_tmppath}/%{name}-buildroot
19     BuildArchitectures: noarch
20     BuildRequires: e-smith-devtools >= 1.13.1-03
21     Requires: e-smith-release >= 7.0
22     Requires: dansguardian >= 2.9
23     AutoReqProv: no
24    
25     %description
26     rpm to setup dansguardian.org web content filter
27    
28     %changelog
29     * Thu Jul 05 2007 Stephen Noble <support@dungog.net> 2.9-3
30     - $dansguardian{portblocking} = yes, just blocks 3128
31    
32     * Thu Jul 05 2007 Stephen Noble <support@dungog.net>
33     - Build on lordsfam
34    
35     * Wed Sep 27 2006 Stephen Noble <support@dungog.net>
36     - lograte gzip's files
37     - uses initialize-default-databases
38     - [2.9-2]
39    
40     * Wed Sep 27 2006 Stephen Noble <support@dungog.net>
41     - update for 2.9
42     - no longer runs under daemontools
43     - [2.9-1]
44    
45     * Sun Mar 12 2006 Stephen Noble <support@dungog.net>
46     - 15AuthProgramPamAuth, spaces removed from realm
47     - [1.2-4]
48    
49     * Thu Mar 9 2006 Stephen Noble <support@dungog.net>
50     - 15AuthProgramPamAuth, realm put inside quotes
51     - ident added, but it's broken
52     - [1.2-3]
53    
54     * Sun Nov 6 2005 Stephen Noble <support@dungog.net>
55     - db value to block ports changed
56     - ncsa_auth password file changed
57     - [1.2-2]
58    
59     * Fri Sep 16 2005 Stephen Noble <support@dungog.net>
60     - SME7 initial version
61     - runs under daemontools
62     - for DG 2.8.0.6-el4 no patches
63     - [1.2-1]
64    
65     <snip>
66     * Tue Nov 6 2001 Stephen Noble <stephen@dungog.net> 0.1-1
67     - initial release
68    
69     %prep
70     %setup
71     %patch0 -p1
72    
73     %build
74     perl createlinks
75    
76     mkdir -p root/etc/e-smith/db/configuration/defaults/dansguardian
77     echo "service" > root/etc/e-smith/db/configuration/defaults/dansguardian/type
78     echo "enabled" > root/etc/e-smith/db/configuration/defaults/dansguardian/status
79    
80     %install
81     rm -rf $RPM_BUILD_ROOT
82     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
83     rm -f %{name}-%{version}-filelist
84     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
85     --file '/etc/cron.weekly/dansguardian-logrotate' 'attr(0755,root,root)' \
86     > %{name}-%{version}-filelist
87     echo "%doc COPYING" >> %{name}-%{version}-filelist
88    
89     %clean
90     cd ..
91     rm -rf %{name}-%{version}
92    
93     %pre
94    
95     %preun
96     %post
97     #new installs
98     #if [ $1 = 1 ] ; then
99     #fi
100     #/etc/e-smith/events/actions/initialize-default-databases
101    
102     #gzip old log files
103     if [ -z /var/log/dansguardian/access.log.1 ] ; then
104     gzip -f /var/log/dansguardian/access.log.1
105     fi
106     if [ -z /var/log/dansguardian/access.log.2 ] ; then
107     gzip -f /var/log/dansguardian/access.log.2
108     fi
109     if [ -z /var/log/dansguardian/access.log.3 ] ; then
110     gzip -f /var/log/dansguardian/access.log.3
111     fi
112     if [ -z /var/log/dansguardian/access.log.4 ] ; then
113     gzip -f /var/log/dansguardian/access.log.4
114     fi
115    
116     %postun
117    
118     #uninstalls
119     if [ $1 = 0 ] ; then
120     /sbin/e-smith/db configuration setprop squid TransparentPort 3128
121     /sbin/e-smith/expand-template /etc/httpd/conf/proxy/proxy.pac
122     /sbin/e-smith/expand-template /etc/squid/squid.conf
123     echo 'optionally run signal-event network-create to complete uninstall'
124     fi
125    
126     #&upgrades
127    
128     %files -f %{name}-%{version}-filelist
129     %defattr(-,root,root)

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