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

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

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


Revision 1.6 - (hide annotations) (download)
Mon Mar 21 13:40:52 2016 UTC (8 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-2_9-12_el5_sme, HEAD
Changes since 1.5: +6 -3 lines
* Mon Mar 21 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.9-12.sme
- fix non blocking error on first installation if no log files [SME: 9354]

1 unnilennium 1.6 # $Id: smeserver-dansguardian.spec,v 1.5 2013/11/01 17:16:58 unnilennium Exp $
2 unnilennium 1.1 # Authority: dungog
3     # Name: Stephen Noble
4    
5     %define name smeserver-dansguardian
6     %define version 2.9
7 unnilennium 1.6 %define release 12
8 unnilennium 1.1
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     Patch1: smeserver-dansguardian-2.9-block8080.patch
19     Patch2: smeserver-dansguardian-2.9-block8080-2.patch
20 unnilennium 1.5 Patch3: smeserver-dansguardian-2.9-lib64.patch
21 unnilennium 1.1 BuildRoot: %{_tmppath}/%{name}-buildroot
22     BuildArchitectures: noarch
23     BuildRequires: e-smith-devtools >= 1.13.1-03
24     Requires: e-smith-release >= 7.0
25 unnilennium 1.3 Requires: dansguardian = 2.10.1.1-1%{?dist}
26 unnilennium 1.1 AutoReqProv: no
27    
28     %description
29     rpm to setup dansguardian.org web content filter
30    
31     %changelog
32 unnilennium 1.6 * Mon Mar 21 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.9-12.sme
33     - fix non blocking error on first installation if no log files [SME: 9354]
34    
35 unnilennium 1.5 * Fri Nov 01 2013 JP Pialasse <tests@pialasse.com> 2.9-11.sme
36     - lib64 patch for PAM squid auth see [SME: 7648]
37    
38 unnilennium 1.4 * Tue Jul 02 2013 JP Pialasse <tests@pialasse.com> 2.9-10
39 unnilennium 1.2 - more severe Requires for dansguardian [SME: 7716 7717]
40 unnilennium 1.4 - fix clamav user for logs after rf rpm
41 unnilennium 1.2
42 unnilennium 1.1 * Tue Jun 09 2009 Stephen Noble <support@dungog.net> 2.9-7
43     - undo portblocking on 443
44    
45     * Wed Apr 30 2009 Stephen Noble <support@dungog.net> 2.9-6
46     - portblocking now blocks 443 as well as 3128
47    
48     * Fri May 30 2008 Stephen Noble <support@dungog.net> 2.9-5
49     - fix portblocking on 8080
50    
51     * Fri May 30 2008 Stephen Noble <support@dungog.net> 2.9-4
52     - $dansguardian{portblocking} = yes, blocks external 8080
53    
54     * Thu Jul 05 2007 Stephen Noble <support@dungog.net> 2.9-3
55     - $dansguardian{portblocking} = yes, just blocks 3128
56    
57     * Thu Jul 05 2007 Stephen Noble <support@dungog.net>
58     - Build on lordsfam
59    
60     * Wed Sep 27 2006 Stephen Noble <support@dungog.net>
61     - lograte gzip's files
62     - uses initialize-default-databases
63     - [2.9-2]
64    
65     * Wed Sep 27 2006 Stephen Noble <support@dungog.net>
66     - update for 2.9
67     - no longer runs under daemontools
68     - [2.9-1]
69    
70     * Sun Mar 12 2006 Stephen Noble <support@dungog.net>
71     - 15AuthProgramPamAuth, spaces removed from realm
72     - [1.2-4]
73    
74     * Thu Mar 9 2006 Stephen Noble <support@dungog.net>
75     - 15AuthProgramPamAuth, realm put inside quotes
76     - ident added, but it's broken
77     - [1.2-3]
78    
79     * Sun Nov 6 2005 Stephen Noble <support@dungog.net>
80     - db value to block ports changed
81     - ncsa_auth password file changed
82     - [1.2-2]
83    
84     * Fri Sep 16 2005 Stephen Noble <support@dungog.net>
85     - SME7 initial version
86     - runs under daemontools
87     - for DG 2.8.0.6-el4 no patches
88     - [1.2-1]
89    
90     <snip>
91     * Tue Nov 6 2001 Stephen Noble <stephen@dungog.net> 0.1-1
92     - initial release
93    
94     %prep
95     %setup
96     %patch0 -p1
97     %patch1 -p1
98     %patch2 -p1
99 unnilennium 1.5 %patch3 -p1
100    
101 unnilennium 1.1
102     %build
103     perl createlinks
104    
105     mkdir -p root/etc/e-smith/db/configuration/defaults/dansguardian
106     echo "service" > root/etc/e-smith/db/configuration/defaults/dansguardian/type
107     echo "enabled" > root/etc/e-smith/db/configuration/defaults/dansguardian/status
108    
109     %install
110     rm -rf $RPM_BUILD_ROOT
111     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
112     rm -f %{name}-%{version}-filelist
113     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
114     --file '/etc/cron.weekly/dansguardian-logrotate' 'attr(0755,root,root)' \
115     > %{name}-%{version}-filelist
116     echo "%doc COPYING" >> %{name}-%{version}-filelist
117    
118     %clean
119     cd ..
120     rm -rf %{name}-%{version}
121    
122     %pre
123    
124     %preun
125     %post
126    
127     #gzip old log files
128     if [ -z /var/log/dansguardian/access.log.1 ] ; then
129     gzip -f /var/log/dansguardian/access.log.1
130     fi
131     if [ -z /var/log/dansguardian/access.log.2 ] ; then
132     gzip -f /var/log/dansguardian/access.log.2
133     fi
134     if [ -z /var/log/dansguardian/access.log.3 ] ; then
135     gzip -f /var/log/dansguardian/access.log.3
136     fi
137     if [ -z /var/log/dansguardian/access.log.4 ] ; then
138     gzip -f /var/log/dansguardian/access.log.4
139     fi
140    
141 unnilennium 1.4 # temp fix following rf dansguardian used
142 unnilennium 1.6 chown clamav:clamav -R /var/log/dansguardian
143 unnilennium 1.4
144 unnilennium 1.1 %postun
145    
146     #uninstalls
147     if [ $1 = 0 ] ; then
148     /sbin/e-smith/db configuration setprop squid TransparentPort 3128
149     /sbin/e-smith/expand-template /etc/httpd/conf/proxy/proxy.pac
150     /sbin/e-smith/expand-template /etc/squid/squid.conf
151     echo 'optionally run signal-event network-create to complete uninstall'
152     fi
153    
154     #&upgrades
155    
156     %files -f %{name}-%{version}-filelist
157     %defattr(-,root,root)

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