diff options
author | chs <chs> | 2010-09-24 01:27:25 +0000 |
---|---|---|
committer | chs <chs> | 2010-09-24 01:27:25 +0000 |
commit | 6a8366bc2d90b80a5cf8e2004a86c79d75cd3919 (patch) | |
tree | 2af3bac443b5e6e067d1e76940292f6c4cdbba7c /emulators/suse113_vmware | |
parent | fe746f695f5988cd12cec2158e24c814846bca5c (diff) | |
download | pkgsrc-6a8366bc2d90b80a5cf8e2004a86c79d75cd3919.tar.gz |
Initial import of openSUSE 11.3 packages for Linux emulation.
Diffstat (limited to 'emulators/suse113_vmware')
-rw-r--r-- | emulators/suse113_vmware/DEINSTALL | 9 | ||||
-rw-r--r-- | emulators/suse113_vmware/DESCR | 5 | ||||
-rw-r--r-- | emulators/suse113_vmware/INSTALL | 158 | ||||
-rw-r--r-- | emulators/suse113_vmware/Makefile | 14 | ||||
-rw-r--r-- | emulators/suse113_vmware/distinfo | 8 |
5 files changed, 194 insertions, 0 deletions
diff --git a/emulators/suse113_vmware/DEINSTALL b/emulators/suse113_vmware/DEINSTALL new file mode 100644 index 00000000000..1d35cee6b6e --- /dev/null +++ b/emulators/suse113_vmware/DEINSTALL @@ -0,0 +1,9 @@ +# $NetBSD: DEINSTALL,v 1.1.1.1 2010/09/24 01:28:12 chs Exp $ + +case "${STAGE}" in +DEINSTALL) + # Run any actions that require root privileges. + ${TEST} ! -x ./+ROOT_ACTIONS || + ./+ROOT_ACTIONS REMOVE ${PKG_METADATA_DIR} || exit 1 + ;; +esac diff --git a/emulators/suse113_vmware/DESCR b/emulators/suse113_vmware/DESCR new file mode 100644 index 00000000000..efff03682f1 --- /dev/null +++ b/emulators/suse113_vmware/DESCR @@ -0,0 +1,5 @@ +Linux compatibility package based on the SuSE Linux distribution. +Please visit http://www.suse.com/ for more information about SuSE +Linux. + +This package is a helper package for running VMware. diff --git a/emulators/suse113_vmware/INSTALL b/emulators/suse113_vmware/INSTALL new file mode 100644 index 00000000000..d1d36a1e1d9 --- /dev/null +++ b/emulators/suse113_vmware/INSTALL @@ -0,0 +1,158 @@ +# $NetBSD: INSTALL,v 1.1.1.1 2010/09/24 01:28:12 chs 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. +# +# Lines starting with "# SYMLINK: " are data read by this script that +# name the source paths and corresponding symlink that is managed by +# this script. If the symlink path is relative, then it is taken to be +# relative to ${PKG_PREFIX}. The source path is always unchanged. +# +# # SYMLINK: /dev/rcd0a ${EMULSUBDIR}/dev/cdrom +# + +CAT="@CAT@" +CHMOD="@CHMOD@" +ECHO="@ECHO@" +ID="@ID@" +LN="@LN@" +PWD_CMD="@PWD_CMD@" +RM="@RM@" +SED="@SED@" +TEST="@TEST@" + +SELF=$0 +ACTION=$1 + +CURDIR=`${PWD_CMD}` +PKG_METADATA_DIR="${2-${CURDIR}}" +: ${PKGNAME=${PKG_METADATA_DIR##*/}} +: ${PKG_PREFIX=@PREFIX@} + +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} + ${SED} -n "/^\# SYMLINK: /{s/^\# SYMLINK: //;p;}" ${SELF} | + while read src dst; do + case $src in + "") continue ;; + esac + case $dst in + "") continue ;; + [!/]*) dst="${PKG_PREFIX}/$dst" ;; + esac + + if ${TEST} ! -e "$dst"; then + ${ECHO} "${PKGNAME}: linking $dst -> $src" + ${LN} -fs "$src" "$dst" + else + ${ECHO} "${PKGNAME}: $dst already exists" + fi + done + ;; + +REMOVE,0) + ${SED} -n "/^\# SYMLINK: /{s/^\# SYMLINK: //;p;}" ${SELF} | + while read src dst; do + case $src in + "") continue ;; + esac + case $dst in + "") continue ;; + [!/]*) dst="${PKG_PREFIX}/$dst" ;; + esac + + if ${TEST} -h "$dst"; then + ${ECHO} "${PKGNAME}: removing $dst" + ${RM} -f "$dst" + fi + done + ${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 + ${SED} -n "/^\# SYMLINK: /p" ${SELF} >> ./+ROOT_ACTIONS + ${CHMOD} +x ./+ROOT_ACTIONS + ;; +esac + +# SYMLINK: /dev/rcd0a @EMULSUBDIR@/dev/cdrom +# SYMLINK: /dev/rfd0a @EMULSUBDIR@/dev/fd0 +# SYMLINK: /dev/wd0d @EMULSUBDIR@/dev/hda +# SYMLINK: /dev/wd1d @EMULSUBDIR@/dev/hdb +# SYMLINK: /dev/wd2d @EMULSUBDIR@/dev/hdc +# SYMLINK: /dev/wd3d @EMULSUBDIR@/dev/hdd +# SYMLINK: /dev/sd0d @EMULSUBDIR@/dev/hde +# SYMLINK: /dev/sd1d @EMULSUBDIR@/dev/hdf +# SYMLINK: /dev/sd2d @EMULSUBDIR@/dev/hdg +# SYMLINK: /dev/sd3d @EMULSUBDIR@/dev/hdh +# SYMLINK: /dev/sd4d @EMULSUBDIR@/dev/hdi +# SYMLINK: /dev/ttyE0 @EMULSUBDIR@/dev/tty1 +# SYMLINK: /dev/ttyE1 @EMULSUBDIR@/dev/tty2 +# SYMLINK: /dev/ttyE2 @EMULSUBDIR@/dev/tty3 +# SYMLINK: /dev/ttyE3 @EMULSUBDIR@/dev/tty4 +# SYMLINK: /dev/ttyE4 @EMULSUBDIR@/dev/tty5 +# SYMLINK: /dev/ttyE5 @EMULSUBDIR@/dev/tty6 +# SYMLINK: /dev/ttyE6 @EMULSUBDIR@/dev/tty7 +# SYMLINK: /dev/ttyE7 @EMULSUBDIR@/dev/tty8 +# SYMLINK: tty1 @EMULSUBDIR@/dev/tty0 + +case "${STAGE}" in +POST-INSTALL) + ${TEST} ! -x ./+ROOT_ACTIONS || + ./+ROOT_ACTIONS ADD ${PKG_METADATA_DIR} + ;; +esac diff --git a/emulators/suse113_vmware/Makefile b/emulators/suse113_vmware/Makefile new file mode 100644 index 00000000000..160a39badb4 --- /dev/null +++ b/emulators/suse113_vmware/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/09/24 01:28:12 chs Exp $ + +DISTNAME= suse_vmware-${SUSE_VERSION} +CATEGORIES= emulators +DISTFILES= grep-2.5.4-7.1.${SUSE_ARCH}.rpm + +MAINTAINER= pkgsrc-users@NetBSD.org +COMMENT= Linux compatibility package to help run VMware + +EMUL_MODULES.linux= base x11 +RPMIGNOREPATH= usr + +.include "../../emulators/suse113_linux/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/suse113_vmware/distinfo b/emulators/suse113_vmware/distinfo new file mode 100644 index 00000000000..0dae01fc26a --- /dev/null +++ b/emulators/suse113_vmware/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/09/24 01:28:12 chs Exp $ + +SHA1 (suse113/i586/grep-2.5.4-7.1.i586.rpm) = e9c17b93376cc6a78b134f2330703d7f562f68d3 +RMD160 (suse113/i586/grep-2.5.4-7.1.i586.rpm) = e82657e5336697d525b3718e880d380a765eb29e +Size (suse113/i586/grep-2.5.4-7.1.i586.rpm) = 164953 bytes +SHA1 (suse113/x86_64/grep-2.5.4-7.1.x86_64.rpm) = 14b489e6ad01dbf36c2b182515807ff76cac65a0 +RMD160 (suse113/x86_64/grep-2.5.4-7.1.x86_64.rpm) = 97dc3035fc546647e6cca484ef7a4480e302b0b6 +Size (suse113/x86_64/grep-2.5.4-7.1.x86_64.rpm) = 167022 bytes |