1 |
|
# $Id: smeserver-dansguardian.spec,v 1.7 2009/04/30 10:35:51 dungog Exp $ |
2 |
|
# Authority: dungog |
3 |
|
# Name: Stephen Noble |
4 |
|
|
5 |
%define name smeserver-dansguardian |
%define name smeserver-dansguardian |
6 |
%define version 2.9 |
%define version 2.9 |
7 |
%define release 3 |
%define release 7 |
8 |
|
|
9 |
Summary: Set up dansguardian to filter www content. |
Summary: Set up dansguardian to filter www content. |
10 |
Name: %{name} |
Name: %{name} |
15 |
Group: SMEserver/addon |
Group: SMEserver/addon |
16 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
17 |
Patch0: smeserver-dansguardian-2.9-unblock80.patch |
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 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
22 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
28 |
rpm to setup dansguardian.org web content filter |
rpm to setup dansguardian.org web content filter |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Tue Jun 09 2009 Stephen Noble <support@dungog.net> 2.9-7 |
32 |
|
- undo portblocking on 443 |
33 |
|
|
34 |
|
* Wed Apr 30 2009 Stephen Noble <support@dungog.net> 2.9-6 |
35 |
|
- portblocking now blocks 443 as well as 3128 |
36 |
|
|
37 |
|
* Fri May 30 2008 Stephen Noble <support@dungog.net> 2.9-5 |
38 |
|
- fix portblocking on 8080 |
39 |
|
|
40 |
|
* Fri May 30 2008 Stephen Noble <support@dungog.net> 2.9-4 |
41 |
|
- $dansguardian{portblocking} = yes, blocks external 8080 |
42 |
|
|
43 |
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 2.9-3 |
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 2.9-3 |
44 |
- $dansguardian{portblocking} = yes, just blocks 3128 |
- $dansguardian{portblocking} = yes, just blocks 3128 |
45 |
|
|
83 |
%prep |
%prep |
84 |
%setup |
%setup |
85 |
%patch0 -p1 |
%patch0 -p1 |
86 |
|
%patch1 -p1 |
87 |
|
%patch2 -p1 |
88 |
|
|
89 |
%build |
%build |
90 |
perl createlinks |
perl createlinks |
110 |
|
|
111 |
%preun |
%preun |
112 |
%post |
%post |
|
#new installs |
|
|
#if [ $1 = 1 ] ; then |
|
|
#fi |
|
|
#/etc/e-smith/events/actions/initialize-default-databases |
|
113 |
|
|
114 |
#gzip old log files |
#gzip old log files |
115 |
if [ -z /var/log/dansguardian/access.log.1 ] ; then |
if [ -z /var/log/dansguardian/access.log.1 ] ; then |