RRDTool Fix
[ipfire-2.x.git] / lfs / squidguard
index a6c94b7..39aa7c0 100644 (file)
@@ -75,10 +75,33 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squidGuard-$(VER)-ipfire.patch
        cd $(DIR_APP) && ./configure --prefix=/usr --datadir=/usr/share \
                --sysconfdir=/etc --localstatedir=/var --infodir=/usr/info --mandir=/usr/man  \
-               --with-sg-config=/var/ipfire/proxy/squidguard.conf \
-               --with-sg-logdir=/var/log/squidguard --with-sg-dbhome=/var/lib/squidguard \
+               --with-sg-config=/var/ipfire/urlfilter/squidGuard.conf \
+               --with-sg-logdir=/var/log/squidGuard --with-sg-dbhome=/var/lib/squidguard \
                --with-db=/usr --with-db-inc=/usr/include --with-db-lib=/usr/lib
-       cd $(DIR_APP) && make
+       cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
+
+       # 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
+       chmod 755 /home/httpd/html/images/urlfilter
+       chmod 644 /home/httpd/html/images/urlfilter/*
+       chown -R nobody:nobody /home/httpd/html/repository
+       chown -R squid:squid /var/log/squidGuard
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)