summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Klar <phoenix@gentoo.org>2002-12-13 20:50:33 +0000
committerTilman Klar <phoenix@gentoo.org>2002-12-13 20:50:33 +0000
commitf77e03160e5da15fa6f4d868a2770b4692f2b3a5 (patch)
tree1363f930243076b182d27df0370a571f9b80abf0 /eclass/nsplugins.eclass
parentBump to latest stable (diff)
downloadhistorical-f77e03160e5da15fa6f4d868a2770b4692f2b3a5.tar.gz
historical-f77e03160e5da15fa6f4d868a2770b4692f2b3a5.tar.bz2
historical-f77e03160e5da15fa6f4d868a2770b4692f2b3a5.zip
Modified inst_plugin() to not overwrite existing plugin links.
Diffstat (limited to 'eclass/nsplugins.eclass')
-rw-r--r--eclass/nsplugins.eclass21
1 files changed, 16 insertions, 5 deletions
diff --git a/eclass/nsplugins.eclass b/eclass/nsplugins.eclass
index 407e2d7dfef8..0b0592f33d19 100644
--- a/eclass/nsplugins.eclass
+++ b/eclass/nsplugins.eclass
@@ -1,7 +1,7 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author: Martin Schlemmer <azarah@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.5 2002/11/23 08:50:00 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.6 2002/12/13 20:50:33 phoenix Exp $
# Just some re-usable functions for the netscape/moz plugins sharing
ECLASS=nsplugins
@@ -40,9 +40,20 @@ pkg_mv_plugins() {
# This function installs a plugin with dosym to PLUGINS_DIR.
# First argument should be the plugin file.
inst_plugin() {
- dodir /usr/lib/${PLUGINS_DIR}
-# $ROOT should only be used in pkg_*() functions ...
-# dosym ${1} ${ROOT}/usr/lib/${PLUGINS_DIR}
- dosym ${1} /usr/lib/${PLUGINS_DIR}
+ # Get the filename
+ MYFILE="`echo ${1} | gawk -F '/' '{ print $NF }'`"
+
+ # Install the plugin if none is installed
+ if [ ! -L /usr/lib/${PLUGINS_DIR}/${MYFILE} ]
+ then
+ dodir /usr/lib/${PLUGINS_DIR}
+ # $ROOT should only be used in pkg_*() functions ...
+ # dosym ${1} ${ROOT}/usr/lib/${PLUGINS_DIR}
+ echo dosym ${1} /usr/lib/${PLUGINS_DIR}
+ dosym ${1} /usr/lib/${PLUGINS_DIR}
+ einfo "Symlinked the java plugin into the mozilla/phoenix/galeon plugin directory."
+ else
+ einfo "Not creating symlink for the java plugin, because there already is a java plugin installed."
+ fi
}