1 |
# $Id$ |
# $Id: smeserver-dansguardian.spec,v 1.6 2008/11/25 16:20:19 slords Exp $ |
2 |
# Authority: dungog |
# Authority: dungog |
3 |
# Name: Stephen Noble |
# 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 6 |
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 |
|
Patch3: smeserver-dansguardian-2.9-block443.patch |
21 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
BuildRoot: %{_tmppath}/%{name}-buildroot |
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
29 |
rpm to setup dansguardian.org web content filter |
rpm to setup dansguardian.org web content filter |
30 |
|
|
31 |
%changelog |
%changelog |
32 |
|
* Wed Apr 30 2009 Stephen Noble <support@dungog.net> 2.9-6 |
33 |
|
- portblocking now blocks 443 as well as 3128 |
34 |
|
|
35 |
|
* Fri May 30 2008 Stephen Noble <support@dungog.net> 2.9-5 |
36 |
|
- fix portblocking on 8080 |
37 |
|
|
38 |
|
* Fri May 30 2008 Stephen Noble <support@dungog.net> 2.9-4 |
39 |
|
- $dansguardian{portblocking} = yes, blocks external 8080 |
40 |
|
|
41 |
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 2.9-3 |
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 2.9-3 |
42 |
- $dansguardian{portblocking} = yes, just blocks 3128 |
- $dansguardian{portblocking} = yes, just blocks 3128 |
43 |
|
|
81 |
%prep |
%prep |
82 |
%setup |
%setup |
83 |
%patch0 -p1 |
%patch0 -p1 |
84 |
|
%patch1 -p1 |
85 |
|
%patch2 -p1 |
86 |
|
%patch3 -p1 |
87 |
|
|
88 |
%build |
%build |
89 |
perl createlinks |
perl createlinks |
109 |
|
|
110 |
%preun |
%preun |
111 |
%post |
%post |
|
#new installs |
|
|
#if [ $1 = 1 ] ; then |
|
|
#fi |
|
|
#/etc/e-smith/events/actions/initialize-default-databases |
|
112 |
|
|
113 |
#gzip old log files |
#gzip old log files |
114 |
if [ -z /var/log/dansguardian/access.log.1 ] ; then |
if [ -z /var/log/dansguardian/access.log.1 ] ; then |