Module Name:    src
Committed By:   christos
Date:           Sun Apr 12 17:08:03 UTC 2009

Added Files:
        src/external/bsd/libbind/dist: include4netbsd libc4netbsd

Log Message:
more fixes for the import scripts


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/libbind/dist/include4netbsd \
    src/external/bsd/libbind/dist/libc4netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/bsd/libbind/dist/include4netbsd
diff -u /dev/null src/external/bsd/libbind/dist/include4netbsd:1.1
--- /dev/null	Sun Apr 12 13:08:03 2009
+++ src/external/bsd/libbind/dist/include4netbsd	Sun Apr 12 13:08:03 2009
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+# Use this script to update the bind include files used in the nameserver,
+# after you've imported and built the latest libbind code. After you run this,
+# cvs import the resulting directory
+#
+# $ cd /usr/src/external/bsd/libbind/dist
+# $ ./include4netbsd . /tmp/include
+# $ cd /tmp/include
+# $ cvs -d cvs.netbsd.org:/cvsroot import src/include ISC libbind-X-Y-Z
+#
+
+PROG=$(basename $0)
+if [ \( -z "$1" \) -o \( -z "$2" \) ]
+then
+	echo "Usage: $PROG <libbind-src> <include-dest>" 1>&2
+	exit 1
+fi
+
+LIBBIND=$1
+INCLUDE=$2
+
+mkdir -p $INCLUDE
+
+copy()
+{
+	sed -e 's/ __P((/(/g' \
+	    -e 's/));/);/g' \
+	    -e 's/u_int\([136]\)/uint\1/g' \
+	    -e '/\\file/d' \
+	    < "$1" > "$2"
+}
+
+for i in netdb.h res_update.h resolv.h
+do
+	copy $LIBBIND/include/$i $INCLUDE/$i
+done
+
+mkdir -p $INCLUDE/arpa
+
+for i in inet.h nameser.h nameser_compat.h
+do
+	copy $LIBBIND/include/arpa/$i $INCLUDE/arpa/$i
+done
Index: src/external/bsd/libbind/dist/libc4netbsd
diff -u /dev/null src/external/bsd/libbind/dist/libc4netbsd:1.1
--- /dev/null	Sun Apr 12 13:08:03 2009
+++ src/external/bsd/libbind/dist/libc4netbsd	Sun Apr 12 13:08:03 2009
@@ -0,0 +1,61 @@
+#!/bin/sh
+#
+# Use this script to update the libc resolver code, after you've imported
+# the latest libbind code. After you run this, cvs import the resulting
+# directory
+#
+# $ cd /usr/src/external/bsd/libbind/dist
+# $ ./libc4netbsd . /tmp/libc
+# $ cd /tmp/libc
+# $ cvs -d cvs.netbsd.org:/cvsroot import src/lib/libc ISC libbind-X-Y-Z
+#
+
+PROG=$(basename $0)
+if [ \( -z "$1" \) -o \( -z "$2" \) ]
+then
+	echo "Usage: $PROG <bind-src> <libc-dest>" 1>&2
+	exit 1
+fi
+LIBBIND=$1
+LIBC=$2
+
+mkdir -p $LIBC/include/isc
+
+for i in assertions.h dst.h eventlib.h heap.h list.h memcluster.h
+do
+	cp $LIBBIND/include/isc/$i $LIBC/include/isc/$i
+done
+cp $LIBBIND/include/resolv_mt.h $LIBC/include
+
+mkdir -p $LIBC/inet
+
+for i in inet_addr.c inet_cidr_ntop.c inet_cidr_pton.c inet_ntop.c \
+    inet_pton.c nsap_addr.c
+do
+	cp $LIBBIND/inet/$i $LIBC/inet/$i
+done
+
+mkdir -p $LIBC/isc
+
+for i in assertions.c ev_streams.c ev_timers.c eventlib_p.h
+do
+	cp $LIBBIND/isc/$i $LIBC/isc/$i
+done
+
+mkdir -p $LIBC/nameser
+
+for i in ns_name.c ns_netint.c ns_parse.c ns_print.c ns_samedomain.c ns_ttl.c
+do
+	cp $LIBBIND/nameser/$i $LIBC/nameser/$i
+done
+
+mkdir -p $LIBC/resolv
+
+for i in herror.c res_comp.c res_data.c res_debug.c res_debug.h res_init.c \
+    res_mkquery.c res_private.h res_query.c res_send.c
+do
+	cp $LIBBIND/resolv/$i $LIBC/resolv/$i
+done
+
+mkdir -p $LIBC/net
+cp $LIBBIND/isc/base64.c $LIBC/net

Reply via email to