]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Made squid 2.7 stable4 for core 17
authorManiacikarus <maniacikarus@ipfire.org>
Tue, 19 Aug 2008 20:46:58 +0000 (22:46 +0200)
committerManiacikarus <maniacikarus@ipfire.org>
Tue, 19 Aug 2008 20:46:58 +0000 (22:46 +0200)
Added to update and 2.3
Added green/blue capabilities to hostapd

config/rootfiles/core/17/files [new file with mode: 0644]
config/rootfiles/core/17/meta [new file with mode: 0644]
config/rootfiles/core/17/update.sh [new file with mode: 0644]
config/rootfiles/updater/filelists/core17
config/rootfiles/updater/update.sh
lfs/squid
src/initscripts/init.d/hostapd

diff --git a/config/rootfiles/core/17/files b/config/rootfiles/core/17/files
new file mode 100644 (file)
index 0000000..d9decc4
--- /dev/null
@@ -0,0 +1,3 @@
+etc/squid
+usr/lib/squid
+usr/sbin/squid
\ No newline at end of file
diff --git a/config/rootfiles/core/17/meta b/config/rootfiles/core/17/meta
new file mode 100644 (file)
index 0000000..d547fa8
--- /dev/null
@@ -0,0 +1 @@
+DEPS=""
diff --git a/config/rootfiles/core/17/update.sh b/config/rootfiles/core/17/update.sh
new file mode 100644 (file)
index 0000000..aed2378
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+. /opt/pakfire/lib/functions.sh
+/usr/local/bin/backupctrl exclude >/dev/null 2>&1
+/etc/init.d/squid stop
+extract_files
+/etc/init.d/squid start
+perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
index 69ee850a7365f6be69560f0e9ec8faf356969848..033b3dfd73627e684c94e06a234c2f76ab347cee 100644 (file)
@@ -13,3 +13,6 @@ etc/rc.d/init.d/checkfstab
 etc/rc.d/init.d/networking/any
 etc/rc.d/init.d/networking/red
 etc/rc.d/rcsysinit.d/S19checkfstab
+etc/squid
+usr/lib/squid
+usr/sbin/squid
index aef969b821c4fd827871f5352a72ae9ce4d51d14..7a4333f87eaab12a5cfd5e577ea5bc38e424f4fd 100755 (executable)
@@ -70,11 +70,23 @@ mv /boot/grub/grub.conf /boot/grub/grub-old.conf
 #
 rm -rf /lib/modules/$KVER-ipfire
 #
+# Stopping Squid
+#
+echo
+echo Stopping Squid ...
+/etc/init.d/squid stop
+#
 # Unpack the updated files
 #
 echo
 echo Unpack the updated files ...
 extract_files
+#
+# Starting Squid
+#
+echo
+echo Starting Squid ...
+/etc/init.d/squid start
 # 
 # Modify grub.conf
 #
index 194351285604484b1219ab72d6aeefef6d020d9d..b4d14b0ff791777c4ae59638f5ddeb494496ad47 100644 (file)
--- a/lfs/squid
+++ b/lfs/squid
@@ -24,7 +24,7 @@
 
 include Config
 
-VER        = 2.7.STABLE3
+VER        = 2.7.STABLE4
 
 THISAPP    = squid-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
@@ -40,7 +40,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 9756d9cf9c197356346d1f931046d3a4
+$(DL_FILE)_MD5 = 88ea575a67d35013ec786761d8a14f33
 
 install : $(TARGET)
 
index bbdb24f44e0697edc1a98d0cb0b812aa6176ab36..95c82712072163ff12b2058f69f18b7899e569ba 100644 (file)
@@ -34,12 +34,18 @@ case "${1}" in
 
                # Bring blue up (but not at boot)
                if [ "$(basename $0)" == "hostapd" ]; then
-                   /etc/rc.d/init.d/networking/blue start
-                   if [ -f /var/ipfire/dhcp/enable_blue ]; then
-                       /etc/rc.d/init.d/dhcp restart
-                   fi
+                       
+                       if [ "$(INTERFACE)" == "blue0" ]; then
+                               /etc/rc.d/init.d/networking/blue start
+                       elif [ "$(INTERFACE)" == "green0" ]; then
+                               /etc/rc.d/init.d/networking/green start
+                       fi
+                       
+                       if [ -f /var/ipfire/dhcp/enable_blue || -f -f /var/ipfire/dhcp/enable_green ]; then
+                               /etc/rc.d/init.d/dhcp restart
+                       fi
                fi
-                ;;
+;;
 
         stop)
                boot_mesg "Stopping hostapd..."