- add in support for installing and Fortifying Netscape SunOS4 bin for SPARC

This commit is contained in:
brad 1999-05-06 16:57:57 +00:00
parent 214798eeb3
commit e397cb58fc
13 changed files with 407 additions and 27 deletions

View File

@ -1,40 +1,60 @@
# $OpenBSD: Makefile,v 1.8 1999/04/29 08:09:58 jakob Exp $
# $OpenBSD: Makefile,v 1.9 1999/05/06 16:57:57 brad Exp $
#
# Relevant URLs: http://www.bsdi.com/netscape/
# http://www.fortify.net/
# WARNING: Requires a kernel built with 'option COMPAT_BSDOS'
#
# WARNING
# -------
# i386: Requires a kernel built with
# 'option COMPAT_BSDOS' and 'option COMPAT_43'
# SPARC: Requires a kernel built with
# 'option COMPAT_SUNOS'
ONLY_FOR_ARCHS= i386 sparc
NEED_VERSION= 1.89
NS_i386= navigator-v451-export.x86-bsdi-bsd2.tar.gz
NS_SPARC= navigator-v451-export.sparc-sun-sunos4.1.3_U1.tar.gz
FORTIFY_i386= Fortify-1.4.1-unix-x86.tar.gz
FORTIFY_SPARC= Fortify-1.4.1-unix-sparc.tar.gz
.if ${MACHINE_ARCH} == "i386"
DISTNAME= navigator-v451-export.x86-bsdi-bsd2
NAVIGATORNAME= navigator-v451.x86-bsdi-bsd2
FORTIFYNAME= Fortify-1.4.1-unix-x86
.endif
.if ${MACHINE_ARCH} == "sparc"
DISTNAME= navigator-v451-export.sparc-sun-sunos4.1.3_U1
NAVIGATORNAME= navigator-v451.sparc-sun-sunos4.1.3_U1
FORTIFYNAME= Fortify-1.4.1-unix-sparc
.endif
PKGNAME= navigator-4.51-fortified
CATEGORIES= www
DIST_SUBDIR= ${PKGNAME}
WRKSRC= ${WRKDIR}
NO_CDROM= "NOFEE: see http://www.fortify.net/copyright.txt"
ONLY_FOR_ARCHS= i386
NAVIGATORNAME= navigator-v451.x86-bsdi-bsd2
MASTER_SITES= ftp://ftp.netscape.com/pub/communicator/4.51/english/unix/unsupported/bsdi21/navigator_standalone/
FORTIFYNAME= Fortify-1.4.1-unix-x86
MASTER_SITES+= ftp://ftp.fortify.net/pub/Fortify/ \
MASTER_SITES= ftp://ftp.fortify.net/pub/Fortify/ \
ftp://ftp.netscape.com/pub/communicator/4.51/english/unix/unsupported/bsdi21/navigator_standalone/ \
ftp://ftp.netscape.com/pub/communicator/4.51/english/unix/unsupported/sunos413/navigator_standalone/ \
ftp://ftp.sunet.se/pub/security/tools/net/Fortify/ \
ftp://ftp.funet.fi/pub/crypt/mirrors/fortify/ \
ftp://ftp.replay.com/pub/crypto/apache/Fortify/ \
ftp://ftp.it.net.au/mirrors/Fortify/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${FORTIFYNAME}${EXTRACT_SUFX}
DISTFILES= ${DISTNAME}.tar.gz \
${FORTIFYNAME}.tar.gz
SUPDISTFILES= ${NS_i386} ${NS_SPARC} ${FORTIFY_i386} ${FORTIFY_SPARC}
OBJMACHINE= "yes"
NO_WRKSUBDIR= "No work subdirectory"
NO_CONFIGURE= "No configure scripts"
IS_INTERACTIVE= "Netscape installer"
MAINTAINER= ports@OpenBSD.ORG
MAINTAINER= brad@openbsd.org
.if !defined(NO_WARNINGS)
pre-fetch:
.if !defined(NO_WARNINGS)
.if ${MACHINE_ARCH} == "i386"
@${ECHO} ""
@${ECHO} " WARNING: This application requires a kernel compiled with"
@${ECHO} " 'option COMPAT_BSDOS' and 'option COMPAT_43'"
@ -42,6 +62,14 @@ pre-fetch:
@${ECHO} " these options."
@${ECHO} ""
.endif
.if ${MACHINE_ARCH} == "sparc"
@${ECHO} ""
@${ECHO} " WARNING: This application requires a kernel compiled with"
@${ECHO} " 'option COMPAT_SUNOS' for proper operation. The"
@${ECHO} " GENERIC kernel contains these options."
@${ECHO} ""
.endif
.endif
do-build:
@cd ${WRKDIR}/${FORTIFYNAME}/src/common && \
@ -55,8 +83,9 @@ do-install:
post-install:
@cd ${WRKDIR}/${FORTIFYNAME} && \
src/cmdline/fortify ${PREFIX}/netscape/netscape
@sed 's#@netscape_home@#${PREFIX}/netscape#' ${FILESDIR}/netscape > ${WRKDIR}/netscape
-if test -f ${PREFIX}/bin/netscape ; then \
@sed 's#@netscape_home@#${PREFIX}/netscape#' \
${FILESDIR}/netscape.$MACHINE_ARCH > ${WRKDIR}/netscape
@if test -f ${PREFIX}/bin/netscape ; then \
${MV} ${PREFIX}/bin/netscape ${PREFIX}/bin/netscape.old ; fi
@${INSTALL_SCRIPT} ${WRKDIR}/netscape ${PREFIX}/bin

View File

@ -1,6 +1,12 @@
MD5 (navigator-4.51-fortified/navigator-v451-export.x86-bsdi-bsd2.tar.gz) = 372090644a3d28ad43c4e4a936260cb3
MD5 (navigator-4.51-fortified/Fortify-1.4.1-unix-sparc.tar.gz) = 03f7a5eebde98cc9104587ef2a36f455
MD5 (navigator-4.51-fortified/Fortify-1.4.1-unix-x86.tar.gz) = 561c6405619de7c37d34426b4cff80a2
SHA1 (navigator-4.51-fortified/navigator-v451-export.x86-bsdi-bsd2.tar.gz) = 4753980c546bd0680bf5298c8f3156c901defc3b
SHA1 (navigator-4.51-fortified/Fortify-1.4.1-unix-x86.tar.gz) = 5b0204d152a2f44cca30007aa4bbbb5dd784e311
RMD160 (navigator-4.51-fortified/navigator-v451-export.x86-bsdi-bsd2.tar.gz) = d7c0ec8ce4978b8d67ca78cc09ee2a53e088de85
MD5 (navigator-4.51-fortified/navigator-v451-export.sparc-sun-sunos4.1.3_U1.tar.gz) = c9d01cddd827aade6bf2c32917fc4e74
MD5 (navigator-4.51-fortified/navigator-v451-export.x86-bsdi-bsd2.tar.gz) = 372090644a3d28ad43c4e4a936260cb3
RMD160 (navigator-4.51-fortified/Fortify-1.4.1-unix-sparc.tar.gz) = c95cf641ae86c9a218d904013672903bf642ab16
RMD160 (navigator-4.51-fortified/Fortify-1.4.1-unix-x86.tar.gz) = 4662dbf6dc8b0c475c63493f5827e6f06176acc1
RMD160 (navigator-4.51-fortified/navigator-v451-export.sparc-sun-sunos4.1.3_U1.tar.gz) = 5bd674c219054cd5826fa47ca431b717335b40c1
RMD160 (navigator-4.51-fortified/navigator-v451-export.x86-bsdi-bsd2.tar.gz) = d7c0ec8ce4978b8d67ca78cc09ee2a53e088de85
SHA1 (navigator-4.51-fortified/Fortify-1.4.1-unix-sparc.tar.gz) = 8b22a4ef7149005ac2871d44fc402d16c4705fc2
SHA1 (navigator-4.51-fortified/Fortify-1.4.1-unix-x86.tar.gz) = 5b0204d152a2f44cca30007aa4bbbb5dd784e311
SHA1 (navigator-4.51-fortified/navigator-v451-export.sparc-sun-sunos4.1.3_U1.tar.gz) = ad61cc6500750f8422ea34021f3b3d7e68f303b0
SHA1 (navigator-4.51-fortified/navigator-v451-export.x86-bsdi-bsd2.tar.gz) = 4753980c546bd0680bf5298c8f3156c901defc3b

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: netscape,v 1.5 1999/05/03 14:11:49 brad Exp $
# $OpenBSD: netscape.i386,v 1.1 1999/05/06 16:57:59 brad Exp $
#
# Wrapper for the fortified Netscape navigator program.
# dugsong@openbsd.org

View File

@ -0,0 +1,11 @@
#!/bin/sh
# $OpenBSD: netscape.sparc,v 1.1 1999/05/06 16:57:59 brad Exp $
#
# Wrapper for the fortified Netscape navigator program.
# brad@openbsd.org
XKEYSYMDB=@netscape_home@
XNLSPATH=@netscape_home@/nls
MOZILLA_HOME=@netscape_home@
export XKEYSYMDB XNLSPATH MOZILLA_HOME
exec $MOZILLA_HOME/netscape "$@"

View File

@ -0,0 +1,119 @@
--- navigator-v451.sparc-sun-sunos4.1.3_U1/ns-install.orig Mon May 3 09:00:09 1999
+++ navigator-v451.sparc-sun-sunos4.1.3_U1/ns-install Mon May 3 09:07:15 1999
@@ -87,21 +87,9 @@
fi
#
-# If MOZILLA_HOME is set, assume that is the place to install.
-# Otherwise, make an educated guess at the "right" default
-# directory.
+# We use OpenBSD's ports environment instead.
#
-if test ! -z "${MOZILLA_HOME}"
-then
- INSTALL_DIR="${MOZILLA_HOME}"
-else
- if test -d /opt
- then
- INSTALL_DIR="/opt/netscape"
- else
- INSTALL_DIR="/usr/local/netscape"
- fi
-fi
+INSTALL_DIR="${PREFIX}/netscape"
#
# See if we have to use the lame SYS-V echo command flags.
@@ -139,46 +127,19 @@
fi
done
-echo ""
-echo "Please specify the directory path under which the software will be"
-echo "installed. The default directory is ${INSTALL_DIR}, but you may"
-echo "install anywhere you wish (if you have permission to do so)."
-echo ""
flag=1
while test ${flag} -eq 1
do
- ${ECHO} "Location for ${PRODUCT} software [${INSTALL_DIR}]: ${ENDER}"
- read TARGET
- if test -z "${TARGET}"
- then
- TARGET="${INSTALL_DIR}"
- fi
- if test ! -z "`echo ${TARGET} | grep '~'`"
- then
- TARGET=`echo ${TARGET} | sed "s:~:${HOME}:"`
- fi
+ TARGET="${INSTALL_DIR}"
flag=0
if test ! -d ${TARGET}
then
- echo ""
- ${ECHO} "${TARGET}: No such directory. Do you wish to create it? (y/n)[y] ${ENDER}"
- read check
- if test "${check}" = "n" -o "${check}" = "N"
+ mkdir -p ${TARGET}
+ if test $? -ne 0
then
- flag=1
- else
- #
- # The -p flag may cause an error on some HP-UX systems.
- # Removing the -p will work for 'basename TARGET' as long
- # as 'dirname TARGET' exists.
- #
- mkdir -p ${TARGET}
- if test $? -ne 0
- then
- echo "ERROR: Problem creating ${TARGET}"
- exit 2
- fi
+ echo "ERROR: Problem creating ${TARGET}"
+ exit 2
fi
else
echo ""
@@ -186,13 +147,14 @@
echo ""
echo "The existing contents may be modified or replaced if you install in"
echo "this directory. If you choose not to install in '${TARGET}',"
+ echo "you should set your PREFIX environment variable and try again."
echo "you will be prompted for a different directory."
echo ""
${ECHO} "Do you wish to install in '${TARGET}'? (y/n)[y] ${ENDER}"
read check
if test "${check}" = "n" -o "${check}" = "N"
then
- flag=1
+ exit 2
fi
fi
@@ -203,9 +165,9 @@
then
echo ""
echo "You do not have write permission in ${TARGET}."
- echo "Change the permissions, or select another directory, and try again."
+ echo "Change the permissions and try again."
echo ""
- flag=1
+ exit 2
else
/bin/rm -f ${TARGET}/${TESTFILE}
fi
@@ -294,10 +256,10 @@
# avoid users having to set MOZILLA_JAVA_FONT_PROPERTY_PATH, or
# just assuming Java font-handling is broken.
#
- if test ! -z "`ls /bin/uname`"
+ if test ! -z "`ls /usr/bin/uname`"
then
MOVE_FONTS="TRUE"
- case `/bin/uname` in
+ case `/usr/bin/uname` in
AIX)
PLATFORM="aix"
;;

View File

@ -0,0 +1,26 @@
--- Fortify-1.4.1-unix-sparc/src/common/Makefile-orig Mon May 3 08:53:57 1999
+++ Fortify-1.4.1-unix-sparc/src/common/Makefile Mon May 3 08:55:19 1999
@@ -1,9 +1,9 @@
-CC = gcc # -Wall -ansi
+#CC = gcc # -Wall -ansi
# For GNU/Linux/BSD systems
-CFLAGS = -I. -O2 # -static
-YACC = bison -y
+#CFLAGS = -I. -O2 # -static
+#YACC = bison -y
LDFLAGS = -static
LEX = lex -l
RANLIB = ranlib
@@ -36,8 +36,8 @@
#RANLIB = :
# Everything else
-#CFLAGS = -I. -O
-#YACC = yacc
+CFLAGS = -I. -O
+YACC = yacc
#LDFLAGS = # -static
#RANLIB = :

View File

@ -0,0 +1,28 @@
--- Fortify-1.4.1-unix-sparc/src/cmdline/Makefile-orig Mon May 3 08:55:46 1999
+++ Fortify-1.4.1-unix-sparc/src/cmdline/Makefile Mon May 3 08:56:51 1999
@@ -2,11 +2,11 @@
COMMON = ../common
INC = -I. -I$(COMMON)
-CC = gcc # -Wall
+#CC = gcc # -Wall
# For GNU/Linux systems
-CFLAGS = $(INC) -O2 # -static
-LDFLAGS = -static
+#CFLAGS = $(INC) -O2 # -static
+#LDFLAGS = -static
# MKLinux and Linux-ppc:
#CFLAGS = $(INC) -O2 # -static
@@ -30,8 +30,8 @@
#LDFLAGS = # -static
# Everything else
-#CFLAGS = $(INC) -O
-#LDFLAGS = # -static
+CFLAGS = $(INC) -O2
+LDFLAGS = # -static
# ----------------------------------------------------------------------
# You should not need to modify anything below here

View File

@ -1,5 +1,5 @@
Netscape stand-alone Navigator 4.51 for i386, fortified
-----------------------------------------------------------
Netscape stand-alone Navigator 4.51, fortified
----------------------------------------------
Release notes for this version of Netscape are available on-line. After
starting the program, select "Release Notes" from the "Help" menu. This
@ -13,4 +13,10 @@ This version of Netscape has been modified for OpenBSD using Fortify,
a program that provides world-wide, unconditional, full strength
128-bit cryptography to export-crippled Netscape browsers.
NOTICE: Use of this port requires a kernel compiled with 'option COMPAT_BSDOS'
NOTICE
------
i386: Use of this port requires a kernel compiled with
'option COMPAT_BSDOS' and 'option COMPAT_43'
SPARC: Use of this port requires a kernel compiled with
'option COMPAT_SUNOS'

View File

@ -0,0 +1,155 @@
netscape/README
netscape/LICENSE
netscape/netscape
@unexec rm -f %D/netscape/netscape.sav
netscape/netscape_nis
netscape/Netscape.ad
netscape/XKeysymDB
netscape/bookmark.htm
netscape/dynfonts/libTrueDoc.so
netscape/nls/C
netscape/nls/nls.dir
netscape/java/classes/awt.properties
netscape/java/classes/resource.jar
netscape/java/classes/font.properties
netscape/java/classes/font.properties.zh_TW_Big5
netscape/java/classes/font.properties.zh_TW
netscape/java/classes/font.properties.zh_GB2312
netscape/java/classes/font.properties.zh
netscape/java/classes/font.properties.tr
netscape/java/classes/font.properties.ru
netscape/java/classes/font.properties.pl
netscape/java/classes/font.properties.lv
netscape/java/classes/font.properties.lt
netscape/java/classes/font.properties.ko
netscape/java/classes/font.properties.ja
netscape/java/classes/font.properties.hu
netscape/java/classes/font.properties.el
netscape/java/classes/font.properties.cs
netscape/java/classes/aix/font.properties
netscape/java/classes/aix/font.properties.cs
netscape/java/classes/aix/font.properties.hu
netscape/java/classes/aix/font.properties.ja
netscape/java/classes/aix/font.properties.ko
netscape/java/classes/aix/font.properties.pl
netscape/java/classes/aix/font.properties.ru
netscape/java/classes/aix/font.properties.zh
netscape/java/classes/aix/font.properties.zh_TW
netscape/java/classes/hpux/font.properties
netscape/java/classes/hpux/font.properties.bg
netscape/java/classes/hpux/font.properties.cs
netscape/java/classes/hpux/font.properties.el
netscape/java/classes/hpux/font.properties.hr
netscape/java/classes/hpux/font.properties.hu
netscape/java/classes/hpux/font.properties.ja
netscape/java/classes/hpux/font.properties.ko
netscape/java/classes/hpux/font.properties.pl
netscape/java/classes/hpux/font.properties.ro
netscape/java/classes/hpux/font.properties.ru
netscape/java/classes/hpux/font.properties.sk
netscape/java/classes/hpux/font.properties.sl
netscape/java/classes/hpux/font.properties.tr
netscape/java/classes/hpux/font.properties.zh_GB2312
netscape/java/classes/hpux/font.properties.zh_TW_Big5
netscape/java/classes/hpux/font.properties.zh_TW_CNS11643
netscape/java/classes/font.properties.zh_TW_CNS11643
netscape/java/classes/irix/font.properties
netscape/java/classes/irix/font.properties.cs
netscape/java/classes/irix/font.properties.el
netscape/java/classes/irix/font.properties.hu
netscape/java/classes/irix/font.properties.ja
netscape/java/classes/irix/font.properties.ko
netscape/java/classes/irix/font.properties.zh_GB2312
netscape/java/classes/irix/font.properties.zh_TW_Big5
netscape/java/classes/irix/font.properties.zh_TW_CNS11643
netscape/java/classes/ifc11.jar
netscape/java/classes/iiop10.jar
netscape/java/classes/jae40.jar
netscape/java/classes/java40.jar
netscape/java/classes/jio40.jar
netscape/java/classes/jsd10.jar
netscape/java/classes/ldap10.jar
netscape/java/classes/scd10.jar
netscape/nethelp/Back_dep.gif
netscape/nethelp/Topic.js
netscape/nethelp/System.js
netscape/nethelp/Stack.js
netscape/nethelp/Local-1.js
netscape/nethelp/IdxData.js
netscape/nethelp/Header.js
netscape/nethelp/CntTool.js
netscape/nethelp/CntData.js
netscape/nethelp/Button.js
netscape/nethelp/ToolUI.htm
netscape/nethelp/System.htm
netscape/nethelp/Status.htm
netscape/nethelp/NoJSerr.htm
netscape/nethelp/NavUI.htm
netscape/nethelp/NSHIfrm.htm
netscape/nethelp/IdxTopic.htm
netscape/nethelp/IdxTool.htm
netscape/nethelp/IdxKey.htm
netscape/nethelp/IdxFill.htm
netscape/nethelp/CntTool.htm
netscape/nethelp/Blank.htm
netscape/nethelp/Wait.gif
netscape/nethelp/Tool_up.gif
netscape/nethelp/Tool_sel.gif
netscape/nethelp/Tool_dep.gif
netscape/nethelp/Prnt_up.gif
netscape/nethelp/Prnt_sel.gif
netscape/nethelp/Prnt_dep.gif
netscape/nethelp/Forw_up.gif
netscape/nethelp/Forw_sel.gif
netscape/nethelp/Forw_dis.gif
netscape/nethelp/Forw_dep.gif
netscape/nethelp/Exit_up.gif
netscape/nethelp/Exit_sel.gif
netscape/nethelp/Exit_dep.gif
netscape/nethelp/Back_up.gif
netscape/nethelp/Back_sel.gif
netscape/nethelp/Back_dis.gif
netscape/nethelp/Utility.js
netscape/nethelp/netwatch.gif
netscape/nethelp/picsfail.htm
netscape/nethelp/picsfail.jar
netscape/nethelp/netscape/home/home.gif
netscape/nethelp/netscape/home/home.htm
netscape/nethelp/netscape/home/homeHdr.htm
netscape/nethelp/netscape/home/help.hpf
netscape/nethelp/netscape/navigatr/navigatr.gif
netscape/nethelp/netscape/navigatr/nav.htm
netscape/nethelp/netscape/navigatr/navHdr.htm
netscape/nethelp/netscape/navigatr/help.hpf
netscape/nethelp/netscape/shared/collIcon.gif
netscape/nethelp/netscape/shared/commIcon.gif
netscape/nethelp/netscape/shared/navIcon.gif
netscape/nethelp/netscape/shared/netIcon.gif
netscape/nethelp/netscape/shared/NetHelpm.css
netscape/nethelp/netscape/shared/NetHelpu.css
netscape/nethelp/netscape/shared/NetHelpw.css
netscape/nethelp/netscape/shared/calIcon.gif
netscape/nethelp/netscape/shared/admnIcon.gif
netscape/nethelp/netscape/shared/compIcon.gif
netscape/nethelp/netscape/shared/confIcon.gif
netscape/nethelp/netscape/shared/ibmIcon.gif
netscape/nethelp/netscape/shared/messIcon.gif
netscape/plugins/cpPack1.jar
netscape/plugins/libnullplugin.so
netscape/vreg
netscape/registry
bin/netscape
@dirrm netscape/dynfonts
@dirrm netscape/plugins
@dirrm netscape/nethelp/netscape/shared
@dirrm netscape/nethelp/netscape/navigatr
@dirrm netscape/nethelp/netscape/home
@dirrm netscape/nethelp/netscape
@dirrm netscape/nethelp
@dirrm netscape/java/classes/irix
@dirrm netscape/java/classes/hpux
@dirrm netscape/java/classes/aix
@dirrm netscape/java/classes
@dirrm netscape/java
@dirrm netscape/nls
@dirrm netscape