summaryrefslogtreecommitdiff
path: root/network/hostsblock/no-dnsmasq.patch
blob: ec79da210e48292facd9b1447f61996ee4e07350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff -Nur hostsblock-0.12.3/rc.conf hostsblock-0.12.3a/rc.conf
--- hostsblock-0.12.3/rc.conf	2013-10-31 09:02:49.000000000 -0700
+++ hostsblock-0.12.3a/rc.conf	2013-12-27 19:33:54.592390930 -0800
@@ -34,8 +34,7 @@
 # blocklists. If not using a dns caching daemon like dnsmasq, this should be
 # /etc/hosts. Include hosts file entries which you want to maintain in the
 # "hostshead" entry, such as your loopback device (e.g. 127.0.0.1 localhosts)
-hostsfile="/etc/hosts.block"
-#hostsfile="/etc/hosts" # If not using a dns caching daemon
+hostsfile="/etc/hosts" # If not using a dns caching daemon
 
 # REDIRECT URL. Url to which blocked hosts will be redirect, either 0.0.0.0 or
 # 127.0.0.1. This replaces any entries to 0.0.0.0 and 127.0.0.1. If you run a
@@ -56,17 +55,9 @@
 # "addn-hosts=/etc/hosts.block", where /etc/hosts.block is your final hosts file
 # (see the "hostsfile" variable). This routine will be also run whenever changes
 # are made via hostsblock-urlcheck.
-postprocess(){                #
-    /etc/rc.d/dnsmasq restart # For dnsmasq under initscripts
-}                             #
-
-#postprocess(){                        #
-#    systemctl restart dnsmasq.service # For dnsmasq under systemd
-#}                                     #
-
-#postprocess(){ #
-#    /bin/true  # If not using a dns caching daemon
-#}              #
+postprocess(){ #
+    /bin/true  # If not using a dns caching daemon
+}              #
 
 # HEAD FILE. File containing hosts file entries which you want at the beginning
 # of the resultant hosts file, e.g. for loopback devices and IPV6 entries. Use
@@ -74,8 +65,7 @@
 # /etc/hosts so as to preserve your loopback devices. Give hostshead="0" to
 # disable this feature. For those targeting /etc/hosts, it is advisable to copy
 # their old /etc/hosts file to this file so as to preserve existing entries.
-hostshead="0"
-#hostshead="/etc/hostsblock/hosts.head" # If not using dns caching.
+hostshead="/etc/hostsblock/hosts.head" # If not using dns caching.
 
 # BLACKLISTED SUBDOMAINS. File containing specific subdomains to blacklist which
 # may not be in the downloaded blacklists. Be sure to provide not just the
@@ -106,7 +96,6 @@
 'http://hosts-file.net/ad_servers.asp'			# anti-ads-only version of hpHosts main list (hosts-file.net)
 ## RECOMMENDED LISTS
 'http://hosts-file.net/hphosts-partial.asp'		# hpHosts inter-release (hosts-file.net/)
-'http://hostsfile.org/Downloads/BadHosts.unx.zip'	# anti-malware (hostsfile.org/hosts.html)
 'http://hostsfile.mine.nu/Hosts.zip'			# anti-ad (hostsfile.mine.nu)
 'http://someonewhocares.org/hosts/hosts'		# anti-ad and anti-malware (someonewhocares.org/hosts/)
 'http://sysctl.org/cameleon/hosts'			# anti-ad (sysctl.org/cameleon/)