/[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.5 - (hide annotations) (download)
Sun Nov 23 04:57:56 2008 UTC (16 years ago) by slords
Branch: MAIN
Changes since 1.4: +1 -1 lines
FILE REMOVED
Part of epel

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

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