]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
removed custom background option for urlfilter option is no longer
authormaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 23 Dec 2007 17:33:32 +0000 (17:33 +0000)
committermaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 23 Dec 2007 17:33:32 +0000 (17:33 +0000)
supported
reverted cups and squid
change QoS CTRL script
changed exit codes for the red init scripts

git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1129 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

16 files changed:
config/rootfiles/core/2/files
config/rootfiles/core/2/update.sh
doc/packages-list.txt
html/cgi-bin/urlfilter.cgi
lfs/cups
lfs/squid
make.sh
src/initscripts/init.d/networking/red.down/10-ipsec
src/initscripts/init.d/networking/red.down/10-ovpn
src/initscripts/init.d/networking/red.up/10-multicast
src/initscripts/init.d/networking/red.up/30-ddns
src/initscripts/init.d/networking/red.up/40-ipac
src/initscripts/init.d/networking/red.up/50-ipsec
src/initscripts/init.d/networking/red.up/50-ovpn
src/initscripts/init.d/networking/red.up/99-pakfire-update
src/misc-progs/qosctrl.c

index ad2c9cbaa1c1a9a4944c4185953f3d91ca310e06..d32d11235b8f4cd082bd16b4053b94db5fa94121 100644 (file)
@@ -2,8 +2,18 @@ srv/web/ipfire/cgi-bin/qos.cgi
 srv/web/ipfire/cgi-bin/pakfire.cgi
 srv/web/ipfire/cgi-bin/ids.cgi
 srv/web/ipfire/cgi-bin/index.cgi
+srv/web/ipfire/cgi-bin/urlfilter.cgi
 srv/web/ipfire/html/redirect.cgi
 var/ipfire/qos/bin/makeqosscripts.pl
 var/ipfire/outgoing/bin/outgoingfw.pl
 etc/sysconfig/rc.local
+etc/rc.d/init.d/networking/red.down/10-ipsec
+etc/rc.d/init.d/networking/red.down/10-ovpn
+etc/rc.d/init.d/networking/red.up/10-multicast
+etc/rc.d/init.d/networking/red.up/30-ddns
+etc/rc.d/init.d/networking/red.up/40-ipac
+etc/rc.d/init.d/networking/red.up/50-ipsec
+etc/rc.d/init.d/networking/red.up/50-ovpn
+etc/rc.d/init.d/networking/red.up/99-pakfire-update
 etc/ppp/options
+usr/local/bin/qosctrl
index 505a4de0b0812b18095fb599b9b809a9cbc0f5c9..2b2622a86a26dac4d083dae4446de4aa7bc84050 100644 (file)
@@ -7,4 +7,4 @@ if [ -e "/var/ipfire/qos/enable" ]; then
  /usr/local/bin/qosctrl generate
  /usr/local/bin/qosctrl start
 fi
-/usr/local/bin/outgoingfwctrl
+/usr/local/bin/outgoingfwctrl restart
index 19f913ecf3ad0031999194724657a801de2f909c..44cf88f37b677821d27cd6d0b6f9d636c466935b 100644 (file)
@@ -56,7 +56,6 @@
 * coreutils-5.96
 * cpio-2.6
 * cups-1.2.12
-* cups-1.3.4
 * cups-1.3.5
 * curl-7.15.3
 * cyrus-imapd-2.2.12
 * libshout-2.2.2
 * libsigc++-2.0.17
 * libtool-1.5.22
-* libtorrent-0.11.6
 * libtorrent-0.11.9
 * libupnp-1.3.1
 * libusb-0.1.12
 * slang-1.4.9
 * smartmontools-5.36
 * snort-2.6.1.4
-* snort-2.8.0.1
 * sox-12.18.1
 * spandsp-0.0.3pre24
 * squashfs3.2-r2
 * squid-2.6.STABLE16
 * squid-3.0.STABLE1
 * squid-graph-3.2
-* squidGuard-1.2.0
 * squidGuard-1.3
 * sudo-1.6.8p12
 * sysfsutils-1.3.0
index dc123c13ba578ffde85248075cc1c4d4586e3d04..20390372cb945e50aae18d5929af2012cdcd1567 100644 (file)
@@ -159,7 +159,6 @@ if (($filtersettings{'ACTION'} eq $Lang::tr{'save'}) ||
     ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter save and restart'}) ||
     ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter upload file'}) ||
     ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter remove file'}) ||
-    ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter upload background'}) ||
     ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter upload blacklist'}) ||
     ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter backup'}) ||
     ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter restore'}))
@@ -217,18 +216,7 @@ if (($filtersettings{'ACTION'} eq $Lang::tr{'save'}) ||
                }
 
        }
-       
-       if ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter upload background'})
-       {
-               &Header::getcgihash(\%filtersettings, {'wantfile' => 1, 'filevar' => 'BACKGROUND'});
 
-               if (copy($filtersettings{'BACKGROUND'}, "/home/httpd/html/images/urlfilter/background.jpg") != 1)
-               {
-                       $errormessage = $!;
-                       goto ERROR;
-               }
-       }
-       
        if ($filtersettings{'ACTION'} eq $Lang::tr{'urlfilter upload blacklist'})
        {
                &Header::getcgihash(\%filtersettings, {'wantfile' => 1, 'filevar' => 'UPDATEFILE'});
@@ -244,11 +232,11 @@ if (($filtersettings{'ACTION'} eq $Lang::tr{'save'}) ||
                        $errormessage = $!;
                        goto ERROR;
                }
-               
+
                if (!(-d "${General::swroot}/urlfilter/update")) { mkdir("${General::swroot}/urlfilter/update"); }
 
                my $exitcode = system("/bin/tar --no-same-owner -xzf ${General::swroot}/urlfilter/blacklists.tar.gz -C ${General::swroot}/urlfilter/update");
-               
+
                if ($exitcode > 0)
                {
                        $errormessage = $Lang::tr{'urlfilter tar error'};
@@ -326,7 +314,7 @@ if (($filtersettings{'ACTION'} eq $Lang::tr{'save'}) ||
                {
                        $errormessage = $!;
                }
-               
+
                my $exitcode = system("/bin/tar --no-same-owner --preserve-permissions -xzf ${General::swroot}/urlfilter/backup.tar.gz -C ${General::swroot}/urlfilter/restore");
                if ($exitcode > 0)
                {
@@ -801,7 +789,7 @@ if (($besettings{'ACTION'} eq $Lang::tr{'urlfilter import blacklist'}) && ($bese
                {
                        $errormessage = $!;
                } else {
-               
+
                        my $exitcode = system("/bin/tar --no-same-owner --preserve-permissions -xzf $editdir/blacklist.tar.gz -C $editdir");
                        if ($exitcode > 0)
                        {
@@ -1478,17 +1466,6 @@ print <<END
        <td>&nbsp;</td>
 </tr>
 </table>
-<table width='100%'>
-<tr>
-       <td class='base'><b>$Lang::tr{'urlfilter background image'}</b></td>
-</tr>
-<tr>
-       <td><br>$Lang::tr{'urlfilter background text'}:</td>
-</tr>
-<tr>
-       <td><input type='file' name='BACKGROUND' size='40' /> &nbsp; <input type='submit' name='ACTION' value='$Lang::tr{'urlfilter upload background'}' /></td>
-</tr>
-</table>
 <hr size='1'>
 <table width='100%'>
 <tr>
@@ -2795,7 +2772,7 @@ sub writeconfigfile
                        if ($filtersettings{'SHOW_URL'} eq 'on') { $redirect .= "&url=%u"; }
                        if ($filtersettings{'SHOW_IP'} eq 'on') { $redirect .= "&ip=%a"; }
                        $redirect  =~ s/^&/?/;
-                       $redirect = "http:\/\/$netsettings{'GREEN_ADDRESS'}:$http_port\/redirect.cgi".$redirect; 
+                       $redirect = "http:\/\/$netsettings{'GREEN_ADDRESS'}:$http_port\/redirect.cgi".$redirect;
                } else {
                        $redirect="http:\/\/$netsettings{'GREEN_ADDRESS'}:$http_port\/redirect.cgi";
                }
@@ -3040,7 +3017,7 @@ sub writeconfigfile
                print FILE "}\n\n";
                $category = $blacklist;
        }
-       
+
        print FILE "dest files {\n";
        print FILE "    expressionlist custom\/blocked\/files\n";
        if ($filtersettings{'ENABLE_LOG'} eq 'on')
index 4c3813f4abe7f0badd4bc1a9c65586cdce181fe6..f6864f16a2167ec1b0ee58799d53954ae21ab777 100644 (file)
--- a/lfs/cups
+++ b/lfs/cups
@@ -24,7 +24,7 @@
 
 include Config
 
-VER        = 1.3.5
+VER        = 1.2.12
 
 THISAPP    = cups-$(VER)
 DL_FILE    = $(THISAPP)-source.tar.bz2
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/cups-$(VER)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = cups
-PAK_VER    = 2
+PAK_VER    = 1
 
 DEPS       = "ghostscript"
 
@@ -44,7 +44,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 355705c528e9a8d0d439da15454d79a6
+$(DL_FILE)_MD5 = d410658468384b5ba5d04a808f6157fe
 
 install : $(TARGET)
 
index 4f48897b52d32209a846b633b258618152b84d5f..5f5cb1d1fcc91ae93f9770142ef37880325dea8f 100644 (file)
--- a/lfs/squid
+++ b/lfs/squid
@@ -24,7 +24,7 @@
 
 include Config
 
-VER        = 3.0.STABLE1
+VER        = 2.6.STABLE16
 
 THISAPP    = squid-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
@@ -40,7 +40,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = ec7458b00a68341854d91e7f6ece56ba
+$(DL_FILE)_MD5 = 849bee6f269e6c773f215fd4b41de0e3
 
 install : $(TARGET)
 
diff --git a/make.sh b/make.sh
index 3274b94c2877a18c7f8d7f6f4aa3470290f07ce4..26728db55854e228a4183ff515f5a82274960c2d 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -523,6 +523,7 @@ buildipfire() {
   ipfiremake lsof
   ipfiremake centerim
   ipfiremake br2684ctl
+  ipfiremake squidclam
 }
 
 buildinstaller() {
index 301e81468dcad51f757ff94204db032b393a7c11..9ba1c1be2120e0c598f908aff69f789b8577e4b0 100644 (file)
@@ -1,3 +1,5 @@
 #!/bin/bash
 
-/usr/local/bin/ipsecctrl D
+/usr/local/bin/ipsecctrl D &
+
+exit 0
index 8823a7e5eb0c613de48a01869dab4fdcbb9c558d..59e95addf4719b86a260dda53dd4d01bae3ef121 100644 (file)
@@ -1,3 +1,5 @@
 #!/bin/bash
 
-/usr/local/bin/openvpnctrl -k
+/usr/local/bin/openvpnctrl -k &
+
+exit 0
index 101934dc7d4eaf4e1a75efceb09f3d4dd48fb93c..0e9fd30290d6421d6b596b3be651f8914b4a73ef 100644 (file)
@@ -5,3 +5,5 @@
 IFACE=`cat /var/ipfire/red/iface 2>/dev/null | tr -d '\012'`
 
 [ "$IFACE" != "" ] && ifconfig $IFACE -multicast
+
+exit 0
index 20ea743de9f5cd4bcb498347ec9e9a90c17dc3a2..66d6fdb60a3d959ea2a46ce682f0181cfbd76344 100644 (file)
@@ -1,3 +1,5 @@
 #!/bin/bash
 
 /usr/local/bin/setddns.pl -f
+
+exit 0
index 82bca9eccd4ea3e9862d3b48e7be4f7c31160073..994dc50a279c0ac7d316c38303b032598e06d1e1 100644 (file)
@@ -3,3 +3,4 @@
 /etc/rc.d/helper/writeipac.pl
 /usr/sbin/fetchipac -S
 
+exit 0
index 325576d150b74341de9fd55d1e4701f69cf1670f..99abf4592397f3e000c8ffcf3d178fc36b4e59ad 100644 (file)
@@ -4,3 +4,4 @@ eval $(/usr/local/bin/readhash /var/ipfire/vpn/settings)
 
 sleep $VPN_DELAYED_START && /usr/local/bin/ipsecctrl S &
 
+exit 0
index c303c040a56434a09f8e343a17e68f07553fb520..ace5ee2d36df523f79e4cdebf7398fc6d969e8a7 100644 (file)
@@ -2,3 +2,4 @@
 
 /usr/local/bin/openvpnctrl -s
 
+exit 0
index 067bc33cc1bdf7ee309148333c90db78eaed31a6..3cc79a107bd771899496b28360be7dc0e6991766 100644 (file)
@@ -1,3 +1,5 @@
 #!/bin/sh
 
 nice -n 10 /opt/pakfire/pakfire update >/dev/null 2>&1 &
+
+exit 0
index 1749ef81a2bff11576a1eec7ce7a38f7eed6839d..8a8f07ebc099eb5c17613bf4c89f1bfc5a8a1a06 100644 (file)
@@ -25,9 +25,6 @@ int main(int argc, char *argv[]) {
                exit(1);
        }
        
-       if (strcmp(argv[1], "generate") == 0)
-               safe_system("/usr/bin/perl /var/ipfire/qos/bin/makeqosscripts.pl > /var/ipfire/qos/bin/qos.sh");
-       
        if ((fd = open("/var/ipfire/qos/bin/qos.sh", O_RDONLY)) != -1) {
                close(fd);
        } else {
@@ -44,6 +41,8 @@ int main(int argc, char *argv[]) {
                safe_system("/var/ipfire/qos/bin/qos.sh status");
        } else if (strcmp(argv[1], "restart") == 0) {
                safe_system("/var/ipfire/qos/bin/qos.sh restart");
+       } else if (strcmp(argv[1], "generate") == 0) {
+               safe_system("/usr/bin/perl /var/ipfire/qos/bin/makeqosscripts.pl > /var/ipfire/qos/bin/qos.sh");
        } else {
                fprintf(stderr, "\nBad argument given.\n\nqosctrl (start|stop|restart|status|generate)\n\n");
                exit(1);