- chown -R squid:squid /var/log/squid /var/log/cache
-
- # URL-Filter
- -mkdir /etc/squidGuard /home/httpd/html/repository
- cp -f $(DIR_CONF)/urlfilter/autoupdate.urls /var/ipfire/urlfilter/autoupdate/autoupdate.urls
- ln -fs /bin/false /var/ipfire/urlfilter/autoupdate/cron.daily
- ln -fs /bin/false /var/ipfire/urlfilter/autoupdate/cron.weekly
- ln -fs /bin/false /var/ipfire/urlfilter/autoupdate/cron.monthly
- cp -f $(DIR_CONF)/urlfilter/squidGuard.conf /var/ipfire/urlfilter/squidGuard.conf
- ln -fs /var/ipfire/urlfilter/squidGuard.conf /etc/squidGuard/squidGuard.conf
- cp -f $(DIR_CONF)/urlfilter/prebuild.pl /var/ipfire/urlfilter/bin/prebuild.pl
- chmod 755 /var/ipfire/urlfilter/bin/prebuild.pl
- cp -f $(DIR_CONF)/urlfilter/autoupdate.pl /var/ipfire/urlfilter/bin/autoupdate.pl
- chmod 755 /var/ipfire/urlfilter/bin/autoupdate.pl
- echo "1.7.1" > /var/ipfire/urlfilter/version
-
- /bin/tar --no-same-owner -xzf $(DIR_CONF)/urlfilter/blacklists.tar.gz -C /var/ipfire/urlfilter
- /usr/bin/perl $(DIR_CONF)/urlfilter/makeconf.pl
- chown -R nobody:nobody /var/ipfire/urlfilter
- chown -R nobody:nobody /home/httpd/html/images/urlfilter
- chown -R nobody:nobody /home/httpd/html/repository
- chown -R squid:squid /var/log/squidGuard
+ chown -R squid:squid /var/log/squid /var/log/cache /var/log/updatexlrator
+
+ cp /usr/lib/squid/cachemgr.cgi /srv/web/ipfire/cgi-bin/cachemgr.cgi
+ chown nobody.nobody /srv/web/ipfire/cgi-bin/cachemgr.cgi
+
+ 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
+ cp -f $(DIR_SRC)/config/updxlrator/convert /var/ipfire/updatexlrator/bin/convert
+ cp -f $(DIR_SRC)/config/updxlrator/lscache /var/ipfire/updatexlrator/bin/lscache
+ cp -f $(DIR_SRC)/config/updxlrator/checkdeaddl /var/ipfire/updatexlrator/bin/checkdeaddl
+
+ cp -f $(DIR_SRC)/config/updxlrator/updxlrator-lib.pl /var/ipfire/updatexlrator//updxlrator-lib.pl
+
+ -mkdir -p /usr/lib/squid/errors.ipfire
+ cp -fr $(DIR_SRC)/config/proxy/errors.ipfire/* /usr/lib/squid/errors.ipfire/
+ chmod 755 /usr/sbin/updxlrator /var/ipfire/updatexlrator/bin/checkup \
+ /var/ipfire/updatexlrator/bin/download \
+ /var/ipfire/updatexlrator/bin/convert \
+ /var/ipfire/updatexlrator/bin/lscache \
+ /var/ipfire/updatexlrator/bin/checkdeaddl
+
+ 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 /var/updatecache
+ chown nobody.squid /var/updatecache/download
+ chown nobody.squid /var/updatecache/metadata
+ chmod 775 /var/updatecache
+ chmod 775 /var/updatecache/download
+ chmod 775 /var/updatecache/metadata
+ chmod 755 /var/log/updatexlrator
+ chmod 755 /srv/web/ipfire/html/images/updbooster
+
+ chown squid:squid /var/log/squid
+ ln -sf /usr/lib/squid /usr/lib/squid/auth
+ cp -f $(DIR_SRC)/config/proxy/proxy.pac /srv/web/ipfire/html/proxy.pac
+ chown nobody.nobody /srv/web/ipfire/html/proxy.pac
+ ln -sf /srv/web/ipfire/html/proxy.pac /srv/web/ipfire/html/wpad.dat