Import of pkgsrc-2014Q1

This commit is contained in:
2014-11-05 12:41:07 +01:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions
+4 -2
View File
@@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.30.2.1 2013/07/27 11:50:06 tron Exp $
# $NetBSD: Makefile,v 1.37 2014/03/11 14:34:38 jperkin Exp $
DISTNAME= bind-${BIND_VERSION}
PKGNAME= ${DISTNAME:S/-P/pl/}
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ \
http://ftp.belnet.be/pub/mirror/ftp.isc.org/isc/bind9/${BIND_VERSION}/
@@ -14,7 +15,7 @@ CONFLICTS+= host-[0-9]*
MAKE_JOBS_SAFE= no
BIND_VERSION= 9.8.5-P2
BIND_VERSION= 9.8.6-P2
.include "../../mk/bsd.prefs.mk"
@@ -68,6 +69,7 @@ PLIST.inet6= yes
.endif
RCD_SCRIPTS= lwresd named9
SMF_METHODS= named
INSTALLATION_DIRS= ${DOCDIR} share/doc/bind9/arm share/doc/bind9/misc
+3 -3
View File
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.4 2013/06/06 02:56:36 taca Exp $
@comment $NetBSD: PLIST,v 1.6 2014/03/11 14:05:06 jperkin Exp $
bin/dig
bin/host
bin/isc-config.sh
@@ -144,11 +144,13 @@ include/isc/resource.h
include/isc/result.h
include/isc/resultclass.h
include/isc/rwlock.h
include/isc/safe.h
include/isc/serial.h
include/isc/sha1.h
include/isc/sha2.h
include/isc/sockaddr.h
include/isc/socket.h
include/isc/stat.h
include/isc/stdio.h
include/isc/stdlib.h
include/isc/stdtime.h
@@ -373,5 +375,3 @@ share/doc/bind9/misc/options
share/doc/bind9/misc/rfc-compliance
share/doc/bind9/misc/roadmap
share/doc/bind9/misc/sdb
share/examples/rc.d/lwresd
share/examples/rc.d/named9
+10 -10
View File
@@ -1,15 +1,15 @@
$NetBSD: distinfo,v 1.22.2.1 2013/07/27 11:50:06 tron Exp $
$NetBSD: distinfo,v 1.27 2014/01/27 21:25:21 pettai Exp $
SHA1 (bind-9.8.5-P2.tar.gz) = 2cab91cfe21487f90225c3c3b0e8656706642f29
RMD160 (bind-9.8.5-P2.tar.gz) = 8bab1002fc23fc71898d187b7f79eaa55f0b143c
Size (bind-9.8.5-P2.tar.gz) = 7262961 bytes
SHA1 (rl-9.8.5-P1.patch) = 4a8a4e17ed835b4c99dbb236b8bb65d6ab28a00c
RMD160 (rl-9.8.5-P1.patch) = 758f2f6970a452c9e2ea5afb21cf52e297a32b82
Size (rl-9.8.5-P1.patch) = 103398 bytes
SHA1 (patch-bin_dig_dighost.c) = 3f37033cc64e1153268ab437fab533d2920bb18c
SHA1 (bind-9.8.6-P2.tar.gz) = c2c513621019d14fd9e13caad86a4e13198d5e77
RMD160 (bind-9.8.6-P2.tar.gz) = 11384ed47a19d9bfd32b1f00f0d5e879c76d396c
Size (bind-9.8.6-P2.tar.gz) = 7275835 bytes
SHA1 (rl-9.8.6.patch) = 16d0231ab1fda38ff02ce1ff1393242feece34c7
RMD160 (rl-9.8.6.patch) = 4c98ae1b11e770626ff10e6904b62ef034033c29
Size (rl-9.8.6.patch) = 103547 bytes
SHA1 (patch-bin_dig_dighost.c) = f76d4a3a3e521a9ff691e12b9f7c63299b15c74d
SHA1 (patch-bin_tests_system_Makefile.in) = 650ac962464e23f6c4278e7025f55f282789f9c9
SHA1 (patch-config.threads.in) = 045531d8378a88c654ab98ba6ea65786c8cf4e2b
SHA1 (patch-configure) = 08f878fd3a5d3d17e0cf55d01344ddc84991967f
SHA1 (patch-configure) = f811ac49b3d94903eb3abf887e0613decd4e8344
SHA1 (patch-lib_dns_rbt.c) = 29fb5c24ff3558f1621e93ea16419e32dbc695b7
SHA1 (patch-lib_lwres_getaddrinfo.c) = 9585a26a376d32f80ac8266eb7967c00b433f14d
SHA1 (patch-lib_lwres_getnameinfo.c) = c26dcff4637b7beb16b66c32b304d0f187390eed
SHA1 (patch-lib_lwres_getnameinfo.c) = 1224033e3c1ca14f1508542e5d41c899060d4d9c
+141
View File
@@ -0,0 +1,141 @@
<?xml version="1.0"?>
<!--
CDDL HEADER START
The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]
CDDL HEADER END
-->
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
Copyright 2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
ident "@(#)server.xml 1.8 07/06/19 SMI"
-->
<!-- Portions Copyright 2007 Vedran Bender -->
<service_bundle type='manifest' name='@SMF_NAME@'>
<service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
<dependency name='filesystem_minimal' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local' />
</dependency>
<dependency name='loopback' grouping='require_any' restart_on='error' type='service'>
<service_fmri value='svc:/network/loopback' />
</dependency>
<dependency name='network' grouping='optional_all' restart_on='error' type='service'>
<service_fmri value='svc:/milestone/network' />
</dependency>
<dependency name='config-files' grouping='require_any' restart_on='refresh' type='path'>
<service_fmri value='file://localhost@PKG_SYSCONFDIR@/named.conf' />
</dependency>
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' />
<!--
In order to run multiple named(1M) processes with their own
configuration file or properties each must have a unique
instance.
-->
<instance name='default' enabled='false'>
<exec_method type='method' name='start' exec='@PREFIX@/@SMF_METHOD_FILE.named@ %m %i' timeout_seconds='60'>
<method_context>
<!--
privileges: (see privileges(5) and /etc/security/priv_names)
file_dac_read, file_dac_search:
Necessary for reading the configuration file
even it is restricted by the file permission.
net_privaddr:
Bind to a privileged port number.
sys_resource:
Permit the setting of resource limits (eg. stack
size).
proc_chroot:
Permit use of chroot(2).
-->
<method_credential user='root' group='root' privileges='basic,!proc_session,!proc_info,!file_link_any,net_privaddr,file_dac_read,file_dac_search,sys_resource,proc_chroot' />
</method_context>
</exec_method>
<!--
SIGHUP causes named to reread its configuration file, but not any
of the properties below.
-->
<exec_method type='method' name='refresh' exec=':kill -HUP' timeout_seconds='60'>
<method_context />
</exec_method>
<property_group name='general' type='framework'>
<!-- manage DNS server state -->
<propval name='action_authorization' type='astring' value='solaris.smf.manage.bind' />
<propval name='value_authorization' type='astring' value='solaris.smf.manage.bind' />
</property_group>
<!-- Default property settings for named(1M) instance. -->
<property_group name='options' type='application'>
<!--
server: specifies an alternative server command. If
not specified the default /usr/sbin/named is used.
-->
<propval name='server' type='astring' value='' />
<!--
configuration_file: specifies an alternative
configuration file to be used. The property is similar
to named(1M) command line option '-c'
-->
<propval name='configuration_file' type='astring' value='' />
<!--
ip_interfaces: specifies which IP transport BIND will
transmit on. Possible values are 'IPv4' or 'IPv6'. Any
other setting assumes 'all', the default.
Equivalent command line option '-4' or '-6'.
-->
<propval name='ip_interfaces' type='astring' value='all' />
<!--
listen_on_port: Specifies the default UDP and TCP port
which will be used to listen for DNS requests.
Equivalent command line option '-p <integer>'.
-->
<propval name='listen_on_port' type='integer' value='0' />
<!--
debug_level: Specifies the default debug level. The
default is 0; no debugging. The Higher the number the
more verbose debug information becomes.
Equivalent command line option '-d <integer>'.
-->
<propval name='debug_level' type='integer' value='0' />
<!--
threads: Specifies the number of cpu worker threads to
create. The default of 0 causes named to try and
determine the number of CPUs present and create one
thread per CPU.
Equivalent command line option '-n <integer>'.
-->
<propval name='threads' type='integer' value='0' />
<!--
chroot_dir: Change the root directory using chroot(2)
to directory after processing the command line
arguments, but before reading the configuration file.
Equivalent command line option '-t <pathname>'.
-->
<propval name='chroot_dir' type='astring' value='' />
</property_group>
</instance>
<stability value='Unstable' />
<template>
<common_name>
<loctext xml:lang='C'>BIND DNS server</loctext>
</common_name>
<documentation>
<manpage title='named' section='1M' manpath='@PREFIX@/@PKGMANDIR@' />
</documentation>
</template>
</service>
</service_bundle>
+117
View File
@@ -0,0 +1,117 @@
#!@SMF_METHOD_SHELL@
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#pragma ident "@(#)dns-server.sh 1.1 07/03/26 SMI"
# smf_method(5) start/stop script required for server DNS
. /lib/svc/share/smf_include.sh
result=${SMF_EXIT_OK}
# Read command line arguments
method="$1" # %m
instance="$2" # %i
# Set defaults; SMF_FMRI should have been set, but just in case.
if [ -z "$SMF_FMRI" ]; then
SMF_FMRI="svc:/@SMF_PREFIX@/@SMF_NAME@:${instance}"
fi
server="@PREFIX@/sbin/named"
I=`/usr/bin/basename $0`
case "$method" in
'start')
cmdopts=""
properties="debug_level ip_interfaces listen_on_port
threads chroot_dir configuration_file server"
for prop in $properties
do
value=`/usr/bin/svcprop -p options/${prop} ${SMF_FMRI}`
if [ -z "${value}" -o "${value}" = '""' ]; then
continue;
fi
case $prop in
'debug_level')
if [ ${value} -gt 0 ]; then
cmdopts="${cmdopts} -d ${value}"
fi
;;
'ip_interfaces')
case ${value} in
'IPv4')
cmdopts="${cmdopts} -4";;
'IPv6')
cmdopts="${cmdopts} -6";;
'all')
: # Default is all, therefore ignore.
;;
*)
echo "$I: Unrecognised value in service instance property" >&2
echo "$I: options/${prop} : ${value}" >&2
;;
esac
;;
'listen_on_port')
if [ ${value} -gt 0 ]; then
cmdopts="${cmdopts} -p ${value}"
fi
;;
'threads')
if [ ${value} -gt 0 ]; then
cmdopts="${cmdopts} -n ${value}"
fi
;;
'chroot_dir')
cmdopts="${cmdopts} -t ${value}"
;;
'configuration_file')
cmdopts="${cmdopts} -c ${value}"
;;
'server')
set -- `echo ${value} | /usr/bin/sed -e 's/\\\\//g'`
server=$@
;;
esac
done
if [ ${result} = ${SMF_EXIT_OK} ]; then
echo "$I: Executing: ${server} ${cmdopts}"
# Execute named(1M) with relevant command line options.
${server} ${cmdopts}
result=$?
fi
;;
'stop')
smf_kill_contract ${contract} TERM 1
[ $? -ne 0 ] && exit 1
;;
*)
echo "Usage: $I [stop|start] <instance>" >&2
exit 1
;;
esac
exit ${result}
+4 -2
View File
@@ -1,4 +1,4 @@
# $NetBSD: options.mk,v 1.6 2013/06/06 02:56:36 taca Exp $
# $NetBSD: options.mk,v 1.9 2014/01/27 21:25:21 pettai Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.bind98
PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
@@ -54,8 +54,10 @@ CONFIGURE_ARGS+= --with-dlz-ldap=${BUILDLINK_PREFIX.openldap-client}
CONFIGURE_ARGS+= --with-dlz-filesystem
.endif
# The RRL patches available here
# http://ss.vix.su/~vjs/rrlrpz.html
.if !empty(PKG_OPTIONS:Mrrl)
PATCHFILES=rl-9.8.5-P1.patch
PATCHFILES=rl-9.8.6.patch
PATCH_SITES=http://ss.vix.su/~vjs/
.endif
+15 -15
View File
@@ -1,10 +1,10 @@
$NetBSD: patch-bin_dig_dighost.c,v 1.1 2011/11/17 00:48:09 taca Exp $
$NetBSD: patch-bin_dig_dighost.c,v 1.2 2013/09/21 15:59:01 taca Exp $
Avoid to use true as variable name.
--- bin/dig/dighost.c.orig 2011-03-11 06:46:58.000000000 +0000
--- bin/dig/dighost.c.orig 2013-09-05 05:19:53.000000000 +0000
+++ bin/dig/dighost.c
@@ -4345,7 +4345,7 @@ prepare_lookup(dns_name_t *name)
@@ -4313,7 +4313,7 @@ prepare_lookup(dns_name_t *name)
isc_result_t result;
isc_region_t r;
dns_rdataset_t *rdataset = NULL;
@@ -13,7 +13,7 @@ Avoid to use true as variable name.
#endif
memset(namestr, 0, DNS_NAME_FORMATSIZE);
@@ -4359,7 +4359,7 @@ prepare_lookup(dns_name_t *name)
@@ -4327,7 +4327,7 @@ prepare_lookup(dns_name_t *name)
result = advanced_rrsearch(&rdataset, &ns.name,
dns_rdatatype_aaaa,
@@ -22,7 +22,7 @@ Avoid to use true as variable name.
if (result == ISC_R_SUCCESS) {
for (result = dns_rdataset_first(rdataset);
result == ISC_R_SUCCESS;
@@ -4388,7 +4388,7 @@ prepare_lookup(dns_name_t *name)
@@ -4356,7 +4356,7 @@ prepare_lookup(dns_name_t *name)
rdataset = NULL;
result = advanced_rrsearch(&rdataset, &ns.name, dns_rdatatype_a,
@@ -31,7 +31,7 @@ Avoid to use true as variable name.
if (result == ISC_R_SUCCESS) {
for (result = dns_rdataset_first(rdataset);
result == ISC_R_SUCCESS;
@@ -4507,11 +4507,11 @@ isc_result_t
@@ -4475,11 +4475,11 @@ isc_result_t
initialization(dns_name_t *name)
{
isc_result_t result;
@@ -45,7 +45,7 @@ Avoid to use true as variable name.
if (result != ISC_R_SUCCESS) {
printf("\n;; NS RRset is missing to continue validation:"
" FAILED\n\n");
@@ -4864,7 +4864,7 @@ sigchase_td(dns_message_t *msg)
@@ -4827,7 +4827,7 @@ sigchase_td(dns_message_t *msg)
isc_result_t result;
dns_name_t *name = NULL;
isc_boolean_t have_answer = ISC_FALSE;
@@ -54,7 +54,7 @@ Avoid to use true as variable name.
if ((result = dns_message_firstname(msg, DNS_SECTION_ANSWER))
== ISC_R_SUCCESS) {
@@ -4873,7 +4873,7 @@ sigchase_td(dns_message_t *msg)
@@ -4836,7 +4836,7 @@ sigchase_td(dns_message_t *msg)
initialization(name);
return;
}
@@ -63,7 +63,7 @@ Avoid to use true as variable name.
} else {
if (!current_lookup->trace_root_sigchase) {
result = dns_message_firstname(msg,
@@ -4991,7 +4991,7 @@ sigchase_td(dns_message_t *msg)
@@ -4954,7 +4954,7 @@ sigchase_td(dns_message_t *msg)
dns_rdatatype_rrsig,
current_lookup
->rdtype_sigchase,
@@ -72,7 +72,7 @@ Avoid to use true as variable name.
if (result == ISC_R_FAILURE) {
printf("\n;; RRset is missing to continue"
" validation SHOULD NOT APPEND:"
@@ -5004,7 +5004,7 @@ sigchase_td(dns_message_t *msg)
@@ -4967,7 +4967,7 @@ sigchase_td(dns_message_t *msg)
&chase_authority_name,
dns_rdatatype_rrsig,
dns_rdatatype_any,
@@ -81,7 +81,7 @@ Avoid to use true as variable name.
if (result == ISC_R_FAILURE) {
printf("\n;; RRSIG is missing to continue"
" validation SHOULD NOT APPEND:"
@@ -5080,7 +5080,7 @@ sigchase_td(dns_message_t *msg)
@@ -5043,7 +5043,7 @@ sigchase_td(dns_message_t *msg)
&chase_authority_name,
dns_rdatatype_rrsig,
dns_rdatatype_ds,
@@ -90,7 +90,7 @@ Avoid to use true as variable name.
if (result != ISC_R_SUCCESS) {
printf("\n;; DSset is missing to continue validation:"
" FAILED\n\n");
@@ -5168,7 +5168,7 @@ sigchase_td(dns_message_t *msg)
@@ -5131,7 +5131,7 @@ sigchase_td(dns_message_t *msg)
result = advanced_rrsearch(&chase_rdataset, &chase_name,
current_lookup->rdtype_sigchase,
dns_rdatatype_any ,
@@ -99,7 +99,7 @@ Avoid to use true as variable name.
if (result == ISC_R_FAILURE) {
printf("\n;; RRsig of RRset is missing to continue validation"
" SHOULD NOT APPEND: FAILED\n\n");
@@ -5211,7 +5211,7 @@ getneededrr(dns_message_t *msg)
@@ -5174,7 +5174,7 @@ getneededrr(dns_message_t *msg)
dns_name_t *name = NULL;
dns_rdata_t sigrdata = DNS_RDATA_INIT;
dns_rdata_sig_t siginfo;
@@ -108,7 +108,7 @@ Avoid to use true as variable name.
if ((result = dns_message_firstname(msg, DNS_SECTION_ANSWER))
!= ISC_R_SUCCESS) {
@@ -5227,7 +5227,7 @@ getneededrr(dns_message_t *msg)
@@ -5190,7 +5190,7 @@ getneededrr(dns_message_t *msg)
if (chase_rdataset == NULL) {
result = advanced_rrsearch(&chase_rdataset, name,
dns_rdatatype_any,
@@ -117,7 +117,7 @@ Avoid to use true as variable name.
if (result != ISC_R_SUCCESS) {
printf("\n;; No Answers: Validation FAILED\n\n");
return (ISC_R_NOTFOUND);
@@ -5347,7 +5347,7 @@ getneededrr(dns_message_t *msg)
@@ -5310,7 +5310,7 @@ getneededrr(dns_message_t *msg)
result = advanced_rrsearch(&chase_sigdsrdataset,
&chase_signame,
dns_rdatatype_rrsig,
+4 -4
View File
@@ -1,8 +1,8 @@
$NetBSD: patch-configure,v 1.3 2012/04/05 00:39:34 taca Exp $
$NetBSD: patch-configure,v 1.5 2014/01/13 17:28:22 taca Exp $
--- configure.orig 2012-03-22 19:20:00.000000000 +0000
--- configure.orig 2013-12-20 00:30:37.000000000 +0000
+++ configure
@@ -22159,6 +22159,8 @@ case $host in
@@ -14682,6 +14682,8 @@ case $host in
use_threads=false ;;
*-freebsd*)
use_threads=false ;;
@@ -11,7 +11,7 @@ $NetBSD: patch-configure,v 1.3 2012/04/05 00:39:34 taca Exp $
*-bsdi[234]*)
# Thread signals do not work reliably on some versions of BSD/OS.
use_threads=false ;;
@@ -27099,7 +27101,7 @@ $as_echo "no" >&6; }
@@ -19683,7 +19685,7 @@ $as_echo "no" >&6; }
fi
if test -n "-L$use_dlz_postgres_lib -lpq"
then
@@ -1,6 +1,6 @@
$NetBSD: patch-lib_lwres_getnameinfo.c,v 1.1.1.1 2011/03/04 03:52:15 taca Exp $
$NetBSD: patch-lib_lwres_getnameinfo.c,v 1.2 2013/09/21 15:59:01 taca Exp $
--- lib/lwres/getnameinfo.c.orig 2007-06-19 23:47:22.000000000 +0000
--- lib/lwres/getnameinfo.c.orig 2013-09-05 05:19:53.000000000 +0000
+++ lib/lwres/getnameinfo.c
@@ -121,6 +121,10 @@
#include <lwres/netdb.h>
@@ -13,7 +13,7 @@ $NetBSD: patch-lib_lwres_getnameinfo.c,v 1.1.1.1 2011/03/04 03:52:15 taca Exp $
#include "assert_p.h"
#define SUCCESS 0
@@ -271,13 +275,9 @@ lwres_getnameinfo(const struct sockaddr
@@ -272,13 +276,9 @@ lwres_getnameinfo(const struct sockaddr
((const struct sockaddr_in6 *)sa)->sin6_scope_id) {
char *p = numaddr + strlen(numaddr);
const char *stringscope = NULL;