summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsekiya <sekiya@pkgsrc.org>2022-12-11 21:17:53 +0000
committersekiya <sekiya@pkgsrc.org>2022-12-11 21:17:53 +0000
commit00253ec4dfb3106261f88d7ba6989b1f5013bd85 (patch)
treee702548fb25ee805e82383f03053937e1c52b24b
parentdbea410cd7a4799810cbb4813ed92598be3af290 (diff)
downloadpkgsrc-00253ec4dfb3106261f88d7ba6989b1f5013bd85.tar.gz
Fix shell portability (from taca@)
-rw-r--r--net/bind918/distinfo3
-rw-r--r--net/bind918/patches/patch-bin_tests_system_keyfromlabel_tests.sh24
2 files changed, 26 insertions, 1 deletions
diff --git a/net/bind918/distinfo b/net/bind918/distinfo
index b6aed3ccf2e..74ee7ebaf3d 100644
--- a/net/bind918/distinfo
+++ b/net/bind918/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2022/12/11 01:57:55 sekiya Exp $
+$NetBSD: distinfo,v 1.2 2022/12/11 21:17:53 sekiya Exp $
BLAKE2s (bind-9.18.9.tar.xz) = 8c3f2dcb57205959f78c02fd32a12d0897050897af9136b58972fde41468ec55
SHA512 (bind-9.18.9.tar.xz) = 7d9bca47e29e8634416ab52819d78ce4ec6196c0dcbd9fe95a24687337f71c69b6472cf20bf49ea0ae1751a861944f354f9122acfb01780f51278ad4a3fdd817
@@ -6,6 +6,7 @@ Size (bind-9.18.9.tar.xz) = 5281732 bytes
SHA1 (patch-bin_named_main.c) = 4e4a763c478f1fcecb7e65968cf6ca20dacf01f1
SHA1 (patch-bin_named_os.c) = 5ecb0883076575d8ac5fcad68f9daad6c9be0d0b
SHA1 (patch-bin_named_server.c) = 6e59d3f637ebb829eec2f76ba7c350fb5cf9be6d
+SHA1 (patch-bin_tests_system_keyfromlabel_tests.sh) = 63a1516b573adabe6ff2719532fd58bcf3ecd65b
SHA1 (patch-config.h.in) = 6072793048cdf590863046355eeffa1d93524c36
SHA1 (patch-configure.ac) = 7eecb2c390168566b2320791cd185530c7896c21
SHA1 (patch-lib_dns_byaddr.c) = 647ddaaaf040233e18d1a87d83bc2bd63d2a20e3
diff --git a/net/bind918/patches/patch-bin_tests_system_keyfromlabel_tests.sh b/net/bind918/patches/patch-bin_tests_system_keyfromlabel_tests.sh
new file mode 100644
index 00000000000..9b4e86e839b
--- /dev/null
+++ b/net/bind918/patches/patch-bin_tests_system_keyfromlabel_tests.sh
@@ -0,0 +1,24 @@
+$NetBSD: patch-bin_tests_system_keyfromlabel_tests.sh,v 1.1 2022/12/11 21:17:54 sekiya Exp $
+
+Fix shell portability.
+
+--- bin/tests/system/keyfromlabel/tests.sh.orig 2022-12-12 06:14:48.274390564 +0900
++++ bin/tests/system/keyfromlabel/tests.sh 2022-12-12 06:15:20.826375239 +0900
+@@ -59,7 +59,7 @@
+ status=$((status+ret))
+
+ # Skip dnssec-keyfromlabel if key generation failed.
+- test $ret == 0 || continue
++ test $ret = 0 || continue
+
+ echo_i "Get ZSK $alg $zone $type:$bits"
+ ret=0
+@@ -76,7 +76,7 @@
+ status=$((status+ret))
+
+ # Skip signing if dnssec-keyfromlabel failed.
+- test $ret == 0 || continue
++ test $ret = 0 || continue
+
+ echo_i "Sign zone with $ksk $zsk"
+ ret=0