Lines 26-31
Link Here
|
26 |
dosym /usr/lib/${PLUGINS_DIR} $1 |
26 |
dosym /usr/lib/${PLUGINS_DIR} $1 |
27 |
} |
27 |
} |
28 |
|
28 |
|
|
|
29 |
SEARCHPLUGINS_DIR="nsbrowser/searchplugins" |
30 |
|
31 |
# This function move the searchplugin dir in src_install() to |
32 |
# ${D}/usr/lib/${PLUGIN_DIR}. First argument should be |
33 |
# the full path (without $D) to old plugin dir. |
34 |
src_mv_searchplugins() { |
35 |
|
36 |
# Move plugins dir. We use keepdir so that it might not be unmerged |
37 |
# by mistake ... |
38 |
keepdir /usr/lib/${SEARCHPLUGINS_DIR} |
39 |
cp -a ${D}/$1/* ${D}/usr/lib/${SEARCHPLUGINS_DIR} |
40 |
rm -rf ${D}/$1 |
41 |
dosym /usr/lib/${SEARCHPLUGINS_DIR} $1 |
42 |
} |
43 |
|
29 |
# This function move plugins in pkg_preinst() in old dir to |
44 |
# This function move plugins in pkg_preinst() in old dir to |
30 |
# ${ROOT}//usr/lib/${PLUGIN_DIR}. First argument should be |
45 |
# ${ROOT}//usr/lib/${PLUGIN_DIR}. First argument should be |
31 |
# the full path (without $ROOT) to old plugin dir. |
46 |
# the full path (without $ROOT) to old plugin dir. |
Lines 40-45
Link Here
|
40 |
fi |
55 |
fi |
41 |
} |
56 |
} |
42 |
|
57 |
|
|
|
58 |
# This function move searchplugins in pkg_preinst() in old dir to |
59 |
# ${ROOT}//usr/lib/${PLUGIN_DIR}. First argument should be |
60 |
# the full path (without $ROOT) to old plugin dir. |
61 |
pkg_mv_searchplugins() { |
62 |
|
63 |
# Move old searchplugins dir |
64 |
if [ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ] |
65 |
then |
66 |
mkdir -p ${ROOT}/usr/lib/${SEARCHPLUGINS_DIR} |
67 |
cp -a ${ROOT}/$1/* ${ROOT}/usr/lib/${SEARCHPLUGINS_DIR} |
68 |
rm -rf ${ROOT}/$1 |
69 |
fi |
70 |
} |
71 |
|
43 |
# This function installs a plugin with dosym to PLUGINS_DIR. |
72 |
# This function installs a plugin with dosym to PLUGINS_DIR. |
44 |
# First argument should be the plugin file. |
73 |
# First argument should be the plugin file. |
45 |
inst_plugin() { |
74 |
inst_plugin() { |