head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.4 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.2 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.3.0.40 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.38 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.36 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.34 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.32 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.30 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.28 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.26 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.24 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.22 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.20 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.18 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.16 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.14 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.12 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.10 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.8 pkgsrc-2008Q1:1.3.0.6 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.4 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.2 pkgsrc-2007Q3-base:1.3; locks; strict; comment @# @; 1.4 date 2012.03.17.06.08.16; author obache; state dead; branches; next 1.3; 1.3 date 2007.08.22.02.19.15; author jlam; state Exp; branches; next 1.2; 1.2 date 2007.07.30.00.01.05; author jlam; state Exp; branches; next 1.1; 1.1 date 2007.07.29.05.19.00; author jlam; state Exp; branches; next ; desc @@ 1.4 log @Drop gdk-pixbuf, gtk and vmware modules for suse. * gdk-pixbuf and gtk are not used anywhere in pkgsrc and suse>10.0 does not support them. * vmware module was used for emulators/vmware* packages, but it had been removed from pkgsrc. @ text @# $NetBSD: INSTALL,v 1.3 2007/08/22 02:19:15 jlam 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 @ 1.3 log @When testing for the existence of the symlink before removal, use "test -h", not "test -e" which tests for the existence of the target of the symlink. Bump the PKGREVISIONs of suse100_vmware and suse91_vmware. @ text @d1 1 a1 1 # $NetBSD: INSTALL,v 1.2 2007/07/30 00:01:05 jlam Exp $ @ 1.2 log @Assume that the +ROOT_ACTIONS script is always executed from the current working directory. This should fix problems installing the suse*_base and suse*_vmware packages as a privileged user. When this package is installed as a privileged user, the +ROOT_ACTIONS script is executed from ${WRKDIR}/.pkginstall before the package metadata directory exists. @ text @d1 1 a1 1 # $NetBSD: INSTALL,v 1.1 2007/07/29 05:19:00 jlam Exp $ d67 2 d84 1 a84 1 if ${TEST} -e "$dst"; then @ 1.1 log @* Add new emulator framework in pkgsrc/mk/emulator that handles all binary-only packages that require binary "emulation" on the native operating system. Please see pkgsrc/mk/emulator/README for more details. * Teach the plist framework to automatically use any existing PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition. * Convert all of the binary-only packages in pkgsrc to use the emulator framework. Most of them have been tested to install and deinstall correctly. This involves the following cleanup actions: * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM} more consistently. * Simplify packages by using default INSTALL and DEINSTALL scripts instead of custom INSTALL/DEINSTALL code. * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc. Packages only need to state exactly which emulations they support, and the framework handles any i386-on-x86_64 or sparc-on-sparc64 uses. * Remove "USE_NATIVE_LINUX" from pkgsrc. The framework will automatically detect when the package is installing on Linux. Specific changes to packages include: * Bump the PKGREVISIONs for all of the suse100* and suse91* packages due to changes in the +INSTALL/+DEINSTALL scripts used in all of the packages. * Remove pkgsrc/emulators/suse_linux, which is unused by any packages. * cad/lc -- remove custom code to create the distinfo file for all supported platforms; just use "emul-fetch" and "emul-distinfo" instead. * lang/Cg-compiler -- install the shared libraries under ${EMULDIR} instead of ${PREFIX}/lib so that compiled programs will find the shared libraries. * mail/thunderbird-bin-nightly -- update to latest binary distributions for supported platforms. * multimedia/ns-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. * security/uvscan -- set LD_LIBRARY_PATH explicitly so that it's not necessary to install library symlinks into ${EMULDIR}/usr/local/lib. * www/firefox-bin-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. @ text @d1 1 a1 1 # $NetBSD$ d46 1 a46 1 ROOT_ACTIONS_COOKIE="${PKG_METADATA_DIR}/+ROOT_ACTIONS_done" @