head	1.2;
access;
symbols
	RELENG_2_2_8_RELEASE:1.1.1.3.2.1
	RELENG_2_2_7_RELEASE:1.1.1.3.2.1
	RELENG_2_2_6_RELEASE:1.1.1.3.2.1
	v8_8_8:1.1.1.5
	SENDMAIL:1.1.1
	RELENG_2_2_5_RELEASE:1.1.1.3.2.1
	v8_8_6:1.1.1.5
	RELENG_2_2_2_RELEASE:1.1.1.3.2.1
	RELENG_2_2_1_RELEASE:1.1.1.3.2.1
	RELENG_2_1_7_RELEASE:1.1.1.1.6.2
	v8_8_4:1.1.1.4
	RELENG_2_1_6_1_RELEASE:1.1.1.1.6.2
	RELENG_2_1_6_RELEASE:1.1.1.1.6.1
	RELENG_2_2:1.1.1.3.0.2
	RELENG_2_2_BP:1.1.1.3
	v8_8_2:1.1.1.3
	v8_7_6:1.1.1.2
	RELENG_2_1_5_RELEASE:1.1.1.1.6.1
	v8_7_5:1.1.1.2
	v8_7_4:1.1.1.2
	v8_7_3:1.1.1.2
	v8_7_2:1.1.1.2
	ALLMAN:1.1.1
	RELENG_2_1_0_RELEASE:1.1.1.1
	v8_6_12:1.1.1.1
	RELENG_2_1_0:1.1.1.1.0.6
	RELENG_2_1_0_BP:1.1.1.1
	RELENG_2_0_5_RELEASE:1.1.1.1
	RELENG_2_0_5:1.1.1.1.0.4
	RELENG_2_0_5_BP:1.1.1.1
	RELENG_2_0_5_ALPHA:1.1.1.1
	V8_6_10:1.1.1.1
	RELEASE_2_0:1.1.1.1
	BETA_2_0:1.1.1.1
	ALPHA_2_0:1.1.1.1.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.2
date	96.12.03.06.21.49;	author peter;	state dead;
branches;
next	1.1;

1.1
date	94.05.26.05.23.13;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.05.26.05.23.14;	author rgrimes;	state Exp;
branches
	1.1.1.1.6.1;
next	1.1.1.2;

1.1.1.2
date	95.12.02.17.24.17;	author peter;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	96.10.24.04.47.11;	author peter;	state Exp;
branches
	1.1.1.3.2.1;
next	1.1.1.4;

1.1.1.4
date	96.12.03.06.05.07;	author peter;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	97.06.27.14.52.17;	author peter;	state Exp;
branches;
next	;

1.1.1.3.2.1
date	96.12.03.15.53.45;	author phk;	state dead;
branches;
next	;

1.1.1.1.6.1
date	96.03.25.06.54.17;	author peter;	state Exp;
branches;
next	1.1.1.1.6.2;

1.1.1.1.6.2
date	96.11.22.05.40.05;	author nate;	state Exp;
branches;
next	1.1.1.1.6.3;

1.1.1.1.6.3
date	97.08.14.15.05.14;	author peter;	state dead;
branches;
next	;


desc
@@


1.2
log
@Remove file that we don't have any way of using.  We don't have the other
Makefiles for other OS's in our tree that this uses when not using bmake.
@
text
@#!/bin/sh

# Copyright (c) 1993 Eric P. Allman
# Copyright (c) 1993 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#       @@(#)makesendmail	8.5 (Berkeley) 2/27/94
#

#
#  A quick-and-dirty script to compile sendmail in the presence of
#  multiple architectures and Makefiles.
#

# determine machine architecture
arch=`uname -m`
case $arch
in
  sun4*)	arch=sun4;;

  9000/*)	arch=`echo $arch | sed -e 's/9000.//' -e 's/..$/xx/'`;;
esac

# determine operating system type
os=`uname -s`

# determine operating system release
rel=`uname -r`
rbase=`echo $rel | sed 's/\..*//''`

# now try to find a reasonable object directory
if [ -r obj.$os.$arch.$rel ]; then
	obj=obj.$os.$arch.$rel
elif [ -r obj.$os.$arch.$rbase.x ]; then
	obj=obj.$os.$arch.$rbase.x
elif [ -r obj.$os.$rel ]; then
	obj=obj.$os.$rel
elif [ -r obj.$os.$rbase.x ]; then
	obj=obj.$os.$rbase.x
elif [ -r obj.$os.$arch ]; then
	obj=obj.$os.$arch
elif [ -r obj.$arch.$rel ]; then
	obj=obj.$arch.$rel
elif [ -r obj.$arch.$rbase.x ]; then
	obj=obj.$arch.$rbase.x
elif [ -r obj.$os ]; then
	obj=obj.$os
elif [ -r obj.$arch ]; then
	obj=obj.$arch
elif [ -r obj.$rel ]; then
	obj=obj.$rel
else
	# no existing obj directory -- try to create one if Makefile found
	obj=obj.$os.$arch.$rel
	if [ -r Makefile.$os.$arch.$rel ]; then
		makefile=Makefile.$os.$arch.$rel
	elif [ -r Makefile.$os.$arch.$rbase.x ]; then
		makefile=Makefile.$os.$arch.$rbase.x
	elif [ -r Makefile.$os.$rel ]; then
		makefile=Makefile.$os.$rel
	elif [ -r Makefile.$os.$rbase.x ]; then
		makefile=Makefile.$os.$rbase.x
	elif [ -r Makefile.$os.$arch ]; then
		makefile=Makefile.$os.$arch
	elif [ -r Makefile.$arch.$rel ]; then
		makefile=Makefile.$arch.$rel
	elif [ -r Makefile.$arch.$rbase.x ]; then
		makefile=Makefile.$arch.$rbase.x
	elif [ -r Makefile.$os ]; then
		makefile=Makefile.$os
	elif [ -r Makefile.$arch ]; then
		makefile=Makefile.$arch
	elif [ -r Makefile.$rel ]; then
		makefile=Makefile.$rel
	else
		echo "Cannot determine how to support $arch.$os.$rel"
		exit 1
	fi
	echo "Creating $obj using $makefile"
	mkdir $obj
	(cd $obj; ln -s ../*.[ch158] ../sendmail.hf .; ln -s ../$makefile Makefile)
fi
echo "Making in $obj"
cd $obj
exec make -f Makefile $*
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@BSD 4.4 Lite usr.sbin Sources
@
text
@@


1.1.1.1.6.1
log
@Update sendmail to -current version (8.7.5) to fix various known security
holes and a lot of bugs.

8.7.* has pretty much finished development, 8.8 is in alpha testing.

A seperate commit will follow to do a couple of 2.1.x specific things and
to turn off the infamous 8bitmime->quoted-printable conversion when talking
to older sendmails.

OK'ed by: davidg

(Note: a lot of tags were added behind the scenes for the new files)
@
text
@d35 1
a35 1
#       @@(#)makesendmail	8.29 (Berkeley) 8/1/95
d43 2
a44 59
if [ "x${1-""}" = "x-m" ]
then
	# show Makefile name only
	mflag=1
else
	mflag=""
fi

#
#  Do heuristic guesses !ONLY! for machines that do not have uname
#
if [ -d /LocalApps -a ! -f /bin/uname -a ! -f /usr/bin/uname ]
then
	# probably a NeXT box
	arch=NeXT
	os=Mach
	rel=`strings /mach | grep 'Mach.*:' | sed -e 's/.* Mach //' -e 's/:.*//'`
elif [ -f /usr/sony/bin/machine -a -f /etc/osversion ]
then
	# probably a Sony NEWS 4.x
	os=NEWS-OS
	rel=`awk '{ print $3}' /etc/osversion`
	arch=`/usr/sony/bin/machine`
elif [ -d /usr/omron -a -f /bin/luna ]
then
	# probably a Omron LUNA
	os=LUNA
	if [ -f /bin/luna1 ] && /bin/luna1
	then
		rel=unios-b
		arch=luna1
	elif [ -f /bin/luna2 ] && /bin/luna2
	then
		rel=Mach
		arch=luna2
	elif [ -f /bin/luna88k ] && /bin/luna88k
	then
		rel=Mach
		arch=luna88k
	fi
fi

if [ ! "$arch" -a ! "$os" -a ! "$rel" ]
then
	arch=`uname -m | sed -e 's/ //g'`
	os=`uname -s | sed 's/\//-/g'`
	rel=`uname -r`
fi

#
#  Tweak the values we have already got.  PLEASE LIMIT THESE to
#  tweaks that are absolutely necessary because your system uname
#  routine doesn't return something sufficiently unique.  Don't do
#  it just because you don't like the name that is returned.  You
#  can combine the architecture name with the os name to create a
#  unique Makefile name.
#

# tweak machine architecture
d52 2
a53 9
# tweak operating system type and release
case $os
in
  DYNIX-ptx)	os=PTX;;
  Paragon*)	os=Paragon;;
  HP-UX)	rel=`echo $rel | sed -e 's/^[^.]*\.0*//'`;;
  AIX)		rel=`uname -v`;;
  BSD-386)	os=BSD-OS;;
esac
d55 3
a57 49
# get "base part" of operating system release
rbase=`echo $rel | sed -e 's/\..*//'`

# heuristic tweaks to clean up names -- PLEASE LIMIT THESE!
if [ "$os" = "unix" ]
then
	# might be Altos System V
	case $rel
	in
	  5.3*)		os=Altos;;
	esac
elif [ -r /unix -a -r /usr/lib/libseq.a -a -r /lib/cpp ]
then
	# might be a DYNIX/ptx 2.x system, which has a broken uname
	if strings /lib/cpp | grep _SEQUENT_ > /dev/null
	then
		os=PTX
	fi
elif [ -d /usr/nec ]
then
	# NEC machine -- what is it running?
	if [ "$os" = "UNIX_System_V" ]
	then
		os=EWS-UX_V
	elif [ "$os" = "UNIX_SV" ]
	then
		os=UX4800
	fi
elif [ "$arch" = "mips" ]
then
	case $rel
	in
	  4_*)
		if [ `uname -v` = "UMIPS" ]
		then
			os=RISCos
		fi;;
	esac
fi

# see if there is a "user suffix" specified
if [ "${SENDMAIL_SUFFIX-}x" = "x" ]
then
	sfx=""
else
	sfx=".${SENDMAIL_SUFFIX}"
fi

echo "Configuration: os=$os, rel=$rel, rbase=$rbase, arch=$arch, sfx=$sfx"
d60 20
a79 22
if [ -r obj.$os.$rel.$arch$sfx ]; then
	obj=obj.$os.$rel.$arch$sfx
elif [ -r obj.$os.$rbase.x.$arch$sfx ]; then
	obj=obj.$os.$rbase.x.$arch$sfx
elif [ -r obj.$os.$rel$sfx ]; then
	obj=obj.$os.$rel$sfx
elif [ -r obj.$os.$rbase.x$sfx ]; then
	obj=obj.$os.$rbase.x$sfx
elif [ -r obj.$os.$arch$sfx ]; then
	obj=obj.$os.$arch$sfx
elif [ -r obj.$rel.$arch$sfx ]; then
	obj=obj.$rel.$arch$sfx
elif [ -r obj.$rbase.x.$arch$sfx ]; then
	obj=obj.$rbase.x.$arch$sfx
elif [ -r obj.$os$sfx ]; then
	obj=obj.$os$sfx
elif [ -r obj.$arch$sfx ]; then
	obj=obj.$arch$sfx
elif [ -r obj.$rel$sfx ]; then
	obj=obj.$rel$sfx
elif [ -r obj$sfx ]; then
	obj=obj$sfx
d82 6
a87 12
	obj=obj.$os.$rel.$arch$sfx
	if [ -r Makefiles/Makefile.$os.$rel.$arch$sfx ]; then
		makefile=Makefile.$os.$rel.$arch$sfx
	elif [ -r Makefiles/Makefile.$os.$rel.$arch ]; then
		makefile=Makefile.$os.$rel.$arch
	elif [ -r Makefiles/Makefile.$os.$rbase.x.$arch$sfx ]; then
		makefile=Makefile.$os.$rbase.x.$arch$sfx
	elif [ -r Makefiles/Makefile.$os.$rbase.x.$arch ]; then
		makefile=Makefile.$os.$rbase.x.$arch
	elif [ -r Makefiles/Makefile.$os.$rel$sfx ]; then
		makefile=Makefile.$os.$rel$sfx
	elif [ -r Makefiles/Makefile.$os.$rel ]; then
d89 1
a89 3
	elif [ -r Makefiles/Makefile.$os.$rbase.x$sfx ]; then
		makefile=Makefile.$os.$rbase.x$sfx
	elif [ -r Makefiles/Makefile.$os.$rbase.x ]; then
d91 1
a91 3
	elif [ -r Makefiles/Makefile.$os.$arch$sfx ]; then
		makefile=Makefile.$os.$arch$sfx
	elif [ -r Makefiles/Makefile.$os.$arch ]; then
d93 5
a97 11
	elif [ -r Makefiles/Makefile.$rel.$arch$sfx ]; then
		makefile=Makefile.$rel.$arch$sfx
	elif [ -r Makefiles/Makefile.$rel.$arch ]; then
		makefile=Makefile.$rel.$arch
	elif [ -r Makefiles/Makefile.$rbase.x.$arch$sfx ]; then
		makefile=Makefile.$rbase.x.$arch$sfx
	elif [ -r Makefiles/Makefile.$rbase.x.$arch ]; then
		makefile=Makefile.$rbase.x.$arch
	elif [ -r Makefiles/Makefile.$os$sfx ]; then
		makefile=Makefile.$os$sfx
	elif [ -r Makefiles/Makefile.$os ]; then
d99 1
a99 3
	elif [ -r Makefiles/Makefile.$arch$sfx ]; then
		makefile=Makefile.$arch$sfx
	elif [ -r Makefiles/Makefile.$arch ]; then
d101 1
a101 3
	elif [ -r Makefiles/Makefile.$rel$sfx ]; then
		makefile=Makefile.$rel$sfx
	elif [ -r Makefiles/Makefile.$rel ]; then
a102 2
	elif [ -r Makefiles/Makefile.$rel$sfx ]; then
		makefile=Makefile.$rel$sfx
a106 5
	if [ "$mflag" ]
	then
		echo "Will run in virgin $obj using $makefile"
		exit 0
	fi
d109 1
a109 3
	(cd $obj; ln -s ../*.[ch158] ../sendmail.hf .; ln -s ../Makefiles/$makefile Makefile)
	echo "Making dependencies in $obj"
	(cd $obj; ${MAKE-make} depend)
a110 23

if [ "$mflag" ]
then
	makefile=`ls -l $obj/Makefile | sed 's/.* //'`
	if [ -z "$makefile" ]
	then
		echo "ERROR: $obj exists but has no Makefile"
		exit 1
	fi
	case $makefile
	in
	  ../Makefiles/*)
		makefile=`echo $makefile | sed 's/...Makefiles.//'`
		echo "Will run in existing $obj using $makefile"
		;;

	  *)
		echo "Will run in existing $obj using custom $makefile"
		;;
	esac
	exit 0
fi

d113 1
a113 6
if [ $# = 0 ]
then
	exec ${MAKE-make}
else
	exec ${MAKE-make} "$@@"
fi
@


1.1.1.1.6.2
log
@Merge-O-Matic.

Bring in the more secure 8.8.3 sources onto the soon to be dead stable
branch in order to have them be part of the 2.1.6a 'security update'.

Reviewed by:	Tom Samplonius <tom@@uniserve.com>
@
text
@d3 1
a3 1
# Copyright (c) 1993, 1996 Eric P. Allman
d35 1
a35 1
#       @@(#)makesendmail	8.41 (Berkeley) 9/23/96
d54 1
a54 1
if [ -d /NextApps -a ! -f /bin/uname -a ! -f /usr/bin/uname ]
d57 3
a59 3
	arch=`hostinfo | sed -n 's/.*Processor type: \([^ ]*\).*/\1/p'`
	os=NeXT
	rel=`hostinfo | sed -n 's/.*NeXT Mach \([0-9\.]*\).*/\1/p'`
d88 2
a89 2
	os=`uname -s | sed -e 's/\//-/g' -e 's/ //g'`
	rel=`uname -r | sed -e 's/(/-/g' -e 's/)//g'`
a106 2

  DS/907000)	arch=ds90;;
d115 1
a115 5
  AIX)		rel=`uname -v`
		if [ "$rel" = "2" ]
		then
			arch=""
		fi;;
a116 6
  SCO_SV)	os=SCO; rel=`uname -X | sed -n 's/Release = 3.2v//p'`;;
  UNIX_System_V) if [ "$arch" = "ds90" ]
		then
			os="UXPDS"
			rel=`uname -v | sed -e 's/\(V.*\)L.*/\1/'`
		fi;;
a119 1
rroot=`echo $rel | sed -e 's/\.[^.]*$//'`
a120 4
if [ "$rroot" = "$rbase" ]
then
	rroot=$rel
fi
d167 1
a167 1
echo "Configuration: os=$os, rel=$rel, rbase=$rbase, rroot=$rroot, arch=$arch, sfx=$sfx"
a171 2
elif [ -r obj.$os.$rroot.$arch$sfx ]; then
	obj=obj.$os.$rroot.$arch$sfx
a198 4
	elif [ -r Makefiles/Makefile.$os.$rroot.$arch$sfx ]; then
		makefile=Makefile.$os.$rroot.$arch$sfx
	elif [ -r Makefiles/Makefile.$os.$rroot.$arch ]; then
		makefile=Makefile.$os.$rroot.$arch
a206 4
	elif [ -r Makefiles/Makefile.$os.$rroot$sfx ]; then
		makefile=Makefile.$os.$rroot$sfx
	elif [ -r Makefiles/Makefile.$os.$rroot ]; then
		makefile=Makefile.$os.$rroot
a218 4
	elif [ -r Makefiles/Makefile.$rroot.$arch$sfx ]; then
		makefile=Makefile.$rroot.$arch$sfx
	elif [ -r Makefiles/Makefile.$rroot.$arch ]; then
		makefile=Makefile.$rroot.$arch
@


1.1.1.1.6.3
log
@Update 2.1.x from sendmail-8.8.5 to 8.8.7
@
text
@@


1.1.1.2
log
@Import Sendmail-8.7.2 as discussed on -current.

The conflict merge will happen shortly after.
@
text
@d35 1
a35 1
#       @@(#)makesendmail	8.29 (Berkeley) 8/1/95
d43 2
a44 59
if [ "x${1-""}" = "x-m" ]
then
	# show Makefile name only
	mflag=1
else
	mflag=""
fi

#
#  Do heuristic guesses !ONLY! for machines that do not have uname
#
if [ -d /LocalApps -a ! -f /bin/uname -a ! -f /usr/bin/uname ]
then
	# probably a NeXT box
	arch=NeXT
	os=Mach
	rel=`strings /mach | grep 'Mach.*:' | sed -e 's/.* Mach //' -e 's/:.*//'`
elif [ -f /usr/sony/bin/machine -a -f /etc/osversion ]
then
	# probably a Sony NEWS 4.x
	os=NEWS-OS
	rel=`awk '{ print $3}' /etc/osversion`
	arch=`/usr/sony/bin/machine`
elif [ -d /usr/omron -a -f /bin/luna ]
then
	# probably a Omron LUNA
	os=LUNA
	if [ -f /bin/luna1 ] && /bin/luna1
	then
		rel=unios-b
		arch=luna1
	elif [ -f /bin/luna2 ] && /bin/luna2
	then
		rel=Mach
		arch=luna2
	elif [ -f /bin/luna88k ] && /bin/luna88k
	then
		rel=Mach
		arch=luna88k
	fi
fi

if [ ! "$arch" -a ! "$os" -a ! "$rel" ]
then
	arch=`uname -m | sed -e 's/ //g'`
	os=`uname -s | sed 's/\//-/g'`
	rel=`uname -r`
fi

#
#  Tweak the values we have already got.  PLEASE LIMIT THESE to
#  tweaks that are absolutely necessary because your system uname
#  routine doesn't return something sufficiently unique.  Don't do
#  it just because you don't like the name that is returned.  You
#  can combine the architecture name with the os name to create a
#  unique Makefile name.
#

# tweak machine architecture
d52 2
a53 9
# tweak operating system type and release
case $os
in
  DYNIX-ptx)	os=PTX;;
  Paragon*)	os=Paragon;;
  HP-UX)	rel=`echo $rel | sed -e 's/^[^.]*\.0*//'`;;
  AIX)		rel=`uname -v`;;
  BSD-386)	os=BSD-OS;;
esac
d55 3
a57 49
# get "base part" of operating system release
rbase=`echo $rel | sed -e 's/\..*//'`

# heuristic tweaks to clean up names -- PLEASE LIMIT THESE!
if [ "$os" = "unix" ]
then
	# might be Altos System V
	case $rel
	in
	  5.3*)		os=Altos;;
	esac
elif [ -r /unix -a -r /usr/lib/libseq.a -a -r /lib/cpp ]
then
	# might be a DYNIX/ptx 2.x system, which has a broken uname
	if strings /lib/cpp | grep _SEQUENT_ > /dev/null
	then
		os=PTX
	fi
elif [ -d /usr/nec ]
then
	# NEC machine -- what is it running?
	if [ "$os" = "UNIX_System_V" ]
	then
		os=EWS-UX_V
	elif [ "$os" = "UNIX_SV" ]
	then
		os=UX4800
	fi
elif [ "$arch" = "mips" ]
then
	case $rel
	in
	  4_*)
		if [ `uname -v` = "UMIPS" ]
		then
			os=RISCos
		fi;;
	esac
fi

# see if there is a "user suffix" specified
if [ "${SENDMAIL_SUFFIX-}x" = "x" ]
then
	sfx=""
else
	sfx=".${SENDMAIL_SUFFIX}"
fi

echo "Configuration: os=$os, rel=$rel, rbase=$rbase, arch=$arch, sfx=$sfx"
d60 20
a79 22
if [ -r obj.$os.$rel.$arch$sfx ]; then
	obj=obj.$os.$rel.$arch$sfx
elif [ -r obj.$os.$rbase.x.$arch$sfx ]; then
	obj=obj.$os.$rbase.x.$arch$sfx
elif [ -r obj.$os.$rel$sfx ]; then
	obj=obj.$os.$rel$sfx
elif [ -r obj.$os.$rbase.x$sfx ]; then
	obj=obj.$os.$rbase.x$sfx
elif [ -r obj.$os.$arch$sfx ]; then
	obj=obj.$os.$arch$sfx
elif [ -r obj.$rel.$arch$sfx ]; then
	obj=obj.$rel.$arch$sfx
elif [ -r obj.$rbase.x.$arch$sfx ]; then
	obj=obj.$rbase.x.$arch$sfx
elif [ -r obj.$os$sfx ]; then
	obj=obj.$os$sfx
elif [ -r obj.$arch$sfx ]; then
	obj=obj.$arch$sfx
elif [ -r obj.$rel$sfx ]; then
	obj=obj.$rel$sfx
elif [ -r obj$sfx ]; then
	obj=obj$sfx
d82 6
a87 12
	obj=obj.$os.$rel.$arch$sfx
	if [ -r Makefiles/Makefile.$os.$rel.$arch$sfx ]; then
		makefile=Makefile.$os.$rel.$arch$sfx
	elif [ -r Makefiles/Makefile.$os.$rel.$arch ]; then
		makefile=Makefile.$os.$rel.$arch
	elif [ -r Makefiles/Makefile.$os.$rbase.x.$arch$sfx ]; then
		makefile=Makefile.$os.$rbase.x.$arch$sfx
	elif [ -r Makefiles/Makefile.$os.$rbase.x.$arch ]; then
		makefile=Makefile.$os.$rbase.x.$arch
	elif [ -r Makefiles/Makefile.$os.$rel$sfx ]; then
		makefile=Makefile.$os.$rel$sfx
	elif [ -r Makefiles/Makefile.$os.$rel ]; then
d89 1
a89 3
	elif [ -r Makefiles/Makefile.$os.$rbase.x$sfx ]; then
		makefile=Makefile.$os.$rbase.x$sfx
	elif [ -r Makefiles/Makefile.$os.$rbase.x ]; then
d91 1
a91 3
	elif [ -r Makefiles/Makefile.$os.$arch$sfx ]; then
		makefile=Makefile.$os.$arch$sfx
	elif [ -r Makefiles/Makefile.$os.$arch ]; then
d93 5
a97 11
	elif [ -r Makefiles/Makefile.$rel.$arch$sfx ]; then
		makefile=Makefile.$rel.$arch$sfx
	elif [ -r Makefiles/Makefile.$rel.$arch ]; then
		makefile=Makefile.$rel.$arch
	elif [ -r Makefiles/Makefile.$rbase.x.$arch$sfx ]; then
		makefile=Makefile.$rbase.x.$arch$sfx
	elif [ -r Makefiles/Makefile.$rbase.x.$arch ]; then
		makefile=Makefile.$rbase.x.$arch
	elif [ -r Makefiles/Makefile.$os$sfx ]; then
		makefile=Makefile.$os$sfx
	elif [ -r Makefiles/Makefile.$os ]; then
d99 1
a99 3
	elif [ -r Makefiles/Makefile.$arch$sfx ]; then
		makefile=Makefile.$arch$sfx
	elif [ -r Makefiles/Makefile.$arch ]; then
d101 1
a101 3
	elif [ -r Makefiles/Makefile.$rel$sfx ]; then
		makefile=Makefile.$rel$sfx
	elif [ -r Makefiles/Makefile.$rel ]; then
a102 2
	elif [ -r Makefiles/Makefile.$rel$sfx ]; then
		makefile=Makefile.$rel$sfx
a106 5
	if [ "$mflag" ]
	then
		echo "Will run in virgin $obj using $makefile"
		exit 0
	fi
d109 1
a109 3
	(cd $obj; ln -s ../*.[ch158] ../sendmail.hf .; ln -s ../Makefiles/$makefile Makefile)
	echo "Making dependencies in $obj"
	(cd $obj; ${MAKE-make} depend)
a110 23

if [ "$mflag" ]
then
	makefile=`ls -l $obj/Makefile | sed 's/.* //'`
	if [ -z "$makefile" ]
	then
		echo "ERROR: $obj exists but has no Makefile"
		exit 1
	fi
	case $makefile
	in
	  ../Makefiles/*)
		makefile=`echo $makefile | sed 's/...Makefiles.//'`
		echo "Will run in existing $obj using $makefile"
		;;

	  *)
		echo "Will run in existing $obj using custom $makefile"
		;;
	esac
	exit 0
fi

d113 1
a113 6
if [ $# = 0 ]
then
	exec ${MAKE-make}
else
	exec ${MAKE-make} "$@@"
fi
@


1.1.1.3
log
@Import sendmail-8.8.2 onto the vendor branch

Obtained from: Eric Allman <eric@@sendmail.org>
@
text
@d3 1
a3 1
# Copyright (c) 1993, 1996 Eric P. Allman
d35 1
a35 1
#       @@(#)makesendmail	8.41 (Berkeley) 9/23/96
d54 1
a54 1
if [ -d /NextApps -a ! -f /bin/uname -a ! -f /usr/bin/uname ]
d57 3
a59 3
	arch=`hostinfo | sed -n 's/.*Processor type: \([^ ]*\).*/\1/p'`
	os=NeXT
	rel=`hostinfo | sed -n 's/.*NeXT Mach \([0-9\.]*\).*/\1/p'`
d88 2
a89 2
	os=`uname -s | sed -e 's/\//-/g' -e 's/ //g'`
	rel=`uname -r | sed -e 's/(/-/g' -e 's/)//g'`
a106 2

  DS/907000)	arch=ds90;;
d115 1
a115 5
  AIX)		rel=`uname -v`
		if [ "$rel" = "2" ]
		then
			arch=""
		fi;;
a116 6
  SCO_SV)	os=SCO; rel=`uname -X | sed -n 's/Release = 3.2v//p'`;;
  UNIX_System_V) if [ "$arch" = "ds90" ]
		then
			os="UXPDS"
			rel=`uname -v | sed -e 's/\(V.*\)L.*/\1/'`
		fi;;
a119 1
rroot=`echo $rel | sed -e 's/\.[^.]*$//'`
a120 4
if [ "$rroot" = "$rbase" ]
then
	rroot=$rel
fi
d167 1
a167 1
echo "Configuration: os=$os, rel=$rel, rbase=$rbase, rroot=$rroot, arch=$arch, sfx=$sfx"
a171 2
elif [ -r obj.$os.$rroot.$arch$sfx ]; then
	obj=obj.$os.$rroot.$arch$sfx
a198 4
	elif [ -r Makefiles/Makefile.$os.$rroot.$arch$sfx ]; then
		makefile=Makefile.$os.$rroot.$arch$sfx
	elif [ -r Makefiles/Makefile.$os.$rroot.$arch ]; then
		makefile=Makefile.$os.$rroot.$arch
a206 4
	elif [ -r Makefiles/Makefile.$os.$rroot$sfx ]; then
		makefile=Makefile.$os.$rroot$sfx
	elif [ -r Makefiles/Makefile.$os.$rroot ]; then
		makefile=Makefile.$os.$rroot
a218 4
	elif [ -r Makefiles/Makefile.$rroot.$arch$sfx ]; then
		makefile=Makefile.$rroot.$arch$sfx
	elif [ -r Makefiles/Makefile.$rroot.$arch ]; then
		makefile=Makefile.$rroot.$arch
@


1.1.1.3.2.1
log
@YAMFC
@
text
@@


1.1.1.4
log
@Import sendmail 8.8.4.  See RELEASE_NOTES for changes.
@
text
@d35 1
a35 1
#       @@(#)makesendmail	8.42 (Berkeley) 11/10/96
a111 7
node=`uname -n | sed -e 's/\//-/g' -e 's/ //g'`
if [ "$os" = "$node" -a "$arch" = "i386" -a "$rel" = 3.2 -a "`uname -v`" = 2 ]
then
	# old versions of SCO UNIX set uname -s the same as uname -n
	os=SCO_SV
fi

@


1.1.1.5
log
@Import sendmail-8.8.6

Obtained from: ftp.sendmail.org
@
text
@d3 1
a3 1
# Copyright (c) 1993, 1996-1997 Eric P. Allman
d35 1
a35 1
#       @@(#)makesendmail	8.45 (Berkeley) 4/12/97
a117 10
if [ "$os" = "$node" -a "$rel" = 4.0 -a "$arch" = "3360,3430-R" ]
then
	# AT&T/NCR Machines also set uname -s == uname -n
	if [ -d /usr/sadm/sysadm/add-ons/WIN-TCP ]
	then
		os=NCR.MP-RAS.2.x
	else
		os=NCR.MP-RAS.3.x
	fi
fi
a135 1
  SINIX-?)	os=SINIX;;
@
