1 |
|
# $Id: smeserver-dansguardian.spec,v 1.3 2008/05/30 08:18:02 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 5 |
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 |
|
* Fri May 30 2008 Stephen Noble <support@dungog.net> 2.9-5 |
32 |
|
- fix portblocking on 8080 |
33 |
|
|
34 |
|
* Fri May 30 2008 Stephen Noble <support@dungog.net> 2.9-4 |
35 |
|
- $dansguardian{portblocking} = yes, blocks external 8080 |
36 |
|
|
37 |
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 2.9-3 |
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 2.9-3 |
38 |
- $dansguardian{portblocking} = yes, just blocks 3128 |
- $dansguardian{portblocking} = yes, just blocks 3128 |
39 |
|
|
77 |
%prep |
%prep |
78 |
%setup |
%setup |
79 |
%patch0 -p1 |
%patch0 -p1 |
80 |
|
%patch1 -p1 |
81 |
|
%patch2 -p1 |
82 |
|
|
83 |
%build |
%build |
84 |
perl createlinks |
perl createlinks |
104 |
|
|
105 |
%preun |
%preun |
106 |
%post |
%post |
|
#new installs |
|
|
#if [ $1 = 1 ] ; then |
|
|
#fi |
|
|
#/etc/e-smith/events/actions/initialize-default-databases |
|
107 |
|
|
108 |
#gzip old log files |
#gzip old log files |
109 |
if [ -z /var/log/dansguardian/access.log.1 ] ; then |
if [ -z /var/log/dansguardian/access.log.1 ] ; then |