]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/squid
Timectrl geschrieben.
[people/pmueller/ipfire-2.x.git] / lfs / squid
index 3db063e135655f5e92a29d0c53841d33ea8e018f..e8c631e7cf04b285a267544266213f6bbac5f4c8 100644 (file)
--- a/lfs/squid
+++ b/lfs/squid
@@ -26,7 +26,7 @@
 
 include Config
 
-VER        = 2.6.STABLE3
+VER        = 2.6.STABLE12
 
 THISAPP    = squid-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
@@ -42,7 +42,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 5b181e9c08f35d098e53e54b01fbd092
+$(DL_FILE)_MD5 = a830ccc95cb39cdfa5e5b773add0bb0d
 
 install : $(TARGET)
 
@@ -94,14 +94,33 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && make install
 
        rm -f /etc/squid/squid.conf
-       ln -sf $(CONFIG_ROOT)/proxy/squid.conf /etc/squid/squid.conf
+       ln -sf /var/ipfire/proxy/squid.conf /etc/squid/squid.conf
        rm -f /etc/squid/errors
        ln -sf /usr/lib/squid/errors/English /etc/squid/errors
 
-       -mkdir -p /var/log/cache
-       -mkdir -p /var/log/squid
+       -mkdir -p /var/log/cache /var/log/squid /var/log/updatexlrator
        touch /var/log/squid/access.log
-       chown -R squid:squid /var/log/squid /var/log/cache
+       chown -R squid:squid /var/log/squid /var/log/cache /var/log/updatexlrator
+
+       cp -f $(DIR_SRC)/config/updxlrator/updxlrator /usr/sbin/updxlrator
+       cp -f $(DIR_SRC)/config/updxlrator/checkup /var/ipfire/updatexlrator/bin/checkup
+       cp -f $(DIR_SRC)/config/updxlrator/download /var/ipfire/updatexlrator/bin/download
+       chmod 755 /usr/sbin/updxlrator /var/ipfire/updatexlrator/bin/checkup \
+               /var/ipfire/updatexlrator/bin/download
+
+       ln -fs /bin/false /var/ipfire/updatexlrator/autocheck/cron.daily
+       ln -fs /bin/false /var/ipfire/updatexlrator/autocheck/cron.monthly
+       ln -fs /bin/false /var/ipfire/updatexlrator/autocheck/cron.weekly
+
+       chown -R nobody:nobody /var/ipfire/updatexlrator
+       chown nobody.squid /srv/web/ipfire/html/updatecache
+       chown nobody.squid /srv/web/ipfire/html/updatecache/download
+       chown nobody.squid /srv/web/ipfire/html/updatecache/metadata
+       chmod 775 /srv/web/ipfire/html/updatecache
+       chmod 775 /srv/web/ipfire/html/updatecache/download
+       chmod 775 /srv/web/ipfire/html/updatecache/metadata
+       chmod 755 /var/log/updatexlrator
+
 
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)