libwrap2netbsd revision 1.6
11.1Smrg#! /bin/sh
21.1Smrg#
31.6Smrg#	$NetBSD: libwrap2netbsd,v 1.6 2008/05/29 14:51:25 mrg Exp $
41.1Smrg#
51.1Smrg# Copyright (c) 1996 Matthew R. Green
61.1Smrg# All rights reserved.
71.1Smrg#
81.1Smrg# Redistribution and use in source and binary forms, with or without
91.1Smrg# modification, are permitted provided that the following conditions
101.1Smrg# are met:
111.1Smrg# 1. Redistributions of source code must retain the above copyright
121.1Smrg#    notice, this list of conditions and the following disclaimer.
131.1Smrg# 2. Redistributions in binary form must reproduce the above copyright
141.1Smrg#    notice, this list of conditions and the following disclaimer in the
151.1Smrg#    documentation and/or other materials provided with the distribution.
161.1Smrg#
171.1Smrg# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
181.1Smrg# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
191.1Smrg# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
201.1Smrg# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
211.1Smrg# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
221.1Smrg# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
231.1Smrg# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
241.1Smrg# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
251.1Smrg# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
261.1Smrg# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
271.1Smrg# SUCH DAMAGE.
281.1Smrg
291.3Smrg# libwrap2netbsd:  convert a libwrap tcp_wrappers source tree into a
301.1Smrg# netbsd libwrap source tree, ready for importing.
311.1Smrg
321.1Smrgif [ $# -ne 2 ]; then echo "libwrap2netbsd src dest"; exit 1; fi
331.1Smrg
341.1Smrgr=$1
351.1Smrgd=$2/libwrap
361.1Smrg
371.1Smrg
381.1Smrgecho preparing directory $d
391.1Smrgrm -rf $d
401.1Smrgmkdir -p $d
411.1Smrg
421.1Smrg# lame to have these files duplicated.  but, what the hell.
431.1Smrgecho copying tree from $r into $d
441.1Smrgcd $r
451.1Smrgsrc='hosts_access.c options.c shell_cmd.c rfc931.c eval.c hosts_ctl.c
461.1Smrgrefuse.c percent_x.c clean_exit.c fix_options.c socket.c workarounds.c
471.2Smrgupdate.c misc.c diag.c'
481.1Smrgman='hosts_access.3 hosts_access.5 hosts_options.5'
491.1Smrginc='tcpd.h mystdarg.h'
501.1Smrgmisc='DISCLAIMER'
511.1Smrgpax -rvw $src $man $inc $misc $d
521.1Smrg
531.1Smrgcd $d
541.1Smrg
551.1Smrgecho done
561.1Smrgexit 0
57