1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Re-enable warning message with compat22 lib, for package users.

Approved by:	Palle Girgensohn <girgen@partitur.se>
This commit is contained in:
SADA Kenji 2000-03-11 17:22:02 +00:00
parent 4a33a5a8ae
commit 516c38517f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26760
7 changed files with 89 additions and 14 deletions

View File

@ -24,8 +24,7 @@ BROWSER= communicator-linux
WRKSRC= ${WRKDIR}/communicator-v472.x86-unknown-linux2.0
# use fake shell REQ script, since we don't require X aout libs.
PKGREQ= ${.CURDIR}/pkg/REQ
USE_LINUX_LIB= yes
MAILCAP= ${.CURDIR}/files/mailcap
NSUBDIR= lib/netscape-linux

View File

@ -24,8 +24,7 @@ BROWSER= communicator-linux
WRKSRC= ${WRKDIR}/communicator-v472.x86-unknown-linux2.0
# use fake shell REQ script, since we don't require X aout libs.
PKGREQ= ${.CURDIR}/pkg/REQ
USE_LINUX_LIB= yes
MAILCAP= ${.CURDIR}/files/mailcap
NSUBDIR= lib/netscape-linux

View File

@ -13,8 +13,6 @@ DISTFILES?= communicator-v408-export.x86-unknown-freebsd.tar.gz
MAINTAINER?= sada@FreeBSD.org
RUN_DEPENDS?= ${X11BASE}/lib/aout/libX11.so.6.1:${PORTSDIR}/x11/XFree86-aoutlibs
Y2K= http://home.netscape.com/products/year2000/faq/client.html
.if !defined(INFILE_HEAD)
@ -28,7 +26,6 @@ NO_FILTER_SHLIBS= yes
STRIP=
WRKSRC?= ${WRKDIR}/${BROWSER}-v408.x86-unknown-freebsd
PKGDIR= ${.CURDIR}/pkg
PKGREQ?= ${MASTERDIR}/pkg/REQ
AUTOADMIN?= autoadmin-v408.x86-unknown-freebsd.tar.gz
BROWSER?= communicator
@ -55,6 +52,16 @@ DISTFILES+= ${FORTIFY}.tar.gz
RESTRICTED= "Contains strong cryptography"
.endif
.if !defined(_PREMKINCLUDED)
.include <bsd.port.pre.mk>
.endif
.if (${ARCH} == "i386") && !defined(USE_LINUX_LIB)
USE_AOUT_LIB= yes
PKGREQ= ${MASTERDIR}/pkg/REQ.aout
RUN_DEPENDS= ${X11BASE}/lib/aout/libX11.so.6.1:${PORTSDIR}/x11/XFree86-aoutlibs
.endif
.SILENT:
.if !defined(USE_128BIT) && !defined(NO_FORTIFY)
@ -70,8 +77,10 @@ post-configure:
${CHMOD} +x ${WRKSRC}/netscape
${ECHO} -n ${INFILE_HEAD},${NDIR} >${WRKSRC}/infile
.if defined(USE_AOUT_LIB)
pre-install:
PKG_PREFIX=${PREFIX} ${SH} ${PKGREQ} ${PKGNAME} INSTALL
.endif
do-install:
${MKDIR} ${NDIR}/java/classes
@ -104,7 +113,7 @@ post-install:
${CAT} ${PKGDIR}/DESCR
# hack to allow slave ports to include bsd.port.pre.mk and then this file
.if defined(PRE_MK_INCLUDED)
.if defined(_PREMKINCLUDED)
.include <bsd.port.post.mk>
.else
.include <bsd.port.mk>

View File

@ -0,0 +1,30 @@
#!/bin/sh
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;

View File

@ -13,8 +13,6 @@ DISTFILES?= communicator-v408-export.x86-unknown-freebsd.tar.gz
MAINTAINER?= sada@FreeBSD.org
RUN_DEPENDS?= ${X11BASE}/lib/aout/libX11.so.6.1:${PORTSDIR}/x11/XFree86-aoutlibs
Y2K= http://home.netscape.com/products/year2000/faq/client.html
.if !defined(INFILE_HEAD)
@ -28,7 +26,6 @@ NO_FILTER_SHLIBS= yes
STRIP=
WRKSRC?= ${WRKDIR}/${BROWSER}-v408.x86-unknown-freebsd
PKGDIR= ${.CURDIR}/pkg
PKGREQ?= ${MASTERDIR}/pkg/REQ
AUTOADMIN?= autoadmin-v408.x86-unknown-freebsd.tar.gz
BROWSER?= communicator
@ -55,6 +52,16 @@ DISTFILES+= ${FORTIFY}.tar.gz
RESTRICTED= "Contains strong cryptography"
.endif
.if !defined(_PREMKINCLUDED)
.include <bsd.port.pre.mk>
.endif
.if (${ARCH} == "i386") && !defined(USE_LINUX_LIB)
USE_AOUT_LIB= yes
PKGREQ= ${MASTERDIR}/pkg/REQ.aout
RUN_DEPENDS= ${X11BASE}/lib/aout/libX11.so.6.1:${PORTSDIR}/x11/XFree86-aoutlibs
.endif
.SILENT:
.if !defined(USE_128BIT) && !defined(NO_FORTIFY)
@ -70,8 +77,10 @@ post-configure:
${CHMOD} +x ${WRKSRC}/netscape
${ECHO} -n ${INFILE_HEAD},${NDIR} >${WRKSRC}/infile
.if defined(USE_AOUT_LIB)
pre-install:
PKG_PREFIX=${PREFIX} ${SH} ${PKGREQ} ${PKGNAME} INSTALL
.endif
do-install:
${MKDIR} ${NDIR}/java/classes
@ -104,7 +113,7 @@ post-install:
${CAT} ${PKGDIR}/DESCR
# hack to allow slave ports to include bsd.port.pre.mk and then this file
.if defined(PRE_MK_INCLUDED)
.if defined(_PREMKINCLUDED)
.include <bsd.port.post.mk>
.else
.include <bsd.port.mk>

View File

@ -0,0 +1,30 @@
#!/bin/sh
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;

View File

@ -24,8 +24,7 @@ BROWSER= communicator-linux
WRKSRC= ${WRKDIR}/communicator-v472.x86-unknown-linux2.0
# use fake shell REQ script, since we don't require X aout libs.
PKGREQ= ${.CURDIR}/pkg/REQ
USE_LINUX_LIB= yes
MAILCAP= ${.CURDIR}/files/mailcap
NSUBDIR= lib/netscape-linux