emulation sysctl handling added
NO_SYSTRACE for now, will be dealt with later license marker
This commit is contained in:
parent
563145b528
commit
82d45303db
@ -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 <bsd.port.mk>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user