xref: /netbsd-src/lib/libwrap/libwrap2netbsd (revision c2b95373bf0fdf612ee0f8b5f5711bbc8c3d8b87)
1541be36cSmrg#! /bin/sh
2541be36cSmrg#
3*c2b95373Smrg#	$NetBSD: libwrap2netbsd,v 1.6 2008/05/29 14:51:25 mrg Exp $
4541be36cSmrg#
5541be36cSmrg# Copyright (c) 1996 Matthew R. Green
6541be36cSmrg# All rights reserved.
7541be36cSmrg#
8541be36cSmrg# Redistribution and use in source and binary forms, with or without
9541be36cSmrg# modification, are permitted provided that the following conditions
10541be36cSmrg# are met:
11541be36cSmrg# 1. Redistributions of source code must retain the above copyright
12541be36cSmrg#    notice, this list of conditions and the following disclaimer.
13541be36cSmrg# 2. Redistributions in binary form must reproduce the above copyright
14541be36cSmrg#    notice, this list of conditions and the following disclaimer in the
15541be36cSmrg#    documentation and/or other materials provided with the distribution.
16541be36cSmrg#
17541be36cSmrg# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18541be36cSmrg# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19541be36cSmrg# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20541be36cSmrg# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21541be36cSmrg# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22541be36cSmrg# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23541be36cSmrg# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24541be36cSmrg# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25541be36cSmrg# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26541be36cSmrg# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27541be36cSmrg# SUCH DAMAGE.
28541be36cSmrg
297a0c36beSmrg# libwrap2netbsd:  convert a libwrap tcp_wrappers source tree into a
30541be36cSmrg# netbsd libwrap source tree, ready for importing.
31541be36cSmrg
32541be36cSmrgif [ $# -ne 2 ]; then echo "libwrap2netbsd src dest"; exit 1; fi
33541be36cSmrg
34541be36cSmrgr=$1
35541be36cSmrgd=$2/libwrap
36541be36cSmrg
37541be36cSmrg
38541be36cSmrgecho preparing directory $d
39541be36cSmrgrm -rf $d
40541be36cSmrgmkdir -p $d
41541be36cSmrg
42541be36cSmrg# lame to have these files duplicated.  but, what the hell.
43541be36cSmrgecho copying tree from $r into $d
44541be36cSmrgcd $r
45541be36cSmrgsrc='hosts_access.c options.c shell_cmd.c rfc931.c eval.c hosts_ctl.c
46541be36cSmrgrefuse.c percent_x.c clean_exit.c fix_options.c socket.c workarounds.c
47698a54eaSmrgupdate.c misc.c diag.c'
48541be36cSmrgman='hosts_access.3 hosts_access.5 hosts_options.5'
49541be36cSmrginc='tcpd.h mystdarg.h'
50541be36cSmrgmisc='DISCLAIMER'
51541be36cSmrgpax -rvw $src $man $inc $misc $d
52541be36cSmrg
53541be36cSmrgcd $d
54541be36cSmrg
55541be36cSmrgecho done
56541be36cSmrgexit 0
57