1*f1fab66eSDavid van Moolenbroek#! /bin/sh 2*f1fab66eSDavid van Moolenbroek# 3*f1fab66eSDavid van Moolenbroek# $NetBSD: libwrap2netbsd,v 1.6 2008/05/29 14:51:25 mrg Exp $ 4*f1fab66eSDavid van Moolenbroek# 5*f1fab66eSDavid van Moolenbroek# Copyright (c) 1996 Matthew R. Green 6*f1fab66eSDavid van Moolenbroek# All rights reserved. 7*f1fab66eSDavid van Moolenbroek# 8*f1fab66eSDavid van Moolenbroek# Redistribution and use in source and binary forms, with or without 9*f1fab66eSDavid van Moolenbroek# modification, are permitted provided that the following conditions 10*f1fab66eSDavid van Moolenbroek# are met: 11*f1fab66eSDavid van Moolenbroek# 1. Redistributions of source code must retain the above copyright 12*f1fab66eSDavid van Moolenbroek# notice, this list of conditions and the following disclaimer. 13*f1fab66eSDavid van Moolenbroek# 2. Redistributions in binary form must reproduce the above copyright 14*f1fab66eSDavid van Moolenbroek# notice, this list of conditions and the following disclaimer in the 15*f1fab66eSDavid van Moolenbroek# documentation and/or other materials provided with the distribution. 16*f1fab66eSDavid van Moolenbroek# 17*f1fab66eSDavid van Moolenbroek# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18*f1fab66eSDavid van Moolenbroek# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19*f1fab66eSDavid van Moolenbroek# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20*f1fab66eSDavid van Moolenbroek# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21*f1fab66eSDavid van Moolenbroek# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 22*f1fab66eSDavid van Moolenbroek# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23*f1fab66eSDavid van Moolenbroek# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 24*f1fab66eSDavid van Moolenbroek# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25*f1fab66eSDavid van Moolenbroek# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26*f1fab66eSDavid van Moolenbroek# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27*f1fab66eSDavid van Moolenbroek# SUCH DAMAGE. 28*f1fab66eSDavid van Moolenbroek 29*f1fab66eSDavid van Moolenbroek# libwrap2netbsd: convert a libwrap tcp_wrappers source tree into a 30*f1fab66eSDavid van Moolenbroek# netbsd libwrap source tree, ready for importing. 31*f1fab66eSDavid van Moolenbroek 32*f1fab66eSDavid van Moolenbroekif [ $# -ne 2 ]; then echo "libwrap2netbsd src dest"; exit 1; fi 33*f1fab66eSDavid van Moolenbroek 34*f1fab66eSDavid van Moolenbroekr=$1 35*f1fab66eSDavid van Moolenbroekd=$2/libwrap 36*f1fab66eSDavid van Moolenbroek 37*f1fab66eSDavid van Moolenbroek 38*f1fab66eSDavid van Moolenbroekecho preparing directory $d 39*f1fab66eSDavid van Moolenbroekrm -rf $d 40*f1fab66eSDavid van Moolenbroekmkdir -p $d 41*f1fab66eSDavid van Moolenbroek 42*f1fab66eSDavid van Moolenbroek# lame to have these files duplicated. but, what the hell. 43*f1fab66eSDavid van Moolenbroekecho copying tree from $r into $d 44*f1fab66eSDavid van Moolenbroekcd $r 45*f1fab66eSDavid van Moolenbroeksrc='hosts_access.c options.c shell_cmd.c rfc931.c eval.c hosts_ctl.c 46*f1fab66eSDavid van Moolenbroekrefuse.c percent_x.c clean_exit.c fix_options.c socket.c workarounds.c 47*f1fab66eSDavid van Moolenbroekupdate.c misc.c diag.c' 48*f1fab66eSDavid van Moolenbroekman='hosts_access.3 hosts_access.5 hosts_options.5' 49*f1fab66eSDavid van Moolenbroekinc='tcpd.h mystdarg.h' 50*f1fab66eSDavid van Moolenbroekmisc='DISCLAIMER' 51*f1fab66eSDavid van Moolenbroekpax -rvw $src $man $inc $misc $d 52*f1fab66eSDavid van Moolenbroek 53*f1fab66eSDavid van Moolenbroekcd $d 54*f1fab66eSDavid van Moolenbroek 55*f1fab66eSDavid van Moolenbroekecho done 56*f1fab66eSDavid van Moolenbroekexit 0 57