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

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

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


Revision 1.2 - (hide annotations) (download)
Fri Dec 28 23:57:27 2018 UTC (5 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-dansguardian-2_10-2_el6_sme
Changes since 1.1: +17 -4 lines
* Mon Dec 10 2018 T Fage <tfage@yahoo.com.au> 2.10-2.sme
- fix log file permissions
- remove /tmp files clamav compatability [SME: 9613]
- bump required e-smith-release version

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

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