89dac65762e7b95fae6e05139412bc7bab440c89
[privoxy.git] / junkbuster.monthly
1 #!/bin/sh
2
3 # ********************************************************************
4
5 #  File        :  $Source: /cvsroot/ijbswa/current/gateway.h,v $
6
7 #  Purpose     :  Downloads updated configuration (blocklists, ...)
8 #                 to the machine.
9
10 #  Copyright   :  Written by and Copyright (C) 2001 the SourceForge
11 #                 IJBSWA team.  http://ijbswa.sourceforge.net
12
13 #                 Based on the Internet Junkbuster originally written
14 #                 by and Copyright (C) 1997 Anonymous Coders and 
15 #                 Junkbusters Corporation.  http://www.junkbusters.com
16
17 #                 This program is free software; you can redistribute it 
18 #                 and/or modify it under the terms of the GNU General
19 #                 Public License as published by the Free Software
20 #                 Foundation; either version 2 of the License, or (at
21 #                 your option) any later version.
22
23 #                 This program is distributed in the hope that it will
24 #                 be useful, but WITHOUT ANY WARRANTY; without even the
25 #                 implied warranty of MERCHANTABILITY or FITNESS FOR A
26 #                 PARTICULAR PURPOSE.  See the GNU General Public
27 #                 License for more details.
28
29 #                 The GNU General Public License should be included with
30 #                 this file.  If not, you can view it at
31 #                 http://www.gnu.org/copyleft/gpl.html
32 #                 or write to the Free Software Foundation, Inc., 59
33 #                 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
34
35 #  Revisions   :
36 #     $Log: gateway.h,v $
37
38
39 # ********************************************************************/
40
41 set -e
42
43 # blocklist
44 wget -q --output-document=/etc/junkbuster/blocklist.new \
45      http://www.waldherr.org/blocklist
46
47 mv -f /etc/junkbuster/blocklist.new /etc/junkbuster/blocklist
48
49 if [ -f /etc/junkbuster/blocklist.local ] ; then
50    cat /etc/junkbuster/blocklist.local >> /etc/junkbuster/blocklist
51 fi
52 chmod 644 /etc/junkbuster/blocklist
53
54 # cookiefile
55 wget -q --output-document=/etc/junkbuster/cookiefile.new \
56      http://www.waldherr.org/cookiefile
57
58 mv -f /etc/junkbuster/cookiefile.new /etc/junkbuster/cookiefile
59
60 if [ -f /etc/junkbuster/cookiefile.local ] ; then
61    cat /etc/junkbuster/cookiefile.local >> /etc/junkbuster/cookiefile
62 fi
63 chmod 644 /etc/junkbuster/cookiefile
64
65 # imagelist
66 wget -q --output-document=/etc/junkbuster/imagelist.new \
67      http://www.waldherr.org/imagelist
68
69 mv -f /etc/junkbuster/imagelist.new /etc/junkbuster/imagelist
70
71 if [ -f /etc/junkbuster/imagelist.local ] ; then
72    cat /etc/junkbuster/imagelist.local >> /etc/junkbuster/imagelist
73 fi
74 chmod 644 /etc/junkbuster/imagelist
75