From 82d45303dbc589467b81b4a073a50726d0a230c1 Mon Sep 17 00:00:00 2001 From: sturm Date: Fri, 9 Jan 2004 19:08:34 +0000 Subject: [PATCH] emulation sysctl handling added NO_SYSTRACE for now, will be dealt with later license marker --- emulators/freebsd_lib/Makefile | 7 ++++++- emulators/freebsd_lib/pkg/INSTALL | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/emulators/freebsd_lib/Makefile b/emulators/freebsd_lib/Makefile index 316c28e89f3..da7e6632398 100644 --- a/emulators/freebsd_lib/Makefile +++ b/emulators/freebsd_lib/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.26 2003/10/26 23:49:36 naddy Exp $ +# $OpenBSD: Makefile,v 1.27 2004/01/09 19:08:34 sturm Exp $ ONLY_FOR_ARCHS= i386 @@ -11,6 +11,7 @@ EXTRACT_ONLY= HOMEPAGE= http://www.freebsd.org/ +# XXX no license, but obviously bsd licensed PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes @@ -18,6 +19,7 @@ PERMIT_DISTFILES_FTP= Yes NO_BUILD= Yes NO_REGRESS= Yes +NO_SYSTRACE= "creates .../emul/freebsd/var/run/ld.so.hints" PREFIX?= ${LOCALBASE}/emul/freebsd @@ -30,6 +32,8 @@ do-install: @zcat ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} | (cd ${PREFIX}; pax -r) post-install: + @sysctl -n kern.emul.freebsd > ${WRKDIR}/.emul_freebsd + @${SUDO} sysctl -w kern.emul.freebsd=1 ${INSTALL_DATA_DIR} ${PREFIX}/var/run -chroot ${WRKINST} ${TRUEPREFIX}/sbin/ldconfig -aout \ -f ${TRUEPREFIX}/var/run/ld.so.hints \ @@ -37,5 +41,6 @@ post-install: -chroot ${WRKINST} ${TRUEPREFIX}/sbin/ldconfig -elf \ -f ${TRUEPREFIX}/var/run/ld-elf.so.hints \ /usr/lib/compat /usr/X11R6/lib + @${SUDO} sysctl -w kern.emul.freebsd=`cat ${WRKDIR}/.emul_freebsd` .include diff --git a/emulators/freebsd_lib/pkg/INSTALL b/emulators/freebsd_lib/pkg/INSTALL index 5e4884b9c45..578fbb11e23 100644 --- a/emulators/freebsd_lib/pkg/INSTALL +++ b/emulators/freebsd_lib/pkg/INSTALL @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: INSTALL,v 1.5 2001/08/24 18:36:06 brad Exp $ +# $OpenBSD: INSTALL,v 1.6 2004/01/09 19:08:34 sturm Exp $ # # Pre/post-installation setup of freebsd_lib @@ -29,6 +29,9 @@ do_notice_link() do_notice_bottom() { + echo "| This package requires the sysctl kern.emul.freebsd being set to 1" + echo "| and just did so. To make this change permanent, edit /etc/sysctl.conf." + echo "|" echo "| Installation of $1 complete. See compat_freebsd(8)" echo "| for more information." echo "|" @@ -51,6 +54,7 @@ case $2 in install -d -o root -g bin -m 755 $PREFIX ;; POST-INSTALL) + sysctl -w kern.emul.freebsd=1 do_notice_top if [ -e /emul/freebsd ]; then