summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2011-09-19 13:40:48 +0200
committerTomas Chvatal <tchvatal@suse.cz>2011-09-19 20:33:55 +0200
commit03996d64c7fceec611a6a40e42a39e9ad0237ceb (patch)
tree37bb841a8736079130d20c288c013688d486935f /bin
parent5f98bc4e19f4dbcb12c64b7c3999bce12b219581 (diff)
Use PREFIXDIR each time possible to allow installing where /usr is not the prefix
Diffstat (limited to 'bin')
-rwxr-xr-xbin/distro-install-desktop-integration26
1 files changed, 13 insertions, 13 deletions
diff --git a/bin/distro-install-desktop-integration b/bin/distro-install-desktop-integration
index 80e5c4ab72fe..466a9ad7b94d 100755
--- a/bin/distro-install-desktop-integration
+++ b/bin/distro-install-desktop-integration
@@ -12,10 +12,10 @@ create_wrapper()
echo "Install $PREFIXDIR/bin/$1"
if test -L "$DESTDIR$PREFIXDIR/bin/$1" ; then
- # do not overwrite /usr/bin/libreoffice symlink created by create_tree.sh
+ # do not overwrite $PREFIXDIR/bin/libreoffice symlink created by create_tree.sh
# the symlink is necessary by java UNO components to find
# the UNO installation using $PATH; this function used to be provided
- # by /usr/bin/soffice symlink, see
+ # by $PREFIXDIR/bin/soffice symlink, see
# http://udk.openoffice.org/common/man/spec/transparentofficecomponents.html
# Note: if you want to support parallel installation of more OOo versions
# you cannot include this link directly into the package
@@ -87,7 +87,7 @@ add_wrapper()
test -n "$oowrapper_name" && create_man_link "$oowrapper_name" "$used_man_page" "$file_list"
# add desktop file to the right file list
- test -n "$desktop_file" -a -f "$DESTDIR/$file_list" && echo "/usr/share/applications/$desktop_file" >>"$DESTDIR/$file_list"
+ test -n "$desktop_file" -a -f "$DESTDIR/$file_list" && echo "$PREFIXDIR/share/applications/$desktop_file" >>"$DESTDIR/$file_list"
}
# install desktop integration from plain packages
@@ -109,8 +109,8 @@ sed -i \
export ICON_PREFIX=$INSTALLDIRNAME
export ICON_SOURCE_DIR=$builddir/sysui/desktop/icons
export PRODUCTVERSION=
- export KDEMAINDIR=/usr
- export GNOMEDIR=/usr
+ export KDEMAINDIR=$PREFIXDIR
+ export GNOMEDIR=$PREFIXDIR
export GNOME_MIME_THEME=hicolor
/bin/bash ./create_tree.sh
)
@@ -119,8 +119,8 @@ rm -rf $sysui_temp
# we do not want some stuff from the plain packages
rm -f $DESTDIR/$PREFIXDIR/bin/$INSTALLDIRNAME-printeradmin
-rm -f $DESTDIR/usr/share/applications/libreoffice-javafilter.desktop
-rm -f $DESTDIR/usr/share/applications/libreoffice-printeradmin.desktop
+rm -f $DESTDIR$PREFIXDIR/share/applications/libreoffice-javafilter.desktop
+rm -f $DESTDIR$PREFIXDIR/share/applications/libreoffice-printeradmin.desktop
if test -d $DESTDIR/opt ; then
rm -f $DESTDIR/opt/$INSTALLDIRNAME
rmdir --ignore-fail-on-non-empty $DESTDIR/opt
@@ -139,11 +139,11 @@ cd -
# put the stuff installed by create_tree.sh into the right file lists
# desktop files will be added by the corresponding add_wrapper command
if test -f $DESTDIR/gid_Module_Root_Brand ; then
- for dir in /usr/share/application-registry \
- /usr/share/mimelnk/application \
- /usr/share/mime/packages \
- /usr/share/mime-info \
- /usr/share/icons ; do
+ for dir in $PREFIXDIR/share/application-registry \
+ $PREFIXDIR/share/mimelnk/application \
+ $PREFIXDIR/share/mime/packages \
+ $PREFIXDIR/share/mime-info \
+ $PREFIXDIR/share/icons ; do
find "$DESTDIR$dir" \( -type f -o -type l \) -printf "$dir/%P\n" >>$DESTDIR/gid_Module_Root_Brand
done
fi
@@ -162,7 +162,7 @@ add_wrapper libreoffice soffice "" "libreoffice" "libreoffice-star
add_wrapper loffice soffice "" "libreoffice" "" "gid_Module_Root_Brand"
add_wrapper unopkg unopkg "" "unopkg" "" "gid_Module_Root_Brand"
-# /usr/bin/ooffice symlink is necessary by java UNO components to find
+# $PREFIXDIR/bin/ooffice symlink is necessary by java UNO components to find
# the UNO installation using $PATH, see
# http://udk.openoffice.org/common/man/spec/transparentofficecomponents.html
# Note: if you want to support parallel installation of more OOo versions