include Config
-VER = 2.6.STABLE3
+VER = 2.6.STABLE9
THISAPP = squid-$(VER)
DL_FILE = $(THISAPP).tar.bz2
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 5b181e9c08f35d098e53e54b01fbd092
+$(DL_FILE)_MD5 = 95997d6cb38fdb562ecb790c553f9cfc
install : $(TARGET)
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 -s /bin/false /var/ipfire/updatexlrator/autocheck/cron.daily
+ ln -s /bin/false /var/ipfire/updatexlrator/autocheck/cron.monthly
+ ln -s /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)