summaryrefslogtreecommitdiff
path: root/www/netscape48-communicator/pkg-req.aout
blob: 39ffedd926a8489bdc8861e27d0e501cca876cbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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 are no aout libs on this machine.            +
+  1. Install compat22 distribution,                 +
+  2. restart your system,                           +
+  3. then retry "make install" this port            +
+     or "pkg_add" this package.                     +
++++++++++++++++++++++++++++++++++++++++++++++++++++++
END
		exit 1
	fi
	$env OBJFORMAT=aout $ldconfig -r | $fgrep -q -e '-lX11.6'
	if [ $? -ne 0 ]; then
		cat <<END
+++++++++++++++++++++++++++++++++++++++++++++
+ There are no X aout libs on this machine. +
+++++++++++++++++++++++++++++++++++++++++++++
END
		exit 1
	fi
fi
exit 0;