freebsd-ports/chinese/XFree86-aoutlibs/pkg-req
Jing-Tang Keith Jang 90e4e09986 Fix install problems when zh-XFree86-aoutlibs is installed from
sysinstall at early install stage.

Submitted by:	Jimmy Olgeni <olgeni@FreeBSD.org>
2001-02-09 20:34:28 +00:00

27 lines
679 B
Bash

#!/bin/sh
if [ -n "${BATCH}" -o -n "${PACKAGE_BUILDING}" ]; then
exit 0
fi
env=/usr/bin/env
fgrep=/usr/bin/fgrep
ldconfig=/sbin/ldconfig
ld_so=/usr/libexec/ld.so
if [ x$2 = xINSTALL ]; then
$env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lc.3'
if [ $? -ne 0 -o ! -x $ld_so ]; then
cat <<END
*********************************************************************
There do not appear to be any a.out libraries on this
machine. Please install the compat22 distribution (via
/stand/sysinstall) or build it as part of your 'make world'
(see /etc/make.conf).
*********************************************************************
END
exit 1
fi
fi
exit 0;