use the exact same technics used by linux emulation to setup/remove

their symlinks. This gets rid of the INSTALL/DEINSTALL script.
This commit is contained in:
espie 2007-05-30 15:29:43 +00:00
parent 09058368cf
commit e215c086fa
5 changed files with 321 additions and 403 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.31 2006/02/12 21:34:45 brad Exp $ # $OpenBSD: Makefile,v 1.32 2007/05/30 15:29:43 espie Exp $
ONLY_FOR_ARCHS= i386 ONLY_FOR_ARCHS= i386
COMMENT= "libraries necessary for FreeBSD compatibility" COMMENT= "libraries necessary for FreeBSD compatibility"
DISTNAME= freebsd_lib-4.11 DISTNAME= freebsd_lib-4.11
PKGNAME= ${DISTNAME}p0
CATEGORIES= emulators CATEGORIES= emulators
MASTER_SITES= http://comstyle.com/source/ MASTER_SITES= http://comstyle.com/source/
EXTRACT_ONLY= EXTRACT_ONLY=
@ -20,27 +21,28 @@ PERMIT_DISTFILES_FTP= Yes
NO_BUILD= Yes NO_BUILD= Yes
NO_REGRESS= Yes NO_REGRESS= Yes
PREFIX?= ${LOCALBASE}/emul/freebsd BASE= ${PREFIX}/emul/freebsd
TRUEBASE=${TRUEPREFIX}/emul/freebsd
SYSTRACE_SUBST_VARS= TRUEPREFIX SYSTRACE_SUBST_VARS= TRUEBASE
pre-install: pre-install:
${INSTALL_DATA_DIR} ${PREFIX} ${INSTALL_DATA_DIR} ${BASE}
${INSTALL_DATA_DIR} ${WRKINST}/emul ${INSTALL_DATA_DIR} ${WRKINST}/emul
@ln -sf ${TRUEPREFIX} ${WRKINST}/emul/freebsd @ln -sf ${TRUEBASE} ${WRKINST}/emul/freebsd
do-install: do-install:
@zcat ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} | (cd ${PREFIX}; pax -r) @zcat ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} | (cd ${BASE}; pax -r)
post-install: post-install:
@sysctl -n kern.emul.freebsd > ${WRKDIR}/.emul_freebsd @sysctl -n kern.emul.freebsd > ${WRKDIR}/.emul_freebsd
@${SUDO} sysctl -w kern.emul.freebsd=1 @${SUDO} sysctl -w kern.emul.freebsd=1
${INSTALL_DATA_DIR} ${PREFIX}/var/run ${INSTALL_DATA_DIR} ${BASE}/var/run
-chroot ${WRKINST} ${TRUEPREFIX}/sbin/ldconfig -aout \ -chroot ${WRKINST} ${TRUEBASE}/sbin/ldconfig -aout \
-f ${TRUEPREFIX}/var/run/ld.so.hints \ -f ${TRUEBASE}/var/run/ld.so.hints \
/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
-chroot ${WRKINST} ${TRUEPREFIX}/sbin/ldconfig -elf \ -chroot ${WRKINST} ${TRUEBASE}/sbin/ldconfig -elf \
-f ${TRUEPREFIX}/var/run/ld-elf.so.hints \ -f ${TRUEBASE}/var/run/ld-elf.so.hints \
/usr/lib/compat /usr/X11R6/lib /usr/lib/compat /usr/X11R6/lib
@${SUDO} sysctl -w kern.emul.freebsd=`cat ${WRKDIR}/.emul_freebsd` @${SUDO} sysctl -w kern.emul.freebsd=`cat ${WRKDIR}/.emul_freebsd`

View File

@ -1,14 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2004/03/11 20:33:11 lebel Exp $
#
# freebsd_lib de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}/emul/freebsd
if [ -L /emul/freebsd -a x`readlink /emul/freebsd` = x"$PREFIX" ]; then
rm -f /emul/freebsd
fi
exit 0

View File

@ -1,75 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.8 2004/11/09 14:48:25 alek Exp $
#
# Pre/post-installation setup of freebsd_lib
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}/emul/freebsd
# Function: tell the user what s/he needs to do to use the port just installed
#
do_notice_top()
{
echo
echo "+---------------"
echo "|"
}
do_notice_link()
{
echo "| /emul/freebsd already exists but it's not a symlink to $PREFIX."
echo "|"
echo "| To make this port active you must make /emul/freebsd a symlink to"
echo "| $PREFIX."
echo "|"
}
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 "|"
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
install -d -o root -g bin -m 755 /emul
install -d -o root -g bin -m 755 $PREFIX
;;
POST-INSTALL)
do_notice_top
if [ -e /emul/freebsd ]; then
if [ x`readlink /emul/freebsd` != x"$PREFIX" ]; then
do_notice_link
fi
else
ln -sf $PREFIX /emul/freebsd
fi
do_notice_bottom $1
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,302 +1,307 @@
@comment $OpenBSD: PLIST,v 1.8 2006/02/12 21:34:45 brad Exp $ @comment $OpenBSD: PLIST,v 1.9 2007/05/30 15:29:43 espie Exp $
COPYRIGHT emul/
sbin/ emul/freebsd/
sbin/ldconfig emul/freebsd/COPYRIGHT
usr/ emul/freebsd/sbin/
usr/X11R6/ emul/freebsd/sbin/ldconfig
usr/X11R6/lib/ emul/freebsd/usr/
usr/X11R6/lib/aout/ emul/freebsd/usr/X11R6/
usr/X11R6/lib/aout/libICE.so.6.3 emul/freebsd/usr/X11R6/lib/
usr/X11R6/lib/aout/libPEX5.so.6.0 emul/freebsd/usr/X11R6/lib/aout/
usr/X11R6/lib/aout/libSM.so.6.0 emul/freebsd/usr/X11R6/lib/aout/libICE.so.6.3
usr/X11R6/lib/aout/libX11.so.6.1 emul/freebsd/usr/X11R6/lib/aout/libPEX5.so.6.0
usr/X11R6/lib/aout/libXIE.so.6.0 emul/freebsd/usr/X11R6/lib/aout/libSM.so.6.0
usr/X11R6/lib/aout/libXThrStub.so.6.0 emul/freebsd/usr/X11R6/lib/aout/libX11.so.6.1
usr/X11R6/lib/aout/libXaw.so.6.1 emul/freebsd/usr/X11R6/lib/aout/libXIE.so.6.0
usr/X11R6/lib/aout/libXext.so.6.3 emul/freebsd/usr/X11R6/lib/aout/libXThrStub.so.6.0
usr/X11R6/lib/aout/libXi.so.6.0 emul/freebsd/usr/X11R6/lib/aout/libXaw.so.6.1
usr/X11R6/lib/aout/libXmu.so.6.0 emul/freebsd/usr/X11R6/lib/aout/libXext.so.6.3
usr/X11R6/lib/aout/libXp.so.6.2 emul/freebsd/usr/X11R6/lib/aout/libXi.so.6.0
usr/X11R6/lib/aout/libXt.so.6.0 emul/freebsd/usr/X11R6/lib/aout/libXmu.so.6.0
usr/X11R6/lib/aout/libXtst.so.6.1 emul/freebsd/usr/X11R6/lib/aout/libXp.so.6.2
usr/X11R6/lib/aout/liboldX.so.6.0 emul/freebsd/usr/X11R6/lib/aout/libXt.so.6.0
usr/X11R6/lib/libFS.so emul/freebsd/usr/X11R6/lib/aout/libXtst.so.6.1
usr/X11R6/lib/libFS.so.6 emul/freebsd/usr/X11R6/lib/aout/liboldX.so.6.0
usr/X11R6/lib/libGL.so emul/freebsd/usr/X11R6/lib/libFS.so
usr/X11R6/lib/libGL.so.1 emul/freebsd/usr/X11R6/lib/libFS.so.6
usr/X11R6/lib/libGLU.so emul/freebsd/usr/X11R6/lib/libGL.so
usr/X11R6/lib/libGLU.so.1 emul/freebsd/usr/X11R6/lib/libGL.so.1
usr/X11R6/lib/libGLw.so emul/freebsd/usr/X11R6/lib/libGLU.so
usr/X11R6/lib/libGLw.so.1 emul/freebsd/usr/X11R6/lib/libGLU.so.1
usr/X11R6/lib/libICE.so emul/freebsd/usr/X11R6/lib/libGLw.so
usr/X11R6/lib/libICE.so.6 emul/freebsd/usr/X11R6/lib/libGLw.so.1
usr/X11R6/lib/libOSMesa.so emul/freebsd/usr/X11R6/lib/libICE.so
usr/X11R6/lib/libOSMesa.so.4 emul/freebsd/usr/X11R6/lib/libICE.so.6
usr/X11R6/lib/libSM.so emul/freebsd/usr/X11R6/lib/libOSMesa.so
usr/X11R6/lib/libSM.so.6 emul/freebsd/usr/X11R6/lib/libOSMesa.so.4
usr/X11R6/lib/libX11.so emul/freebsd/usr/X11R6/lib/libSM.so
usr/X11R6/lib/libX11.so.6 emul/freebsd/usr/X11R6/lib/libSM.so.6
usr/X11R6/lib/libXRes.so emul/freebsd/usr/X11R6/lib/libX11.so
usr/X11R6/lib/libXRes.so.1 emul/freebsd/usr/X11R6/lib/libX11.so.6
usr/X11R6/lib/libXThrStub.so emul/freebsd/usr/X11R6/lib/libXRes.so
usr/X11R6/lib/libXThrStub.so.6 emul/freebsd/usr/X11R6/lib/libXRes.so.1
usr/X11R6/lib/libXTrap.so emul/freebsd/usr/X11R6/lib/libXThrStub.so
usr/X11R6/lib/libXTrap.so.6 emul/freebsd/usr/X11R6/lib/libXThrStub.so.6
usr/X11R6/lib/libXau.so emul/freebsd/usr/X11R6/lib/libXTrap.so
usr/X11R6/lib/libXau.so.0 emul/freebsd/usr/X11R6/lib/libXTrap.so.6
usr/X11R6/lib/libXaw.so emul/freebsd/usr/X11R6/lib/libXau.so
usr/X11R6/lib/libXaw.so.6 emul/freebsd/usr/X11R6/lib/libXau.so.0
usr/X11R6/lib/libXaw.so.7 emul/freebsd/usr/X11R6/lib/libXaw.so
usr/X11R6/lib/libXcursor.so emul/freebsd/usr/X11R6/lib/libXaw.so.6
usr/X11R6/lib/libXcursor.so.1 emul/freebsd/usr/X11R6/lib/libXaw.so.7
usr/X11R6/lib/libXext.so emul/freebsd/usr/X11R6/lib/libXcursor.so
usr/X11R6/lib/libXext.so.6 emul/freebsd/usr/X11R6/lib/libXcursor.so.1
usr/X11R6/lib/libXfont.so emul/freebsd/usr/X11R6/lib/libXext.so
usr/X11R6/lib/libXfont.so.1 emul/freebsd/usr/X11R6/lib/libXext.so.6
usr/X11R6/lib/libXfontcache.so emul/freebsd/usr/X11R6/lib/libXfont.so
usr/X11R6/lib/libXfontcache.so.1 emul/freebsd/usr/X11R6/lib/libXfont.so.1
usr/X11R6/lib/libXi.so emul/freebsd/usr/X11R6/lib/libXfontcache.so
usr/X11R6/lib/libXi.so.6 emul/freebsd/usr/X11R6/lib/libXfontcache.so.1
usr/X11R6/lib/libXinerama.so emul/freebsd/usr/X11R6/lib/libXi.so
usr/X11R6/lib/libXinerama.so.1 emul/freebsd/usr/X11R6/lib/libXi.so.6
usr/X11R6/lib/libXmu.so emul/freebsd/usr/X11R6/lib/libXinerama.so
usr/X11R6/lib/libXmu.so.6 emul/freebsd/usr/X11R6/lib/libXinerama.so.1
usr/X11R6/lib/libXmuu.so emul/freebsd/usr/X11R6/lib/libXmu.so
usr/X11R6/lib/libXmuu.so.1 emul/freebsd/usr/X11R6/lib/libXmu.so.6
usr/X11R6/lib/libXp.so emul/freebsd/usr/X11R6/lib/libXmuu.so
usr/X11R6/lib/libXp.so.6 emul/freebsd/usr/X11R6/lib/libXmuu.so.1
usr/X11R6/lib/libXpm.so emul/freebsd/usr/X11R6/lib/libXp.so
usr/X11R6/lib/libXpm.so.4 emul/freebsd/usr/X11R6/lib/libXp.so.6
usr/X11R6/lib/libXrandr.so emul/freebsd/usr/X11R6/lib/libXpm.so
usr/X11R6/lib/libXrandr.so.2 emul/freebsd/usr/X11R6/lib/libXpm.so.4
usr/X11R6/lib/libXrender.so emul/freebsd/usr/X11R6/lib/libXrandr.so
usr/X11R6/lib/libXrender.so.1 emul/freebsd/usr/X11R6/lib/libXrandr.so.2
usr/X11R6/lib/libXss.so emul/freebsd/usr/X11R6/lib/libXrender.so
usr/X11R6/lib/libXss.so.1 emul/freebsd/usr/X11R6/lib/libXrender.so.1
usr/X11R6/lib/libXt.so emul/freebsd/usr/X11R6/lib/libXss.so
usr/X11R6/lib/libXt.so.6 emul/freebsd/usr/X11R6/lib/libXss.so.1
usr/X11R6/lib/libXtst.so emul/freebsd/usr/X11R6/lib/libXt.so
usr/X11R6/lib/libXtst.so.6 emul/freebsd/usr/X11R6/lib/libXt.so.6
usr/X11R6/lib/libXv.so emul/freebsd/usr/X11R6/lib/libXtst.so
usr/X11R6/lib/libXv.so.1 emul/freebsd/usr/X11R6/lib/libXtst.so.6
usr/X11R6/lib/libXvMC.so emul/freebsd/usr/X11R6/lib/libXv.so
usr/X11R6/lib/libXvMC.so.1 emul/freebsd/usr/X11R6/lib/libXv.so.1
usr/X11R6/lib/libXxf86dga.so emul/freebsd/usr/X11R6/lib/libXvMC.so
usr/X11R6/lib/libXxf86dga.so.1 emul/freebsd/usr/X11R6/lib/libXvMC.so.1
usr/X11R6/lib/libXxf86misc.so emul/freebsd/usr/X11R6/lib/libXxf86dga.so
usr/X11R6/lib/libXxf86misc.so.1 emul/freebsd/usr/X11R6/lib/libXxf86dga.so.1
usr/X11R6/lib/libXxf86vm.so emul/freebsd/usr/X11R6/lib/libXxf86misc.so
usr/X11R6/lib/libXxf86vm.so.1 emul/freebsd/usr/X11R6/lib/libXxf86misc.so.1
usr/X11R6/lib/libdps.so emul/freebsd/usr/X11R6/lib/libXxf86vm.so
usr/X11R6/lib/libdps.so.1 emul/freebsd/usr/X11R6/lib/libXxf86vm.so.1
usr/X11R6/lib/libdpstk.so emul/freebsd/usr/X11R6/lib/libdps.so
usr/X11R6/lib/libdpstk.so.1 emul/freebsd/usr/X11R6/lib/libdps.so.1
usr/X11R6/lib/libfontenc.so emul/freebsd/usr/X11R6/lib/libdpstk.so
usr/X11R6/lib/libfontenc.so.1 emul/freebsd/usr/X11R6/lib/libdpstk.so.1
usr/X11R6/lib/liboldX.so emul/freebsd/usr/X11R6/lib/libfontenc.so
usr/X11R6/lib/liboldX.so.6 emul/freebsd/usr/X11R6/lib/libfontenc.so.1
usr/X11R6/lib/libpsres.so emul/freebsd/usr/X11R6/lib/liboldX.so
usr/X11R6/lib/libpsres.so.1 emul/freebsd/usr/X11R6/lib/liboldX.so.6
usr/X11R6/lib/libxkbfile.so emul/freebsd/usr/X11R6/lib/libpsres.so
usr/X11R6/lib/libxkbfile.so.1 emul/freebsd/usr/X11R6/lib/libpsres.so.1
usr/X11R6/lib/libxkbui.so emul/freebsd/usr/X11R6/lib/libxkbfile.so
usr/X11R6/lib/libxkbui.so.1 emul/freebsd/usr/X11R6/lib/libxkbfile.so.1
usr/lib/ emul/freebsd/usr/X11R6/lib/libxkbui.so
usr/lib/compat/ emul/freebsd/usr/X11R6/lib/libxkbui.so.1
usr/lib/compat/aout/ emul/freebsd/usr/lib/
usr/lib/compat/aout/libalias.so.2.4 emul/freebsd/usr/lib/compat/
usr/lib/compat/aout/libc.so.3.1 emul/freebsd/usr/lib/compat/aout/
usr/lib/compat/aout/libc_r.so.3.0 emul/freebsd/usr/lib/compat/aout/libalias.so.2.4
usr/lib/compat/aout/libcalendar.so.2.0 emul/freebsd/usr/lib/compat/aout/libc.so.3.1
usr/lib/compat/aout/libcom_err.so.2.0 emul/freebsd/usr/lib/compat/aout/libc_r.so.3.0
usr/lib/compat/aout/libcrypt.so.2.0 emul/freebsd/usr/lib/compat/aout/libcalendar.so.2.0
usr/lib/compat/aout/libcurses.so.2.0 emul/freebsd/usr/lib/compat/aout/libcom_err.so.2.0
usr/lib/compat/aout/libdialog.so.3.1 emul/freebsd/usr/lib/compat/aout/libcrypt.so.2.0
usr/lib/compat/aout/libedit.so.2.0 emul/freebsd/usr/lib/compat/aout/libcurses.so.2.0
usr/lib/compat/aout/libf2c.so.2.0 emul/freebsd/usr/lib/compat/aout/libdialog.so.3.1
usr/lib/compat/aout/libftpio.so.4.0 emul/freebsd/usr/lib/compat/aout/libedit.so.2.0
usr/lib/compat/aout/libg++.so.4.0 emul/freebsd/usr/lib/compat/aout/libf2c.so.2.0
usr/lib/compat/aout/libgmp.so.3.0 emul/freebsd/usr/lib/compat/aout/libftpio.so.4.0
usr/lib/compat/aout/libgnuregex.so.2.0 emul/freebsd/usr/lib/compat/aout/libg++.so.4.0
usr/lib/compat/aout/libipx.so.2.0 emul/freebsd/usr/lib/compat/aout/libgmp.so.3.0
usr/lib/compat/aout/libkvm.so.2.0 emul/freebsd/usr/lib/compat/aout/libgnuregex.so.2.0
usr/lib/compat/aout/libm.so.2.0 emul/freebsd/usr/lib/compat/aout/libipx.so.2.0
usr/lib/compat/aout/libmp.so.3.0 emul/freebsd/usr/lib/compat/aout/libkvm.so.2.0
usr/lib/compat/aout/libmytinfo.so.2.0 emul/freebsd/usr/lib/compat/aout/libm.so.2.0
usr/lib/compat/aout/libncurses.so.3.1 emul/freebsd/usr/lib/compat/aout/libmp.so.3.0
usr/lib/compat/aout/libopie.so.2.0 emul/freebsd/usr/lib/compat/aout/libmytinfo.so.2.0
usr/lib/compat/aout/libpcap.so.2.2 emul/freebsd/usr/lib/compat/aout/libncurses.so.3.1
usr/lib/compat/aout/libreadline.so.3.0 emul/freebsd/usr/lib/compat/aout/libopie.so.2.0
usr/lib/compat/aout/librpcsvc.so.2.0 emul/freebsd/usr/lib/compat/aout/libpcap.so.2.2
usr/lib/compat/aout/libscrypt.so.2.0 emul/freebsd/usr/lib/compat/aout/libreadline.so.3.0
usr/lib/compat/aout/libscsi.so.2.0 emul/freebsd/usr/lib/compat/aout/librpcsvc.so.2.0
usr/lib/compat/aout/libskey.so.2.0 emul/freebsd/usr/lib/compat/aout/libscrypt.so.2.0
usr/lib/compat/aout/libss.so.2.0 emul/freebsd/usr/lib/compat/aout/libscsi.so.2.0
usr/lib/compat/aout/libstdc++.so.2.0 emul/freebsd/usr/lib/compat/aout/libskey.so.2.0
usr/lib/compat/aout/libtelnet.so.2.0 emul/freebsd/usr/lib/compat/aout/libss.so.2.0
usr/lib/compat/aout/libtermcap.so.2.1 emul/freebsd/usr/lib/compat/aout/libstdc++.so.2.0
usr/lib/compat/aout/libtermlib.so.2.1 emul/freebsd/usr/lib/compat/aout/libtelnet.so.2.0
usr/lib/compat/aout/libutil.so.2.2 emul/freebsd/usr/lib/compat/aout/libtermcap.so.2.1
usr/lib/compat/aout/libvgl.so.1.0 emul/freebsd/usr/lib/compat/aout/libtermlib.so.2.1
usr/lib/compat/aout/libxpg4.so.2.0 emul/freebsd/usr/lib/compat/aout/libutil.so.2.2
usr/lib/compat/aout/libz.so.2.0 emul/freebsd/usr/lib/compat/aout/libvgl.so.1.0
usr/lib/compat/libalias.so.3 emul/freebsd/usr/lib/compat/aout/libxpg4.so.2.0
usr/lib/compat/libc.so.3 emul/freebsd/usr/lib/compat/aout/libz.so.2.0
usr/lib/compat/libc_r.so.3 emul/freebsd/usr/lib/compat/libalias.so.3
usr/lib/compat/libcrypto.so.1 emul/freebsd/usr/lib/compat/libc.so.3
usr/lib/compat/libcrypto.so.2 emul/freebsd/usr/lib/compat/libc_r.so.3
usr/lib/compat/libcurses.so.2 emul/freebsd/usr/lib/compat/libcrypto.so.1
usr/lib/compat/libdialog.so.3 emul/freebsd/usr/lib/compat/libcrypto.so.2
usr/lib/compat/libedit.so.2 emul/freebsd/usr/lib/compat/libcurses.so.2
usr/lib/compat/libf2c.so.2 emul/freebsd/usr/lib/compat/libdialog.so.3
usr/lib/compat/libfetch.so.1 emul/freebsd/usr/lib/compat/libedit.so.2
usr/lib/compat/libfetch.so.2 emul/freebsd/usr/lib/compat/libf2c.so.2
usr/lib/compat/libftpio.so.4 emul/freebsd/usr/lib/compat/libfetch.so.1
usr/lib/compat/libg++.so.4 emul/freebsd/usr/lib/compat/libfetch.so.2
usr/lib/compat/libhistory.so.3 emul/freebsd/usr/lib/compat/libftpio.so.4
usr/lib/compat/libmytinfo.so.2 emul/freebsd/usr/lib/compat/libg++.so.4
usr/lib/compat/libncurses.so.3 emul/freebsd/usr/lib/compat/libhistory.so.3
usr/lib/compat/libreadline.so.3 emul/freebsd/usr/lib/compat/libmytinfo.so.2
usr/lib/compat/libss.so.2 emul/freebsd/usr/lib/compat/libncurses.so.3
usr/lib/compat/libssl.so.1 emul/freebsd/usr/lib/compat/libreadline.so.3
usr/lib/compat/libssl.so.2 emul/freebsd/usr/lib/compat/libss.so.2
usr/lib/compat/libstdc++.so.2 emul/freebsd/usr/lib/compat/libssl.so.1
usr/lib/compat/libtermcap.so.2 emul/freebsd/usr/lib/compat/libssl.so.2
usr/lib/compat/libutil.so.2 emul/freebsd/usr/lib/compat/libstdc++.so.2
usr/lib/compat/libvgl.so.1 emul/freebsd/usr/lib/compat/libtermcap.so.2
usr/lib/compat/libwrap.so.2 emul/freebsd/usr/lib/compat/libutil.so.2
usr/lib/compat/libxpg4.so.2 emul/freebsd/usr/lib/compat/libvgl.so.1
usr/lib/crt1.o emul/freebsd/usr/lib/compat/libwrap.so.2
usr/lib/crtbegin.o emul/freebsd/usr/lib/compat/libxpg4.so.2
usr/lib/crtbeginS.o emul/freebsd/usr/lib/crt1.o
usr/lib/crtend.o emul/freebsd/usr/lib/crtbegin.o
usr/lib/crtendS.o emul/freebsd/usr/lib/crtbeginS.o
usr/lib/crti.o emul/freebsd/usr/lib/crtend.o
usr/lib/crtn.o emul/freebsd/usr/lib/crtendS.o
usr/lib/gcrt1.o emul/freebsd/usr/lib/crti.o
usr/lib/kgzldr.o emul/freebsd/usr/lib/crtn.o
usr/lib/libalias.so emul/freebsd/usr/lib/gcrt1.o
usr/lib/libalias.so.4 emul/freebsd/usr/lib/kgzldr.o
usr/lib/libatm.so emul/freebsd/usr/lib/libalias.so
usr/lib/libatm.so.2 emul/freebsd/usr/lib/libalias.so.4
usr/lib/libbz2.so emul/freebsd/usr/lib/libatm.so
usr/lib/libbz2.so.1 emul/freebsd/usr/lib/libatm.so.2
usr/lib/libc.so emul/freebsd/usr/lib/libbz2.so
usr/lib/libc.so.4 emul/freebsd/usr/lib/libbz2.so.1
usr/lib/libc_r.so emul/freebsd/usr/lib/libc.so
usr/lib/libc_r.so.4 emul/freebsd/usr/lib/libc.so.4
usr/lib/libcalendar.so emul/freebsd/usr/lib/libc_r.so
usr/lib/libcalendar.so.2 emul/freebsd/usr/lib/libc_r.so.4
usr/lib/libcam.so emul/freebsd/usr/lib/libcalendar.so
usr/lib/libcam.so.2 emul/freebsd/usr/lib/libcalendar.so.2
usr/lib/libcom_err.so emul/freebsd/usr/lib/libcam.so
usr/lib/libcom_err.so.2 emul/freebsd/usr/lib/libcam.so.2
usr/lib/libcrypt.so emul/freebsd/usr/lib/libcom_err.so
usr/lib/libcrypt.so.2 emul/freebsd/usr/lib/libcom_err.so.2
usr/lib/libcurses.so emul/freebsd/usr/lib/libcrypt.so
usr/lib/libdevstat.so emul/freebsd/usr/lib/libcrypt.so.2
usr/lib/libdevstat.so.2 emul/freebsd/usr/lib/libcurses.so
usr/lib/libdialog.so emul/freebsd/usr/lib/libdevstat.so
usr/lib/libdialog.so.4 emul/freebsd/usr/lib/libdevstat.so.2
usr/lib/libedit.so emul/freebsd/usr/lib/libdialog.so
usr/lib/libedit.so.3 emul/freebsd/usr/lib/libdialog.so.4
usr/lib/libfetch.so emul/freebsd/usr/lib/libedit.so
usr/lib/libfetch.so.3 emul/freebsd/usr/lib/libedit.so.3
usr/lib/libform.so emul/freebsd/usr/lib/libfetch.so
usr/lib/libform.so.2 emul/freebsd/usr/lib/libfetch.so.3
usr/lib/libftpio.so emul/freebsd/usr/lib/libform.so
usr/lib/libftpio.so.5 emul/freebsd/usr/lib/libform.so.2
usr/lib/libg2c.so emul/freebsd/usr/lib/libftpio.so
usr/lib/libg2c.so.1 emul/freebsd/usr/lib/libftpio.so.5
usr/lib/libgmp.so emul/freebsd/usr/lib/libg2c.so
usr/lib/libgmp.so.3 emul/freebsd/usr/lib/libg2c.so.1
usr/lib/libgnuregex.so emul/freebsd/usr/lib/libgmp.so
usr/lib/libgnuregex.so.2 emul/freebsd/usr/lib/libgmp.so.3
usr/lib/libhistory.so emul/freebsd/usr/lib/libgnuregex.so
usr/lib/libhistory.so.4 emul/freebsd/usr/lib/libgnuregex.so.2
usr/lib/libipsec.so emul/freebsd/usr/lib/libhistory.so
usr/lib/libipsec.so.1 emul/freebsd/usr/lib/libhistory.so.4
usr/lib/libipx.so emul/freebsd/usr/lib/libipsec.so
usr/lib/libipx.so.2 emul/freebsd/usr/lib/libipsec.so.1
usr/lib/libisc.so emul/freebsd/usr/lib/libipx.so
usr/lib/libisc.so.1 emul/freebsd/usr/lib/libipx.so.2
usr/lib/libkvm.so emul/freebsd/usr/lib/libisc.so
usr/lib/libkvm.so.2 emul/freebsd/usr/lib/libisc.so.1
usr/lib/libm.so emul/freebsd/usr/lib/libkvm.so
usr/lib/libm.so.2 emul/freebsd/usr/lib/libkvm.so.2
usr/lib/libmd.so emul/freebsd/usr/lib/libm.so
usr/lib/libmd.so.2 emul/freebsd/usr/lib/libm.so.2
usr/lib/libmenu.so emul/freebsd/usr/lib/libmd.so
usr/lib/libmenu.so.2 emul/freebsd/usr/lib/libmd.so.2
usr/lib/libmilter.so emul/freebsd/usr/lib/libmenu.so
usr/lib/libmilter.so.2 emul/freebsd/usr/lib/libmenu.so.2
usr/lib/libmp.so emul/freebsd/usr/lib/libmilter.so
usr/lib/libmp.so.3 emul/freebsd/usr/lib/libmilter.so.2
usr/lib/libmytinfo.so emul/freebsd/usr/lib/libmp.so
usr/lib/libncp.so emul/freebsd/usr/lib/libmp.so.3
usr/lib/libncp.so.1 emul/freebsd/usr/lib/libmytinfo.so
usr/lib/libncurses.so emul/freebsd/usr/lib/libncp.so
usr/lib/libncurses.so.5 emul/freebsd/usr/lib/libncp.so.1
usr/lib/libnetgraph.so emul/freebsd/usr/lib/libncurses.so
usr/lib/libnetgraph.so.1 emul/freebsd/usr/lib/libncurses.so.5
usr/lib/libopie.so emul/freebsd/usr/lib/libnetgraph.so
usr/lib/libopie.so.2 emul/freebsd/usr/lib/libnetgraph.so.1
usr/lib/libpam.so emul/freebsd/usr/lib/libopie.so
usr/lib/libpam.so.1 emul/freebsd/usr/lib/libopie.so.2
usr/lib/libpanel.so emul/freebsd/usr/lib/libpam.so
usr/lib/libpanel.so.2 emul/freebsd/usr/lib/libpam.so.1
usr/lib/libpcap.so emul/freebsd/usr/lib/libpanel.so
usr/lib/libpcap.so.2 emul/freebsd/usr/lib/libpanel.so.2
usr/lib/libperl.so emul/freebsd/usr/lib/libpcap.so
usr/lib/libperl.so.3 emul/freebsd/usr/lib/libpcap.so.2
usr/lib/libposix1e.so emul/freebsd/usr/lib/libperl.so
usr/lib/libposix1e.so.2 emul/freebsd/usr/lib/libperl.so.3
usr/lib/libradius.so emul/freebsd/usr/lib/libposix1e.so
usr/lib/libradius.so.1 emul/freebsd/usr/lib/libposix1e.so.2
usr/lib/libreadline.so emul/freebsd/usr/lib/libradius.so
usr/lib/libreadline.so.4 emul/freebsd/usr/lib/libradius.so.1
usr/lib/librpcsvc.so emul/freebsd/usr/lib/libreadline.so
usr/lib/librpcsvc.so.2 emul/freebsd/usr/lib/libreadline.so.4
usr/lib/libsbuf.so emul/freebsd/usr/lib/librpcsvc.so
usr/lib/libsbuf.so.2 emul/freebsd/usr/lib/librpcsvc.so.2
usr/lib/libskey.so emul/freebsd/usr/lib/libsbuf.so
usr/lib/libskey.so.2 emul/freebsd/usr/lib/libsbuf.so.2
usr/lib/libsmb.so emul/freebsd/usr/lib/libskey.so
usr/lib/libsmb.so.1 emul/freebsd/usr/lib/libskey.so.2
usr/lib/libstdc++.so emul/freebsd/usr/lib/libsmb.so
usr/lib/libstdc++.so.3 emul/freebsd/usr/lib/libsmb.so.1
usr/lib/libtacplus.so emul/freebsd/usr/lib/libstdc++.so
usr/lib/libtacplus.so.1 emul/freebsd/usr/lib/libstdc++.so.3
usr/lib/libtermcap.so emul/freebsd/usr/lib/libtacplus.so
usr/lib/libtermlib.so emul/freebsd/usr/lib/libtacplus.so.1
usr/lib/libtinfo.so emul/freebsd/usr/lib/libtermcap.so
usr/lib/libusbhid.so emul/freebsd/usr/lib/libtermlib.so
usr/lib/libusbhid.so.0 emul/freebsd/usr/lib/libtinfo.so
usr/lib/libutil.so emul/freebsd/usr/lib/libusbhid.so
usr/lib/libutil.so.3 emul/freebsd/usr/lib/libusbhid.so.0
usr/lib/libvgl.so emul/freebsd/usr/lib/libutil.so
usr/lib/libvgl.so.2 emul/freebsd/usr/lib/libutil.so.3
usr/lib/libwrap.so emul/freebsd/usr/lib/libvgl.so
usr/lib/libwrap.so.3 emul/freebsd/usr/lib/libvgl.so.2
usr/lib/libxpg4.so emul/freebsd/usr/lib/libwrap.so
usr/lib/libxpg4.so.3 emul/freebsd/usr/lib/libwrap.so.3
usr/lib/libz.so emul/freebsd/usr/lib/libxpg4.so
usr/lib/libz.so.2 emul/freebsd/usr/lib/libxpg4.so.3
usr/lib/pam_cleartext_pass_ok.so emul/freebsd/usr/lib/libz.so
usr/lib/pam_deny.so emul/freebsd/usr/lib/libz.so.2
usr/lib/pam_opie.so emul/freebsd/usr/lib/pam_cleartext_pass_ok.so
usr/lib/pam_opieaccess.so emul/freebsd/usr/lib/pam_deny.so
usr/lib/pam_permit.so emul/freebsd/usr/lib/pam_opie.so
usr/lib/pam_radius.so emul/freebsd/usr/lib/pam_opieaccess.so
usr/lib/pam_skey.so emul/freebsd/usr/lib/pam_permit.so
usr/lib/pam_ssh.so emul/freebsd/usr/lib/pam_radius.so
usr/lib/pam_tacplus.so emul/freebsd/usr/lib/pam_skey.so
usr/lib/pam_unix.so emul/freebsd/usr/lib/pam_ssh.so
usr/libexec/ emul/freebsd/usr/lib/pam_tacplus.so
usr/libexec/ld-elf.so.1 emul/freebsd/usr/lib/pam_unix.so
usr/libexec/ld.so emul/freebsd/usr/libexec/
var/ emul/freebsd/usr/libexec/ld-elf.so.1
var/run/ emul/freebsd/usr/libexec/ld.so
var/run/ld-elf.so.hints emul/freebsd/var/
var/run/ld.so.hints emul/freebsd/var/run/
emul/freebsd/var/run/ld-elf.so.hints
emul/freebsd/var/run/ld.so.hints
@sysctl kern.emul.freebsd=1 @sysctl kern.emul.freebsd=1
@sample /emul/
@exec ln -fhs %D/emul/freebsd /emul/freebsd
@extra /emul/freebsd

View File

@ -1,5 +1,5 @@
# $OpenBSD: systrace.policy,v 1.2 2005/02/09 20:36:29 sturm Exp $ # $OpenBSD: systrace.policy,v 1.3 2007/05/30 15:29:43 espie Exp $
Policy: ${TRUEPREFIX}/sbin/ldconfig, Emulation: freebsd Policy: ${TRUEBASE}/sbin/ldconfig, Emulation: freebsd
freebsd-__sysctl: permit freebsd-__sysctl: permit
freebsd-break: permit freebsd-break: permit
freebsd-close: permit freebsd-close: permit