emulation sysctls

This commit is contained in:
sturm 2004-01-15 22:07:28 +00:00
parent f3fa39ffae
commit 7543927f34
15 changed files with 51 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.19 2003/10/18 19:44:49 sturm Exp $
# $OpenBSD: Makefile.inc,v 1.20 2004/01/15 22:07:28 sturm Exp $
#
# Relevant URLs: http://www.bsdi.com/netscape/
# http://www.fortify.net/
@ -12,6 +12,7 @@ BUILD_DEPENDS= :redhat_base-*:emulators/redhat/base
RUN_DEPENDS= ${BUILD_DEPENDS}
SUPPORTED= supported
ONLY_FOR_ARCHS= i386
NO_SYSTRACE= "shell code/linux binary interaction breaks systrace"
.endif
.if ${EMUL_TYPE} == "sunos"
@ -22,7 +23,7 @@ IGNORE= "requires SunOS shared libraries"
NEEDS_FORTIFY= Yes
.endif
.if ${EMUL_TYPE} == "bsdi"
.if ${EMUL_TYPE} == "bsdos"
ONLY_FOR_ARCHS= i386
.endif
@ -54,10 +55,12 @@ PERMIT_DISTFILES_CDROM= "Commercial software"
PERMIT_DISTFILES_FTP= "Commercial software"
WRKDIST= ${WRKDIR}
SYSCTL= ${SUDO} sysctl -w kern.emul.${EMUL_TYPE}
SUBST_VARS+= EMUL_TYPE
.if !defined(NO_WARNINGS)
pre-fetch:
.if ${EMUL_TYPE} == "bsdi"
.if ${EMUL_TYPE} == "bsdos"
@echo ""
@echo " WARNING: This application requires a kernel compiled with"
@echo " 'option COMPAT_BSDOS' for proper operation. The"
@ -82,6 +85,10 @@ pre-fetch:
.endif
.endif
post-extract:
@sysctl -n kern.emul.${EMUL_TYPE} > ${WRKDIR}/.emul_${EMUL_TYPE}
@${SYSCTL}=1
.if defined(NEEDS_FORTIFY)
do-build:
@cd ${WRKDIR}/${FORTIFY}/src/common && \
@ -110,3 +117,4 @@ post-install:
-e 's#@prefix@#${TRUEPREFIX}#' \
${FILESDIR}/netscape.${MACHINE_ARCH} > ${WRKDIR}/netscape
${INSTALL_SCRIPT} ${WRKDIR}/netscape ${PREFIX}/bin
@${SYSCTL}=`cat ${WRKDIR}/.emul_${EMUL_TYPE}`

View File

@ -3,3 +3,7 @@ Netscape Communicator 4.8
This version of Netscape has known security issues.
You are using this *AT YOUR OWN RISK*.
---------------------------------------------------
This package requires the sysctl kern.emul.${EMUL_TYPE}
being set to 1 and just did so. To make this change
permanent, edit /etc/sysctl.conf.
---------------------------------------------------

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.2 2002/08/27 13:23:54 naddy Exp $
@comment $OpenBSD: PLIST,v 1.3 2004/01/15 22:07:28 sturm Exp $
@pkgcfl communicator-*
@pkgcfl navigator-*
bin/netscape
@ -202,3 +202,4 @@ netscape/vreg
@dirrm netscape/java/classes
@dirrm netscape/java
@dirrm netscape
@exec sysctl -w kern.emul.${EMUL_TYPE}=1

View File

@ -3,3 +3,7 @@ Netscape Communicator 4.61, Fortified
This version of Netscape has known security issues.
You are using this *AT YOUR OWN RISK*.
---------------------------------------------------
This package requires the sysctl kern.emul.${EMUL_TYPE}
being set to 1 and just did so. To make this change
permanent, edit /etc/sysctl.conf.
---------------------------------------------------

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST.sparc,v 1.5 2000/12/15 14:53:33 brad Exp $
@comment $OpenBSD: PLIST.sparc,v 1.6 2004/01/15 22:07:28 sturm Exp $
@pkgcfl navigator-*
bin/netscape
netscape/LICENSE
@ -164,3 +164,4 @@ netscape/vreg
@dirrm netscape/plugins
@dirrm netscape/spell
@dirrm netscape
@exec sysctl -w kern.emul.${EMUL_TYPE}=1

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.13 2002/10/29 01:30:42 naddy Exp $
# $OpenBSD: Makefile,v 1.14 2004/01/15 22:07:28 sturm Exp $
COMMENT= "Netscape Communicator (bsdi)"
PROGRAM_V= 4.75
V2:= ${PROGRAM_V:S/.//}
EMUL_TYPE= bsdi
EMUL_TYPE= bsdos
DISTNAME= communicator-v${V2}-us.x86-bsdi-bsd2
PKGNAME= communicator-bsdi-${PROGRAM_V}p1

View File

@ -3,3 +3,7 @@ Netscape Communicator 4.75
This version of Netscape has known security issues.
You are using this *AT YOUR OWN RISK*.
---------------------------------------------------
This package requires the sysctl kern.emul.${EMUL_TYPE}
being set to 1 and just did so. To make this change
permanent, edit /etc/sysctl.conf.
---------------------------------------------------

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST.i386,v 1.6 2001/10/11 19:13:20 espie Exp $
@comment $OpenBSD: PLIST.i386,v 1.7 2004/01/15 22:07:28 sturm Exp $
@pkgcfl navigator-*
@pkgcfl linux-communicator-*
@pkgcfl communicator-*
@ -162,3 +162,4 @@ netscape/vreg
@dirrm netscape/plugins
@dirrm netscape/spell
@dirrm netscape
@exec sysctl -w kern.emul.${EMUL_TYPE}=1

View File

@ -3,3 +3,7 @@ Netscape Navigator 4.8
This version of Netscape has known security issues.
You are using this *AT YOUR OWN RISK*.
---------------------------------------------------
This package requires the sysctl kern.emul.${EMUL_TYPE}
being set to 1 and just did so. To make this change
permanent, edit /etc/sysctl.conf.
---------------------------------------------------

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.2 2002/08/27 13:23:54 naddy Exp $
@comment $OpenBSD: PLIST,v 1.3 2004/01/15 22:07:28 sturm Exp $
@pkgcfl communicator-*
@pkgcfl navigator-*
bin/netscape
@ -152,3 +152,4 @@ netscape/vreg
@dirrm netscape/java/classes
@dirrm netscape/java
@dirrm netscape
@exec sysctl -w kern.emul.${EMUL_TYPE}=1

View File

@ -3,3 +3,7 @@ Netscape Navigator 4.61, Fortified
This version of Netscape has known security issues.
You are using this *AT YOUR OWN RISK*.
---------------------------------------------------
This package requires the sysctl kern.emul.${EMUL_TYPE}
being set to 1 and just did so. To make this change
permanent, edit /etc/sysctl.conf.
---------------------------------------------------

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST.sparc,v 1.6 2000/12/18 01:21:08 brad Exp $
@comment $OpenBSD: PLIST.sparc,v 1.7 2004/01/15 22:07:28 sturm Exp $
@pkgcfl communicator-*
bin/netscape
netscape/LICENSE
@ -116,3 +116,4 @@ netscape/vreg
@dirrm netscape/nls
@dirrm netscape/plugins
@dirrm netscape
@exec sysctl -w kern.emul.${EMUL_TYPE}=1

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.13 2002/10/29 01:30:42 naddy Exp $
# $OpenBSD: Makefile,v 1.14 2004/01/15 22:07:28 sturm Exp $
COMMENT= "Netscape Navigator (bsdi)"
PROGRAM_V= 4.75
V2:= ${PROGRAM_V:S/.//}
EMUL_TYPE= bsdi
EMUL_TYPE= bsdos
DISTNAME= navigator-v${V2}-us.x86-bsdi-bsd2
PKGNAME= navigator-bsdi-${PROGRAM_V}

View File

@ -3,3 +3,7 @@ Netscape Navigator 4.75
This version of Netscape has known security issues.
You are using this *AT YOUR OWN RISK*.
---------------------------------------------------
This package requires the sysctl kern.emul.${EMUL_TYPE}
being set to 1 and just did so. To make this change
permanent, edit /etc/sysctl.conf.
---------------------------------------------------

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST.i386,v 1.6 2001/08/24 15:04:02 espie Exp $
@comment $OpenBSD: PLIST.i386,v 1.7 2004/01/15 22:07:28 sturm Exp $
@pkgcfl communicator-*
@pkgcfl navigator-*
bin/netscape
@ -114,3 +114,4 @@ netscape/vreg
@dirrm netscape/nls
@dirrm netscape/plugins
@dirrm netscape
@exec sysctl -w kern.emul.${EMUL_TYPE}=1