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

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

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


Revision 1.4 - (show annotations) (download)
Tue Jul 2 21:31:38 2013 UTC (11 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-2_9-10_el5_sme
Changes since 1.3: +7 -3 lines
* Tue Jul 02 2013 JP Pialasse <tests@pialasse.com> 2.9-10
- more severe Requires for dansguardian [SME: 7716 7717]
- fix clamav user for logs after rf rpm

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

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