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

Contents of /rpms/smeserver-dansguardian/contribs7/smeserver-dansguardian-2.9.spec

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


Revision 1.3 - (show annotations) (download)
Sat Dec 22 22:18:29 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.2: +0 -2 lines
Remove Packager/Distribution (added by buildsys)

1 Summary: Set up dansguardian to filter www content.
2 %define name smeserver-dansguardian
3 Name: %{name}
4 %define version 2.9
5 %define release 2
6 Version: %{version}
7 Release: %{release}%{?dist}
8 Vendor: dungog.net
9 License: GPL
10 URL: http://www.dungog.net/sme
11 Group: Mitel/addon
12 Source: %{name}-%{version}.tar.gz
13 BuildRoot: /var/tmp/%{name}-%{version}
14 BuildArchitectures: noarch
15 Requires: e-smith-release >= 7.0
16 Requires: dansguardian >= 2.9
17 AutoReqProv: no
18
19 %description
20 rpm to setup dansguardian.org web content filter
21
22 %changelog
23 * Wed Sep 27 2006 Stephen Noble <support@dungog.net>
24 - lograte gzip's files
25 - uses initialize-default-databases
26 - [2.9-2]
27
28 * Wed Sep 27 2006 Stephen Noble <support@dungog.net>
29 - update for 2.9
30 - no longer runs under daemontools
31 - [2.9-1]
32
33 * Sun Mar 12 2006 Stephen Noble <support@dungog.net>
34 - 15AuthProgramPamAuth, spaces removed from realm
35 - [1.2-4]
36
37 * Thu Mar 9 2006 Stephen Noble <support@dungog.net>
38 - 15AuthProgramPamAuth, realm put inside quotes
39 - ident added, but it's broken
40 - [1.2-3]
41
42 * Sun Nov 6 2005 Stephen Noble <support@dungog.net>
43 - db value to block ports changed
44 - ncsa_auth password file changed
45 - [1.2-2]
46
47 * Fri Sep 16 2005 Stephen Noble <support@dungog.net>
48 - SME7 initial version
49 - runs under daemontools
50 - for DG 2.8.0.6-el4 no patches
51 - [1.2-1]
52
53 <snip>
54 * Tue Nov 6 2001 Stephen Noble <stephen@dungog.net> 0.1-1
55 - initial release
56
57 %prep
58 %setup
59
60 %build
61 perl createlinks
62
63 mkdir -p root/etc/e-smith/db/configuration/defaults/dansguardian
64 echo "service" > root/etc/e-smith/db/configuration/defaults/dansguardian/type
65 echo "enabled" > root/etc/e-smith/db/configuration/defaults/dansguardian/status
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
70 rm -f %{name}-%{version}-filelist
71 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
72 --file '/etc/cron.weekly/dansguardian-logrotate' 'attr(0755,root,root)' \
73 > %{name}-%{version}-filelist
74 echo "%doc COPYING" >> %{name}-%{version}-filelist
75
76 %clean
77 cd ..
78 rm -rf %{name}-%{version}
79
80 %pre
81
82 %preun
83 %post
84 #new installs
85 #if [ $1 = 1 ] ; then
86 #fi
87
88 /etc/e-smith/events/actions/initialize-default-databases
89
90 #gzip old log files
91 if [ -z /var/log/dansguardian/access.log.1 ] ; then
92 gzip -f /var/log/dansguardian/access.log.1
93 fi
94 if [ -z /var/log/dansguardian/access.log.2 ] ; then
95 gzip -f /var/log/dansguardian/access.log.2
96 fi
97 if [ -z /var/log/dansguardian/access.log.3 ] ; then
98 gzip -f /var/log/dansguardian/access.log.3
99 fi
100 if [ -z /var/log/dansguardian/access.log.4 ] ; then
101 gzip -f /var/log/dansguardian/access.log.4
102 fi
103
104 %postun
105
106 #uninstalls
107 if [ $1 = 0 ] ; then
108 /sbin/e-smith/db configuration setprop squid TransparentPort 3128
109 /sbin/e-smith/expand-template /etc/httpd/conf/proxy/proxy.pac
110 /sbin/e-smith/expand-template /etc/squid/squid.conf
111 echo 'optionally run signal-event network-create to complete uninstall'
112 fi
113
114 #&upgrades
115
116 %files -f %{name}-%{version}-filelist
117 %defattr(-,root,root)

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