From af249d3fea8a24f5d549d21b1cd48c19b87b0d6b Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Sun, 13 Mar 2022 15:22:55 +0000 Subject: [PATCH] pdnsd-alt: sync upstream --- pdnsd-alt/Makefile | 2 +- pdnsd-alt/files/pdnsd.init | 0 pdnsd-alt/patches/010-no-doc-and-test.patch | 42 +++++++++++++++ ...in-kernel_5.15.patch => 020-headers.patch} | 52 ++++++++++++------- 4 files changed, 76 insertions(+), 20 deletions(-) mode change 100644 => 100755 pdnsd-alt/files/pdnsd.init create mode 100644 pdnsd-alt/patches/010-no-doc-and-test.patch rename pdnsd-alt/patches/{002-fix-pdnsd-alt-build-error-within-kernel_5.15.patch => 020-headers.patch} (51%) diff --git a/pdnsd-alt/Makefile b/pdnsd-alt/Makefile index f6b1765..e2c1aac 100644 --- a/pdnsd-alt/Makefile +++ b/pdnsd-alt/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pdnsd PKG_VERSION:=1.2.9b-par -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/shadowsocks/pdnsd.git diff --git a/pdnsd-alt/files/pdnsd.init b/pdnsd-alt/files/pdnsd.init old mode 100644 new mode 100755 diff --git a/pdnsd-alt/patches/010-no-doc-and-test.patch b/pdnsd-alt/patches/010-no-doc-and-test.patch new file mode 100644 index 0000000..b0a4104 --- /dev/null +++ b/pdnsd-alt/patches/010-no-doc-and-test.patch @@ -0,0 +1,42 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,5 +1,5 @@ + +-SUBDIRS = src doc contrib ++SUBDIRS = src contrib + + EXTRA_DIST = version ChangeLog.old COPYING.BSD README.par README.par.old PKGBUILD + +--- a/Makefile.in ++++ b/Makefile.in +@@ -196,7 +196,7 @@ threadlib = @threadlib@ + top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-SUBDIRS = src doc contrib ++SUBDIRS = src contrib + EXTRA_DIST = version ChangeLog.old COPYING.BSD README.par README.par.old PKGBUILD + all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -15,7 +15,7 @@ EXTRA_DIST = make_rr_types_h.pl rr_types + + ## Try to do this last + +-SUBDIRS = . pdnsd-ctl rc test ++SUBDIRS = . pdnsd-ctl + + $(pdnsd_OBJECTS): rr_types.h + +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -215,7 +215,7 @@ pdnsd_SOURCES = conf-parser.c conff.c co + freebsd_netinet_ip_icmp.h + + EXTRA_DIST = make_rr_types_h.pl rr_types.in +-SUBDIRS = . pdnsd-ctl rc test ++SUBDIRS = . pdnsd-ctl + all: all-recursive + + .SUFFIXES: diff --git a/pdnsd-alt/patches/002-fix-pdnsd-alt-build-error-within-kernel_5.15.patch b/pdnsd-alt/patches/020-headers.patch similarity index 51% rename from pdnsd-alt/patches/002-fix-pdnsd-alt-build-error-within-kernel_5.15.patch rename to pdnsd-alt/patches/020-headers.patch index d24521c..d5639b5 100644 --- a/pdnsd-alt/patches/002-fix-pdnsd-alt-build-error-within-kernel_5.15.patch +++ b/pdnsd-alt/patches/020-headers.patch @@ -1,16 +1,3 @@ -From 09171eef574503a82342a8b23d4a55b8a5286724 Mon Sep 17 00:00:00 2001 -From: W_Y_CPP <383152993@qq.com> -Date: Sat, 1 Jan 2022 13:05:37 +0900 -Subject: [PATCH] fix pdnsd alt build error with kernel_5.15 - ---- - src/conff.h | 2 +- - src/dns.h | 2 +- - src/netdev.c | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/src/conff.h b/src/conff.h -index a07b1561b..c66d210aa 100644 --- a/src/conff.h +++ b/src/conff.h @@ -32,7 +32,7 @@ @@ -22,8 +9,6 @@ index a07b1561b..c66d210aa 100644 #include "ipvers.h" #include "list.h" -diff --git a/src/dns.h b/src/dns.h -index 0f6a4ac1e..ecc9680b2 100644 --- a/src/dns.h +++ b/src/dns.h @@ -27,7 +27,7 @@ @@ -35,8 +20,39 @@ index 0f6a4ac1e..ecc9680b2 100644 #include #include #include "rr_types.h" -diff --git a/src/netdev.c b/src/netdev.c -index bd5f8c451..bfd5046df 100644 +--- a/src/dns_answer.c ++++ b/src/dns_answer.c +@@ -37,7 +37,7 @@ + #include + #include + #ifdef HAVE_SYS_POLL_H +-#include ++#include + #endif + #include + #include +--- a/src/dns_query.c ++++ b/src/dns_query.c +@@ -23,7 +23,7 @@ + #include + #include + #ifdef HAVE_SYS_POLL_H +-#include ++#include + #endif + #include + #include +--- a/src/icmp.c ++++ b/src/icmp.c +@@ -28,7 +28,7 @@ + + #include + #ifdef HAVE_SYS_POLL_H +-#include ++#include + #endif + #include + #include --- a/src/netdev.c +++ b/src/netdev.c @@ -59,7 +59,7 @@ @@ -48,5 +64,3 @@ index bd5f8c451..bfd5046df 100644 #include #include #include --- -2.17.1