FreeBSD Bugzilla – Attachment 245128 Details for
Bug 274027
dns/void-zones-tools: Now kills unbound. Needs to be updated from upstream.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git format-patch, fix broken void-zones-tools
0001-dns-void-zones-tools-unbreak.patch (text/plain), 7.13 KB, created by
Vidar Karlsen
on 2023-09-22 20:53:56 UTC
(
hide
)
Description:
git format-patch, fix broken void-zones-tools
Filename:
MIME Type:
Creator:
Vidar Karlsen
Created:
2023-09-22 20:53:56 UTC
Size:
7.13 KB
patch
obsolete
>From b470cfcd41345ea842a2f1506374368988c0a0bd Mon Sep 17 00:00:00 2001 >From: Vidar Karlsen <vidar@karlsen.tech> >Date: Fri, 22 Sep 2023 22:30:36 +0200 >Subject: [PATCH] dns/void-zones-tools: unbreak > >void-zones-tools downloads a set of pre-defined lists of undesirable >domains and creates "voided" dns zones for Unbound, blocking access to >these domains via dns. > >One of the default lists is no longer maintained, and was removed from >the upstream code. However, there hasn't been released a new version >after the change was made, thus the port has not been updated. >This has not been a problem up until now because the update script has >been downloading an empty file, essentially a no-op in the zone >creation/loading, but at some point today it started serving a domain >parking page, and the HTML of that page is being dumped into the dns >zone file resulting in parse errors and Unbound cannot start. > >While waiting for upstream to tag a new version, I changed the port to >track the latest GitHub commit and bumped PORTREVISION in order to >unbreak the port. > >QA: > poudriere testport: > 13.2-amd64 > 13.2-arm64-aarch64 > 12.4-amd64 > 12.4-i386 > portlint: ok > portclippy: ok > runtime: I installed it on my home dns resolver, works fine > >PR: 274027 >Upstream issue: https://github.com/cyclaero/void-zones-tools/issues/12 >Reported by: Robert William Vesterman >--- > dns/void-zones-tools/Makefile | 3 +- > dns/void-zones-tools/distinfo | 6 +-- > dns/void-zones-tools/files/patch-Makefile | 24 ++++----- > .../files/patch-void-zones-update.sh | 54 ------------------- > 4 files changed, 14 insertions(+), 73 deletions(-) > delete mode 100644 dns/void-zones-tools/files/patch-void-zones-update.sh > >diff --git a/dns/void-zones-tools/Makefile b/dns/void-zones-tools/Makefile >index 3e61be67540c..317403404802 100644 >--- a/dns/void-zones-tools/Makefile >+++ b/dns/void-zones-tools/Makefile >@@ -1,7 +1,7 @@ > PORTNAME= void-zones-tools > DISTVERSIONPREFIX= v > DISTVERSION= 1.0.2 >-PORTREVISION= 7 >+PORTREVISION= 8 > CATEGORIES= dns > > MAINTAINER= vidar@karlsen.tech >@@ -16,6 +16,7 @@ RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss > USES= compiler:c11 > USE_GITHUB= yes > GH_ACCOUNT= cyclaero >+GH_TAGNAME= 204634a > > SUB_FILES= pkg-message > >diff --git a/dns/void-zones-tools/distinfo b/dns/void-zones-tools/distinfo >index 5760c8265575..5a54ab0eb224 100644 >--- a/dns/void-zones-tools/distinfo >+++ b/dns/void-zones-tools/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1503447553 >-SHA256 (cyclaero-void-zones-tools-v1.0.2_GH0.tar.gz) = 5d276049372825c359fd281e1eee94a7771c2649f03e23796a55d7c959043510 >-SIZE (cyclaero-void-zones-tools-v1.0.2_GH0.tar.gz) = 16201 >+TIMESTAMP = 1695409762 >+SHA256 (cyclaero-void-zones-tools-v1.0.2-204634a_GH0.tar.gz) = 70aa40b5f15a5d7e8ffea69e775f0f975cb58ed4768324834ebb68a8e6f92b86 >+SIZE (cyclaero-void-zones-tools-v1.0.2-204634a_GH0.tar.gz) = 16857 >diff --git a/dns/void-zones-tools/files/patch-Makefile b/dns/void-zones-tools/files/patch-Makefile >index 453666088597..eff508c7c245 100644 >--- a/dns/void-zones-tools/files/patch-Makefile >+++ b/dns/void-zones-tools/files/patch-Makefile >@@ -1,19 +1,13 @@ >---- Makefile.orig 2018-08-26 02:54:47 UTC >+--- Makefile.orig 2023-08-28 22:28:23 UTC > +++ Makefile >-@@ -25,15 +25,7 @@ >- >- CC ?= clang >+@@ -26,9 +26,7 @@ >+ CC ?= clang >+ DV != $(CC) -dumpversion > > -.if $(MACHINE) == "i386" || $(MACHINE) == "amd64" || $(MACHINE) == "x86_64" >--CFLAGS = $(CDEFS) -march=native -mssse3 -ffast-math >+-CFLAGS = $(CDEFS) -march=native -mssse3 > -.elif $(MACHINE) == "arm" >--CFLAGS = $(CDEFS) -fsigned-char >--.else >--CFLAGS = $(CDEFS) >--.endif >-- >--CFLAGS += -std=c11 -g0 -Ofast -fstrict-aliasing -Wno-parentheses >-+CFLAGS += -std=c11 -fstrict-aliasing -Wno-parentheses >- PREFIX ?= /usr/local >- >- HEADERS = binutils.h store.h >++.if $(MACHINE) == "arm" >+ CFLAGS = $(CDEFS) -fsigned-char >+ .else >+ CFLAGS = $(CDEFS) >diff --git a/dns/void-zones-tools/files/patch-void-zones-update.sh b/dns/void-zones-tools/files/patch-void-zones-update.sh >deleted file mode 100644 >index 767cde956493..000000000000 >--- a/dns/void-zones-tools/files/patch-void-zones-update.sh >+++ /dev/null >@@ -1,54 +0,0 @@ >---- void-zones-update.sh.orig 2017-08-22 12:36:14 UTC >-+++ void-zones-update.sh >-@@ -47,6 +47,8 @@ fi >- ZONES_DIR="/usr/local/etc/void-zones" >- if [ ! -d "$ZONES_DIR" ]; then >- mkdir -p "$ZONES_DIR" >-+fi >-+if [ ! -f "$ZONES_DIR/my_void_hosts.txt" ]; then >- echo "# white list" > "$ZONES_DIR/my_void_hosts.txt" >- echo "1.1.1.1 my.white.dom" >> "$ZONES_DIR/my_void_hosts.txt" >- echo "" >> "$ZONES_DIR/my_void_hosts.txt" >-@@ -63,9 +65,8 @@ $FETCH -o "$ZONES_DIR/mdl_void_hosts.txt >- $FETCH -o "$ZONES_DIR/away_void_hosts.txt" "https://adaway.org/hosts.txt" >- $FETCH -o "$ZONES_DIR/jdom_void_list.txt" "http://mirror1.malwaredomains.com/files/justdomains" >- $FETCH -o "$ZONES_DIR/ucky_void_host.txt" "https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts" >--$FETCH -o "$ZONES_DIR/w10telm_void_hosts.txt" "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win10/spy.txt" >--$FETCH -o "$ZONES_DIR/w81telm_void_hosts.txt" "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win81/spy.txt" >--$FETCH -o "$ZONES_DIR/w7telm_void_hosts.txt" "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win7/spy.txt" >-+$FETCH -o "$ZONES_DIR/wintelm_void_hosts.txt" "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt" >-+ >- >- if [ ! -f "$ZONES_DIR/pgl_void_hosts.txt" ] ; then >- echo "# No hosts from pgl." > "$ZONES_DIR/pgl_void_hosts.txt" >-@@ -95,17 +96,10 @@ if [ ! -f "$ZONES_DIR/ucky_void_host.txt >- echo "# No hosts from FadeMind/unchecky." > "$ZONES_DIR/ucky_void_host.txt" >- fi >- >--if [ ! -f "$ZONES_DIR/w10telm_void_hosts.txt" ] ; then >-- echo "# No hosts from WindowsSpyBlocker/win10/spy." > "$ZONES_DIR/w10telm_void_hosts.txt" >--fi >-- >--if [ ! -f "$ZONES_DIR/w81telm_void_hosts.txt" ] ; then >-- echo "# No hosts from WindowsSpyBlocker/win81/spy." > "$ZONES_DIR/w81telm_void_hosts.txt" >-+if [ ! -f "$ZONES_DIR/wintelm_void_hosts.txt" ] ; then >-+ echo "# No hosts from WindowsSpyBlocker/hosts/spy." > "$ZONES_DIR/wintelm_void_hosts.txt" >- fi >- >--if [ ! -f "$ZONES_DIR/w7telm_void_hosts.txt" ] ; then >-- echo "# No hosts from WindowsSpyBlocker/win7/spy." > "$ZONES_DIR/w7telm_void_hosts.txt" >--fi >- >- /usr/local/bin/hosts2zones /tmp/local-void.zones \ >- "$ZONES_DIR/my_void_hosts.txt" \ >-@@ -116,9 +110,7 @@ fi >- "$ZONES_DIR/away_void_hosts.txt" \ >- "$ZONES_DIR/jdom_void_list.txt" \ >- "$ZONES_DIR/ucky_void_host.txt" \ >-- "$ZONES_DIR/w10telm_void_hosts.txt" \ >-- "$ZONES_DIR/w81telm_void_hosts.txt" \ >-- "$ZONES_DIR/w7telm_void_hosts.txt" \ >-+ "$ZONES_DIR/wintelm_void_hosts.txt" \ >- "$ZONES_DIR/x_void_list.txt" \ >- "$ZONES_DIR/y_void_list.txt" \ >- "$ZONES_DIR/z_void_list.txt" \ >-- >2.42.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
vidar
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 274027
: 245128