head	1.2;
access;
symbols
	RELENG_5_5_0_RELEASE:1.1.1.2.4.1
	RELENG_5_5:1.1.1.2.4.1.0.6
	RELENG_5_5_BP:1.1.1.2.4.1
	RELENG_5_4_0_RELEASE:1.1.1.2.4.1
	RELENG_5_4:1.1.1.2.4.1.0.4
	RELENG_5_4_BP:1.1.1.2.4.1
	RELENG_4_11_0_RELEASE:1.1.1.1.4.1
	RELENG_4_11:1.1.1.1.4.1.0.6
	RELENG_4_11_BP:1.1.1.1.4.1
	RELENG_5_3_0_RELEASE:1.1.1.2.4.1
	RELENG_5_3:1.1.1.2.4.1.0.2
	RELENG_5_3_BP:1.1.1.2.4.1
	RELENG_5:1.1.1.2.0.4
	RELENG_5_BP:1.1.1.2
	RELENG_4_10_0_RELEASE:1.1.1.1.4.1
	RELENG_4_10:1.1.1.1.4.1.0.4
	RELENG_4_10_BP:1.1.1.1.4.1
	RELENG_5_2_1_RELEASE:1.1.1.2
	RELENG_5_2_0_RELEASE:1.1.1.2
	RELENG_5_2:1.1.1.2.0.2
	RELENG_5_2_BP:1.1.1.2
	v8_3_7:1.1.1.2
	RELENG_4_9_0_RELEASE:1.1.1.1.4.1
	RELENG_4_9:1.1.1.1.4.1.0.2
	RELENG_4_9_BP:1.1.1.1.4.1
	v8_3_6:1.1.1.2
	RELENG_5_1_0_RELEASE:1.1.1.1
	RELENG_5_1:1.1.1.1.0.20
	RELENG_5_1_BP:1.1.1.1
	RELENG_4_8_0_RELEASE:1.1.1.1
	RELENG_4_8:1.1.1.1.0.18
	RELENG_4_8_BP:1.1.1.1
	v8_3_4:1.1.1.1
	RELENG_5_0_0_RELEASE:1.1.1.1
	RELENG_5_0:1.1.1.1.0.16
	RELENG_5_0_BP:1.1.1.1
	RELENG_4_7_0_RELEASE:1.1.1.1
	RELENG_4_7:1.1.1.1.0.14
	RELENG_4_7_BP:1.1.1.1
	RELENG_4_6_2_RELEASE:1.1.1.1
	RELENG_4_6_1_RELEASE:1.1.1.1
	v8_3_3:1.1.1.1
	RELENG_4_6_0_RELEASE:1.1.1.1
	RELENG_4_6:1.1.1.1.0.12
	RELENG_4_6_BP:1.1.1.1
	v8_3_2_t1b:1.1.1.1
	v8_3_1:1.1.1.1
	RELENG_4_5_0_RELEASE:1.1.1.1
	RELENG_4_5:1.1.1.1.0.10
	RELENG_4_5_BP:1.1.1.1
	RELENG_4_4_0_RELEASE:1.1.1.1
	RELENG_4_4:1.1.1.1.0.8
	RELENG_4_4_BP:1.1.1.1
	v8_2_4:1.1.1.1
	RELENG_4_3_0_RELEASE:1.1.1.1
	RELENG_4_3:1.1.1.1.0.6
	RELENG_4_3_BP:1.1.1.1
	v8_2_3:1.1.1.1
	RELENG_4_2_0_RELEASE:1.1.1.1
	v8_2_3_t6b:1.1.1.1
	RELENG_4_1_1_RELEASE:1.1.1.1
	PRE_SMPNG:1.1.1.1
	RELENG_4_1_0_RELEASE:1.1.1.1
	RELENG_3_5_0_RELEASE:1.1.1.1.2.1
	v8_2_3_t5b:1.1.1.1
	ISC:1.1.1
	RELENG_4_0_0_RELEASE:1.1.1.1
	RELENG_4:1.1.1.1.0.4
	RELENG_4_BP:1.1.1.1
	RELENG_3_4_0_RELEASE:1.1.1.1.2.1
	RELENG_3:1.1.1.1.0.2
	v8_2_2_p5:1.1.1.1;
locks; strict;
comment	@# @;


1.2
date	2004.09.24.19.48.49;	author des;	state dead;
branches;
next	1.1;

1.1
date	99.11.30.02.43.08;	author peter;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.11.30.02.43.08;	author peter;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.4.1;
next	1.1.1.2;

1.1.1.2
date	2003.06.17.08.25.00;	author dougb;	state Exp;
branches
	1.1.1.2.4.1;
next	;

1.1.1.2.4.1
date	2004.09.26.03.09.29;	author des;	state dead;
branches;
next	;

1.1.1.1.2.1
date	99.12.13.15.07.58;	author peter;	state Exp;
branches;
next	;

1.1.1.1.4.1
date	2003.08.25.21.07.53;	author dougb;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Retire the BIND 8 sources.
@
text
@#!/bin/sh

set -e
PATH=/bin:/usr/bin:$PATH; export PATH
trap "rm -f tmp$$a.c tmp$$b.c tmp$$a.o tmp$$b.o" 0
target=port_ipv6
new=new_${target}.h
old=${target}.h

cat > tmp$$a.c <<EOF
#include <sys/types.h>
#include <netinet/in.h>
struct sockaddr_in6 xx;
EOF

cat > tmp$$b.c <<EOF
#include <sys/types.h>
#include <netinet/in.h>
struct in6_addr xx;
EOF

cat > ${new} <<EOF

/* This file is automatically generated. Do Not Edit. */

#ifndef ${target}_h
#define ${target}_h

EOF

if ${CC} -c tmp$$a.c > /dev/null 2>&1
then
        echo "#define HAS_INET6_STRUCTS" >> ${new}
        if ${CC} -c tmp$$b.c > /dev/null 2>&1
        then
		:
	else
                echo "#define in6_addr in_addr6" >> ${new}
        fi
else
        echo "#undef HAS_INET6_STRUCTS" >> ${new}
fi
echo  >> ${new}
echo "#endif" >> ${new}
if [ -f ${old} ]; then
        if cmp -s ${new} ${old} ; then
                rm -f ${new}
        else
                rm -f ${old}
                mv ${new} ${old}
        fi
else
        mv ${new} ${old}
fi
exit 0
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Import bind v8.2.2.p5, minus the crypto for the time being.  The bind
package does have BXA export approval, but the licensing strings on the
dnssafe code are a bit unpleasant.  The crypto is easy to restore and bind
will run without it - just without full dnssec support.

Obtained from:	The Internet Software Consortium (www.isc.org)
@
text
@@


1.1.1.1.4.1
log
@MFC of version 8.3.6 import
@
text
@d5 1
a5 1
trap "rm -f tmp$$[abc].[oc]" 0 1 2 15
a21 7
cat > tmp$$c.c <<EOF
#include <sys/types.h>
#include <netinet/in.h>
struct sockaddr_in6 xx;
main() { xx.sin6_scope_id = 0; }
EOF

a39 6
	if ${CC} -c tmp$$c.c > /dev/null 2>&1
	then
		echo "#define HAVE_SIN6_SCOPE_ID" >> ${new}
	else
		echo "#undef HAVE_SIN6_SCOPE_ID" >> ${new}
	fi
@


1.1.1.2
log
@Import of ISC BIND version 8.3.6.

Version 8.3.5 was skipped due to bugs fixed in this version.
@
text
@d5 1
a5 1
trap "rm -f tmp$$[abc].[oc]" 0 1 2 15
a21 7
cat > tmp$$c.c <<EOF
#include <sys/types.h>
#include <netinet/in.h>
struct sockaddr_in6 xx;
main() { xx.sin6_scope_id = 0; }
EOF

a39 6
	if ${CC} -c tmp$$c.c > /dev/null 2>&1
	then
		echo "#define HAVE_SIN6_SCOPE_ID" >> ${new}
	else
		echo "#undef HAVE_SIN6_SCOPE_ID" >> ${new}
	fi
@


1.1.1.2.4.1
log
@MFC: BIND 9 and related bits.

Approved by:	re
@
text
@@


1.1.1.1.2.1
log
@MFC: bind 8.2.2.p5

Urged by:	imp, alfred, and a whole bunch of other folks.
Approved by:	jkh (a few days ago)
@
text
@@

