/[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.3 - (hide annotations) (download)
Fri May 30 08:18:02 2008 UTC (16 years, 5 months ago) by dungog
Branch: MAIN
CVS Tags: smeserver-dansguardian-2_9-4_el4_sme
Changes since 1.2: +7 -6 lines
ss-dans block8080

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

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