net/bind912: fix an error when reloading configuration Fix an error when reloading configuration. There is on more check to "directory" in option statement is writable. Bump PKGREVISION.diff -r1.10 -r1.11 pkgsrc/net/bind912/Makefile
(taca)
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2019/04/30 02:46:16 taca Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2019/05/02 13:31:07 taca Exp $ | |
2 | 2 | |||
3 | DISTNAME= bind-${BIND_VERSION} | 3 | DISTNAME= bind-${BIND_VERSION} | |
4 | PKGNAME= ${DISTNAME:S/-P/pl/} | 4 | PKGNAME= ${DISTNAME:S/-P/pl/} | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= net | 6 | CATEGORIES= net | |
6 | MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ | 7 | MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ | |
7 | 8 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.isc.org/software/bind/ | 10 | HOMEPAGE= http://www.isc.org/software/bind/ | |
10 | COMMENT= Berkeley Internet Name Daemon implementation of DNS, version 9.12 | 11 | COMMENT= Berkeley Internet Name Daemon implementation of DNS, version 9.12 | |
11 | LICENSE= mpl-2.0 | 12 | LICENSE= mpl-2.0 | |
12 | 13 | |||
13 | CONFLICTS+= host-[0-9]* | 14 | CONFLICTS+= host-[0-9]* | |
14 | 15 | |||
15 | MAKE_JOBS_SAFE= no | 16 | MAKE_JOBS_SAFE= no | |
16 | USE_CWRAPPERS= no | 17 | USE_CWRAPPERS= no | |
17 | 18 |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: distinfo,v 1.7 2019/04/30 02:46:16 taca Exp $ | 1 | $NetBSD: distinfo,v 1.8 2019/05/02 13:31:07 taca Exp $ | |
2 | 2 | |||
3 | SHA1 (bind-9.12.4-P1.tar.gz) = e1406e294aee810e32f93d60bd45b15b5d1f76e9 | 3 | SHA1 (bind-9.12.4-P1.tar.gz) = e1406e294aee810e32f93d60bd45b15b5d1f76e9 | |
4 | RMD160 (bind-9.12.4-P1.tar.gz) = b656fbd38b80fc59bcd592803671e80825e6e24a | 4 | RMD160 (bind-9.12.4-P1.tar.gz) = b656fbd38b80fc59bcd592803671e80825e6e24a | |
5 | SHA512 (bind-9.12.4-P1.tar.gz) = 1c07f6e10cb9fd499c4231e8290da94da1f5f4294c664635eac82bdb10be9a01119208fe2c15f5d28f50e3c2cdec7b553851b7676b65792f3f21de071587297d | 5 | SHA512 (bind-9.12.4-P1.tar.gz) = 1c07f6e10cb9fd499c4231e8290da94da1f5f4294c664635eac82bdb10be9a01119208fe2c15f5d28f50e3c2cdec7b553851b7676b65792f3f21de071587297d | |
6 | Size (bind-9.12.4-P1.tar.gz) = 7914907 bytes | 6 | Size (bind-9.12.4-P1.tar.gz) = 7914907 bytes | |
7 | SHA1 (patch-bin_named_server.c) = dee624cc8a664abe74959ab40cea53d85872f672 | 7 | SHA1 (patch-bin_named_server.c) = fc54c9014104bfb0c73ec59e2a490de51a5e5b78 | |
8 | SHA1 (patch-bin_pkcs11_pkcs11-keygen.c) = d953bf48aadcdf7e95975d335167cc50f54ef91e | 8 | SHA1 (patch-bin_pkcs11_pkcs11-keygen.c) = d953bf48aadcdf7e95975d335167cc50f54ef91e | |
9 | SHA1 (patch-bin_tests_system_metadata_tests.sh) = d01a492d0b7738760bdbff714248e279a78fef28 | 9 | SHA1 (patch-bin_tests_system_metadata_tests.sh) = d01a492d0b7738760bdbff714248e279a78fef28 | |
10 | SHA1 (patch-config.threads.in) = 8341bdb11888d3efdde5f115de91b1f46aa40bd0 | 10 | SHA1 (patch-config.threads.in) = 8341bdb11888d3efdde5f115de91b1f46aa40bd0 | |
11 | SHA1 (patch-configure) = 7d74eef1002351a5513c7c617e28721b39de65d0 | 11 | SHA1 (patch-configure) = 7d74eef1002351a5513c7c617e28721b39de65d0 | |
12 | SHA1 (patch-contrib_dlz_config.dlz.in) = 6c53d61aaaf1a952a867e4c4da0194db94f511d7 | 12 | SHA1 (patch-contrib_dlz_config.dlz.in) = 6c53d61aaaf1a952a867e4c4da0194db94f511d7 | |
13 | SHA1 (patch-lib_dns_rbt.c) = 8af91b6d40b591d28d15f7f98c9b7a82df234381 | 13 | SHA1 (patch-lib_dns_rbt.c) = 8af91b6d40b591d28d15f7f98c9b7a82df234381 | |
14 | SHA1 (patch-lib_dns_view.c) = 93ef5f1e303cc362818ddd0135f267c5090af40d | 14 | SHA1 (patch-lib_dns_view.c) = 93ef5f1e303cc362818ddd0135f267c5090af40d | |
15 | SHA1 (patch-lib_isc_unix_socket.c) = d02f33800eb17d4818c72d79a226ab01b6bf12ad | 15 | SHA1 (patch-lib_isc_unix_socket.c) = d02f33800eb17d4818c72d79a226ab01b6bf12ad |
@@ -1,23 +1,39 @@ | @@ -1,23 +1,39 @@ | |||
1 | $NetBSD: patch-bin_named_server.c,v 1.1 2019/04/30 02:46:16 taca Exp $ | 1 | $NetBSD: patch-bin_named_server.c,v 1.2 2019/05/02 13:31:07 taca Exp $ | |
2 | 2 | |||
3 | * Disable checking working directory is writable as BIND_USER in NetBSD | 3 | * Disable checking working directory is writable as BIND_USER in NetBSD | |
4 | base system. | 4 | base system. | |
5 | 5 | |||
6 | --- bin/named/server.c.orig 2019-04-06 01:27:27.000000000 +0000 | 6 | --- bin/named/server.c.orig 2019-04-06 01:27:27.000000000 +0000 | |
7 | +++ bin/named/server.c | 7 | +++ bin/named/server.c | |
8 | @@ -8760,6 +8760,7 @@ load_configuration(const char *filename, | 8 | @@ -6297,6 +6297,7 @@ directory_callback(const char *clausenam | |
9 | "option 'directory' contains relative path '%s'", | |||
10 | directory); | |||
11 | ||||
12 | +#if 0 | |||
13 | if (!isc_file_isdirwritable(directory)) { | |||
14 | isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL, | |||
15 | NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR, | |||
16 | @@ -6304,6 +6305,7 @@ directory_callback(const char *clausenam | |||
17 | directory); | |||
18 | return (ISC_R_NOPERM); | |||
19 | } | |||
20 | +#endif | |||
21 | ||||
22 | result = isc_dir_chdir(directory); | |||
23 | if (result != ISC_R_SUCCESS) { | |||
24 | @@ -8760,6 +8762,7 @@ load_configuration(const char *filename, | |||
9 | named_os_changeuser(); | 25 | named_os_changeuser(); | |
10 | } | 26 | } | |
11 | 27 | |||
12 | +#if 0 | 28 | +#if 0 | |
13 | /* | 29 | /* | |
14 | * Check that the working directory is writable. | 30 | * Check that the working directory is writable. | |
15 | */ | 31 | */ | |
16 | @@ -8770,6 +8771,7 @@ load_configuration(const char *filename, | 32 | @@ -8770,6 +8773,7 @@ load_configuration(const char *filename, | |
17 | result = ISC_R_NOPERM; | 33 | result = ISC_R_NOPERM; | |
18 | goto cleanup; | 34 | goto cleanup; | |
19 | } | 35 | } | |
20 | +#endif | 36 | +#endif | |
21 | 37 | |||
22 | #ifdef HAVE_LMDB | 38 | #ifdef HAVE_LMDB | |
23 | /* | 39 | /* |