pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/suse121_base Import suse_base-12.1 as emulat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8075abd5a613
branches:  trunk
changeset: 601428:8075abd5a613
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Mar 21 13:35:50 2012 +0000

description:
Import suse_base-12.1 as emulators/suse121_base.

Linux compatibility package based on the openSUSE Linux distribution.
Please visit http://www.opensuse.org/ for more information about openSUSE
Linux.

This package supports running ELF binaries linked with glibc2 that
don't require X11 shared libraries.

diffstat:

 emulators/suse121_base/DEINSTALL            |   24 +++
 emulators/suse121_base/DESCR                |    6 +
 emulators/suse121_base/INSTALL              |  151 ++++++++++++++++++++++
 emulators/suse121_base/MESSAGE.DragonFly    |    8 +
 emulators/suse121_base/MESSAGE.FreeBSD      |    8 +
 emulators/suse121_base/MESSAGE.NetBSD       |   17 ++
 emulators/suse121_base/Makefile             |   86 ++++++++++++
 emulators/suse121_base/PLIST                |    4 +
 emulators/suse121_base/distinfo             |  188 ++++++++++++++++++++++++++++
 emulators/suse121_base/files/SuSE-release   |    2 +
 emulators/suse121_base/files/linux-mkpwd.sh |   36 +++++
 11 files changed, 530 insertions(+), 0 deletions(-)

diffs (truncated from 574 to 300 lines):

diff -r 9f7f62353451 -r 8075abd5a613 emulators/suse121_base/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_base/DEINSTALL  Wed Mar 21 13:35:50 2012 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2012/03/21 13:35:50 obache Exp $
+
+EMULDIR="${PKG_PREFIX}/@EMULSUBDIR@"
+
+case "${STAGE}" in
+DEINSTALL)
+       # Run any actions that require root privileges.
+       ${TEST} ! -x ./+ROOT_ACTIONS ||
+               ./+ROOT_ACTIONS REMOVE ${PKG_METADATA_DIR} || exit 1
+
+       # Blow away the /proc directory
+       ${RMDIR} -p ${EMULDIR}/proc
+
+       # Remove some files created by pkgsrc.
+       ${RM} -f ${EMULDIR}/etc/ld.so.cache
+       ${RM} -f ${EMULDIR}/etc/mtab
+       ${RM} -f ${EMULDIR}/etc/group
+       ${RM} -f ${EMULDIR}/etc/gshadow
+       ${RM} -f ${EMULDIR}/etc/passwd
+       ${RM} -f ${EMULDIR}/etc/shadow
+       ${RM} -f ${EMULDIR}/var/cache/ldconfig/aux-cache
+       ${RM} -rf ${EMULDIR}/var/lock
+       ;;
+esac
diff -r 9f7f62353451 -r 8075abd5a613 emulators/suse121_base/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_base/DESCR      Wed Mar 21 13:35:50 2012 +0000
@@ -0,0 +1,6 @@
+Linux compatibility package based on the openSUSE Linux distribution.
+Please visit http://www.opensuse.org/ for more information about openSUSE
+Linux.
+
+This package supports running ELF binaries linked with glibc2 that
+don't require X11 shared libraries.
diff -r 9f7f62353451 -r 8075abd5a613 emulators/suse121_base/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_base/INSTALL    Wed Mar 21 13:35:50 2012 +0000
@@ -0,0 +1,151 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2012/03/21 13:35:50 obache Exp $
+
+# Generate a +ROOT_ACTIONS script that runs certain actions that require
+# superuser privileges.
+#
+case "${STAGE},$1" in
+UNPACK,|UNPACK,+ROOT_ACTIONS)
+       ${CAT} > ./+ROOT_ACTIONS << 'EOF'
+#!@SH@
+#
+# +ROOT_ACTIONS - run actions requiring superuser privileges
+#
+# Usage: ./+ROOT_ACTIONS ADD|REMOVE [metadatadir]
+#
+# This script runs certain actions that require superuser privileges.
+# If such privileges are not available, then simply output a message
+# asking the user to run this script with the appropriate elevated
+# privileges.
+#
+
+CAT="@CAT@"
+CHMOD="@CHMOD@"
+CP="@CP@"
+DIRNAME="@DIRNAME@"
+ECHO="@ECHO@"
+ID="@ID@"
+LN="@LN@"
+MKDIR="@MKDIR@"
+PWD_CMD="@PWD_CMD@"
+RM="@RM@"
+SH="@SH@"
+TEST="@TEST@"
+
+SELF=$0
+ACTION=$1
+
+CURDIR=`${PWD_CMD}`
+PKG_METADATA_DIR="${2-${CURDIR}}"
+: ${PKGNAME=${PKG_METADATA_DIR##*/}}
+: ${PKG_PREFIX=@PREFIX@}
+
+EMULDIR="${PKG_PREFIX}/@EMULSUBDIR@"
+OPSYS_EMULDIR="@OPSYS_EMULDIR@"
+
+ROOT_ACTIONS_COOKIE="./+ROOT_ACTIONS_done"
+EUID=`${ID} -u`
+
+exitcode=0
+case $ACTION,$EUID in
+ADD,0)
+       ${ECHO} "" > ${ROOT_ACTIONS_COOKIE}
+       ${CHMOD} g+w ${ROOT_ACTIONS_COOKIE}
+       # Create an appropriate Linux-like /dev directory.
+       ${ECHO} "${PKGNAME}: populating ${EMULDIR}/dev"
+       ${MKDIR} ${EMULDIR}/dev
+       ${TEST} ! -f /dev/MAKEDEV ||
+               ${CP} /dev/MAKEDEV ${EMULDIR}/dev
+       ${TEST} ! -f /dev/MAKEDEV.subr ||
+               ${CP} /dev/MAKEDEV.subr ${EMULDIR}/dev
+       ${TEST} ! -f ${EMULDIR}/dev/MAKEDEV ||
+               ( cd ${EMULDIR}/dev &&
+                 ${SH} ./MAKEDEV std audio &&
+                 ${LN} -fs sound dsp )
+
+       # Create the appropriate symlink so that the kernel will
+       # find the installed files.
+       #
+       OPSYS_EMULDIR_PWD=`cd ${OPSYS_EMULDIR} 2>/dev/null && ${PWD_CMD}`
+       EMULDIR_PWD=`cd ${EMULDIR} 2>/dev/null && ${PWD_CMD}`
+
+       if ${TEST} "${OPSYS_EMULDIR_PWD}" != "${EMULDIR_PWD}"; then
+               if ${TEST} -e ${OPSYS_EMULDIR} -o -L ${OPSYS_EMULDIR}; then
+                       ${CAT} << EOM
+==============================================================================
+The following symbolic link must be created for ${PKGNAME}
+to work properly:
+
+       ${EMULDIR} -> ${OPSYS_EMULDIR}
+
+==============================================================================
+EOM
+               else
+                       ${ECHO} "${PKGNAME}: creating symlink ${EMULDIR} -> ${OPSYS_EMULDIR}"
+                       ( ${MKDIR} -p `${DIRNAME} ${OPSYS_EMULDIR}` && 
+                         ${LN} -fs ${EMULDIR} ${OPSYS_EMULDIR} ) || ${TRUE}
+               fi
+       fi
+       ;;
+
+REMOVE,0)
+       ${ECHO} "${PKGNAME}: removing ${EMULDIR}/dev"
+       ${RM} -fr ${EMULDIR}/dev
+       ${RM} -f ${ROOT_ACTIONS_COOKIE}
+       ;;
+
+ADD,*)
+       if ${TEST} ! -f ${ROOT_ACTIONS_COOKIE}; then
+               ${CAT} << EOM
+==============================================================================
+Please run the following command with superuser privileges to complete
+the installation of ${PKGNAME}:
+
+    cd ${PKG_METADATA_DIR} && ${SELF} ADD
+
+==============================================================================
+EOM
+       fi
+       ;;
+
+REMOVE,*)
+       if ${TEST} -f ${ROOT_ACTIONS_COOKIE}; then
+               ${CAT} << EOM
+==============================================================================
+Please run the following command with superuser privileges to begin the
+removal of ${PKGNAME}:
+
+    cd ${PKG_METADATA_DIR} && ${SELF} REMOVE
+
+Then, please run pkg_delete(1) again to complete the removal of this
+package.
+
+==============================================================================
+EOM
+               exitcode=1
+       fi
+       ;;
+esac
+exit $exitcode
+
+EOF
+       ${CHMOD} +x ./+ROOT_ACTIONS
+       ;;
+esac
+
+EMULDIR="${PKG_PREFIX}/@EMULSUBDIR@"
+OPSYS_EMULDIR="@OPSYS_EMULDIR@"
+
+case "${STAGE}" in
+POST-INSTALL)
+       # Create a /proc mount point.
+       ${MKDIR} -p ${EMULDIR}/proc
+
+       # Make /etc/mtab usable for Linux programs.
+       ${RM} -f ${EMULDIR}/etc/mtab
+       ${LN} -fs ${EMULDIR}/proc/mounts ${EMULDIR}/etc/mtab
+
+       # Run any actions that require root privileges.
+       ${TEST} ! -x ./+ROOT_ACTIONS ||
+               ./+ROOT_ACTIONS ADD ${PKG_METADATA_DIR}
+       ;;
+esac
diff -r 9f7f62353451 -r 8075abd5a613 emulators/suse121_base/MESSAGE.DragonFly
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_base/MESSAGE.DragonFly  Wed Mar 21 13:35:50 2012 +0000
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE.DragonFly,v 1.1.1.1 2012/03/21 13:35:50 obache Exp $
+
+Do not forget to include COMPAT_LINUX in your kernel configuration file.
+You will also need to load the "linux.ko" kernel module (using kldload(8)
+or by setting linux_enable=yes in /etc/rc.conf.
+Most Linux binaries also require linprocfs to be mounted.
+===========================================================================
diff -r 9f7f62353451 -r 8075abd5a613 emulators/suse121_base/MESSAGE.FreeBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_base/MESSAGE.FreeBSD    Wed Mar 21 13:35:50 2012 +0000
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE.FreeBSD,v 1.1.1.1 2012/03/21 13:35:50 obache Exp $
+
+Do not forget to include COMPAT_LINUX in your kernel configuration file.
+You will also need to load the "linux.ko" kernel module (using kldload(8)
+or by setting linux_enable=yes in /etc/rc.conf.
+Most Linux binaries also require linprocfs to be mounted.
+===========================================================================
diff -r 9f7f62353451 -r 8075abd5a613 emulators/suse121_base/MESSAGE.NetBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_base/MESSAGE.NetBSD     Wed Mar 21 13:35:50 2012 +0000
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE.NetBSD,v 1.1.1.1 2012/03/21 13:35:50 obache Exp $
+
+Do not forget to include COMPAT_LINUX in your kernel configuration file.
+Linux binaries require this option in order to work.
+
+Most Linux binaries also require procfs to be mounted with -o linux.
+This can be automated by adding the following to your /etc/fstab:
+
+procfs /${EMULSUBDIR}/proc procfs ro,linux
+
+Some Linux binaries also require tmpfs to be mounted on /dev/shm.
+This can be automated by adding the following to your /etc/fstab:
+
+tmpfs /${EMULSUBDIR}/dev/shm tmpfs rw,-m1777
+
+===========================================================================
diff -r 9f7f62353451 -r 8075abd5a613 emulators/suse121_base/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse121_base/Makefile   Wed Mar 21 13:35:50 2012 +0000
@@ -0,0 +1,86 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/03/21 13:35:50 obache Exp $
+
+DISTNAME=      suse_base-${SUSE_VERSION}
+CATEGORIES=    emulators
+RPMUPDPKGS+=   aaa_base-${SUSE_VERSION}-534.107.1.${SUSE_ARCH}
+RPMPKGS+=      bash-4.2-1.8.1.${SUSE_ARCH}
+RPMPKGS+=      coreutils-8.14-3.1.2.${SUSE_ARCH}
+RPMPKGS+=      cyrus-sasl-2.1.23-20.1.2.${SUSE_ARCH}
+RPMPKGS+=      findutils-4.4.2-17.1.2.${SUSE_ARCH}
+RPMPKGS+=      gdbm-1.8.3-388.1.3.${SUSE_ARCH}
+RPMUPDPKGS+=   glibc-2.14.1-14.25.1.${SUSE_ARCH}
+RPMPKGS+=      keyutils-1.5.3-2.1.2.${SUSE_ARCH}
+RPMPKGS+=      libFLAC8-1.2.1-88.1.2.${SUSE_ARCH}
+RPMPKGS+=      libacl1-2.2.51-4.1.4.${SUSE_ARCH}
+RPMPKGS+=      libattr1-2.4.46-5.1.5.${SUSE_ARCH}
+RPMPKGS+=      libcap2-2.22-2.1.4.${SUSE_ARCH}
+RPMPKGS+=      libgcc46-4.6.2_20111026-1.1.4.${SUSE_ARCH}
+RPMPKGS+=      libidn-1.22-7.1.2.${SUSE_ARCH}
+RPMPKGS+=      libldap-2_4-2-2.4.26-3.1.2.${SUSE_ARCH}
+RPMPKGS+=      libncurses5-5.8-5.1.4.${SUSE_ARCH}
+RPMPKGS+=      libncurses6-5.8-5.1.4.${SUSE_ARCH}
+RPMPKGS+=      libogg0-1.2.2-8.1.2.${SUSE_ARCH}
+RPMPKGS+=      libpcre0-8.13-2.1.2.${SUSE_ARCH}
+RPMPKGS+=      libreadline6-6.2-1.8.1.${SUSE_ARCH}
+RPMPKGS+=      libselinux1-2.0.91-14.1.12.${SUSE_ARCH}
+RPMPKGS+=      libsndfile-1.0.25-6.1.2.${SUSE_ARCH}
+RPMPKGS+=      libssh2-1-1.2.9-7.1.3.${SUSE_ARCH}
+RPMPKGS+=      libstdc++46-4.6.2_20111026-1.1.4.${SUSE_ARCH}
+RPMUPDPKGS+=   libuuid1-2.20.1-1.8.1.${SUSE_ARCH}
+RPMUPDPKGS+=   libvorbis0-1.3.2-12.3.1.${SUSE_ARCH}
+RPMPKGS+=      mozilla-nspr-4.8.9-3.1.2.${SUSE_ARCH}
+RPMUPDPKGS+=   mozilla-nss-3.13.1-9.11.1.${SUSE_ARCH}
+RPMPKGS+=      net-tools-1.60-751.1.2.${SUSE_ARCH}
+RPMPKGS+=      tcpd-7.6-870.1.2.${SUSE_ARCH}
+RPMUPDPKGS+=   zlib-1.2.5_git201105272030-20.3.1.${SUSE_ARCH}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Linux compatibility package
+
+CONFLICTS=     linux_SuSE-5.3 linux_lib-2.4 linuxppc_lib-[0-9]*
+
+# These files are managed by the +INSTALL/+DEINSTALL scripts.
+CHECK_FILES_SKIP+=     ${EMULDIR}/dev/.*
+CHECK_FILES_SKIP+=     ${EMULDIR}/etc/ld.so.cache
+
+RPMIGNOREPATH=         ./etc/bash.bashrc ./etc/bash_completion.d \
+                       ./etc/cron.daily ./etc/csh.cshrc ./etc/csh.login \
+                       ./etc/inittab ./etc/hushlogins ./etc/java \
+                       ./etc/mailcap ./etc/mime.types ./etc/nsswitch.conf \
+                       ./etc/pam.d ./etc/profile ./etc/profile.dos \
+                       ./etc/rc.d.README ./etc/rpc ./etc/shells ./etc/ttytype
+
+LINUX_LDD=             ${EMULDIR}/usr/bin/ldd
+LINUX_LDCONFIG=                ${EMULDIR}/usr/sbin/ldconfig
+
+INSTALLATION_DIRS+=    ${EMULDIR}/etc ${EMULDIR}/dev/shm ${EMULDIR}/var/lock
+INSTALLATION_DIRS+=    sbin
+OWN_DIRS+=             ${EMULSUBDIR}



Home | Main Index | Thread Index | Old Index