mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Hinzugefügt:
* URL-Filter git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@185 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -52,7 +52,7 @@ $(TARGET) :
|
||||
# Create all directories
|
||||
for i in addon-lang alcatelusb auth backup backup/sets ca certs cnx_pci crls ddns dhcp dhcpc dmzholes \
|
||||
eagle-usb eciadsl ethernet isdn key langs logging main modem net-traffic nfs optionsfw patches pakfire portfw \
|
||||
ppp private proxy/advanced qos red remote snort time uplinks vpn wireless xtaccess ; do \
|
||||
ppp private proxy/advanced qos red remote snort time urlfilter/autoupdate urlfilter/bin vpn wireless xtaccess ; do \
|
||||
mkdir -p $(CONFIG_ROOT)/$$i; \
|
||||
done
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/ip_conntrack_standalone-patch-for-ipfire.patch
|
||||
|
||||
# give kernel the name ipfire
|
||||
cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/linux-2.4.31-ipfire.patch
|
||||
# cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/linux-2.4.31-ipfire.patch
|
||||
|
||||
ifeq "$(SMP)" ""
|
||||
# Only do this once on the non-SMP pass
|
||||
|
||||
21
lfs/squid
21
lfs/squid
@@ -103,5 +103,26 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
touch /var/log/squid/access.log
|
||||
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
|
||||
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
@@ -75,7 +75,7 @@ $(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-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
|
||||
|
||||
Reference in New Issue
Block a user