/[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.5 - (hide annotations) (download)
Fri Nov 1 17:16:58 2013 UTC (11 years ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-dansguardian-2_9-11_el5_sme
Changes since 1.4: +8 -2 lines
* Fri Nov 01 2013 JP Pialasse <tests@pialasse.com> 2.9-11.sme
- lib64 patch for PAM squid auth see [SME: 7648]

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

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