summaryrefslogtreecommitdiffstats
path: root/sysui/desktop/solaris
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:06:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:06:44 +0000
commited5640d8b587fbcfed7dd7967f3de04b37a76f26 (patch)
tree7a5f7c6c9d02226d7471cb3cc8fbbf631b415303 /sysui/desktop/solaris
parentInitial commit. (diff)
downloadlibreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.tar.xz
libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.zip
Adding upstream version 4:7.4.7.upstream/4%7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sysui/desktop/solaris')
-rw-r--r--sysui/desktop/solaris/copyright2
-rw-r--r--sysui/desktop/solaris/depend7
-rwxr-xr-xsysui/desktop/solaris/mailcap103
-rw-r--r--sysui/desktop/solaris/mime.types82
-rw-r--r--sysui/desktop/solaris/pkginfo16
-rwxr-xr-xsysui/desktop/solaris/postinstall40
-rwxr-xr-xsysui/desktop/solaris/postremove33
-rw-r--r--sysui/desktop/solaris/prototype58
8 files changed, 341 insertions, 0 deletions
diff --git a/sysui/desktop/solaris/copyright b/sysui/desktop/solaris/copyright
new file mode 100644
index 000000000..bc2059a3e
--- /dev/null
+++ b/sysui/desktop/solaris/copyright
@@ -0,0 +1,2 @@
+Copyright 2000, 2010 Oracle and/or its affiliates. All rights reserved.
+Use is subject to license terms.
diff --git a/sysui/desktop/solaris/depend b/sysui/desktop/solaris/depend
new file mode 100644
index 000000000..050e13593
--- /dev/null
+++ b/sysui/desktop/solaris/depend
@@ -0,0 +1,7 @@
+P SUNWcar Core Architecture, (Root)
+P SUNWkvm Core Architecture, (Kvm)
+P SUNWcsr Core Solaris, (Root)
+P SUNWcsu Core Solaris, (Usr)
+P SUNWcsd Core Solaris Devices
+P SUNWcsl Core Solaris, (Shared Libs)
+P SUNWloc System Localization
diff --git a/sysui/desktop/solaris/mailcap b/sysui/desktop/solaris/mailcap
new file mode 100755
index 000000000..910fcbeb8
--- /dev/null
+++ b/sysui/desktop/solaris/mailcap
@@ -0,0 +1,103 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+
+if [ "$1" = install ]
+then
+# backing out existing entries to avoid duplicates
+sed '
+/^# OpenOffice.org/d
+/^application\/vnd\.oasis\.opendocument/d
+/^application\/vnd\.openofficeorg/d
+/^application\/vnd\.sun/d
+/^application\/vnd\.stardivision/d
+/^application\/vnd\.ms-word/d
+/^application\/vnd\.ms-excel/d
+/^application\/vnd\.ms-powerpoint/d
+/^application\/x-star/d
+/excel/d
+/ms[-]*word/d
+/powerpoint/d
+' ${PKG_INSTALL_ROOT}/etc/mailcap 2>/dev/null
+
+# now append our stuff to the temporary file
+cat << END
+# LibreOffice
+application/vnd.oasis.opendocument.text; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-template; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-master-template; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-web; %PREFIX -view %s
+application/vnd.oasis.opendocument.text-master; %PREFIX -view %s
+application/vnd.sun.xml.writer; %PREFIX -view %s
+application/vnd.sun.xml.writer.template; %PREFIX -view %s
+application/vnd.sun.xml.writer.global; %PREFIX -view %s
+application/vnd.stardivision.writer; %PREFIX -view %s
+application/vnd.stardivision.writer-global; %PREFIX -view %s
+application/x-starwriter; %PREFIX -view %s
+application/vnd.oasis.opendocument.formula; %PREFIX -view %s
+application/vnd.sun.xml.math; %PREFIX -view %s
+application/vnd.stardivision.math; %PREFIX -view %s
+application/x-starmath; %PREFIX -view %s
+application/msword; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.spreadsheet-template; %PREFIX -view %s
+application/vnd.sun.xml.calc; %PREFIX -view %s
+application/vnd.sun.xml.calc.template; %PREFIX -view %s
+application/vnd.stardivision.calc; %PREFIX -view %s
+application/x-starcalc; %PREFIX -view %s
+application/vnd.stardivision.chart; %PREFIX -view %s
+application/x-starchart; %PREFIX -view %s
+application/excel; %PREFIX -view %s
+application/msexcel; %PREFIX -view %s
+application/vnd.ms-excel; %PREFIX -view %s
+application/x-msexcel; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.presentation-template; %PREFIX -view %s
+application/vnd.sun.xml.impress; %PREFIX -view %s
+application/vnd.sun.xml.impress.template; %PREFIX -view %s
+application/vnd.stardivision.impress; %PREFIX -view %s
+application/x-starimpress; %PREFIX -view %s
+application/powerpoint; %PREFIX -view %s
+application/mspowerpoint; %PREFIX -view %s
+application/vnd.ms-powerpoint; %PREFIX -view %s
+application/x-mspowerpoint; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics-flat-xml; %PREFIX -view %s
+application/vnd.oasis.opendocument.graphics-template; %PREFIX -view %s
+application/vnd.sun.xml.draw; %PREFIX -view %s
+application/vnd.sun.xml.draw.template; %PREFIX -view %s
+application/vnd.stardivision.draw; %PREFIX -view %s
+application/x-stardraw; %PREFIX -view %s
+application/vnd.sun.xml.base; %PREFIX -view %s
+application/vnd.oasis.opendocument.database; %PREFIX -view %s
+application/vnd.writerperfect; %PREFIX -view %s
+application/wordperfect5.1; %PREFIX -view %s
+application/x-wordperfect; %PREFIX -view %s
+application/wordperfect; %PREFIX -view %s
+application/vnd.lotus-wordpro; %PREFIX -view %s
+application/wpwin; %PREFIX -view %s
+application/vnd.openofficeorg.extension; %PREFIX %s
+application/x-hwp; %PREFIX -view %s
+END
+else
+# backing all entries pointing to our binary
+sed '/%PREFIX/d' ${PKG_INSTALL_ROOT}/etc/mailcap 2>/dev/null
+fi
+
diff --git a/sysui/desktop/solaris/mime.types b/sysui/desktop/solaris/mime.types
new file mode 100644
index 000000000..1e10ad182
--- /dev/null
+++ b/sysui/desktop/solaris/mime.types
@@ -0,0 +1,82 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+
+if [ "$1" = install ]
+then
+# backing out existing entries to avoid duplicates
+sed '
+/application\/vnd\.oasis\.opendocument/d
+/application\/vnd\.sun/d
+/application\/vnd\.stardivision/d
+' ${PKG_INSTALL_ROOT}/etc/mime.types 2>/dev/null
+
+# now append our stuff to the temporary file
+cat << END
+application/vnd.oasis.opendocument.text odt
+application/vnd.oasis.opendocument.text-flat-xml fodt
+application/vnd.oasis.opendocument.text-template ott
+application/vnd.oasis.opendocument.text-web oth
+application/vnd.oasis.opendocument.text-master odm
+application/vnd.oasis.opendocument.text-master-template otm
+application/vnd.oasis.opendocument.graphics odg
+application/vnd.oasis.opendocument.graphics-flat-xml fodg
+application/vnd.oasis.opendocument.graphics-template otg
+application/vnd.oasis.opendocument.presentation odp
+application/vnd.oasis.opendocument.presentation-flat-xml fodp
+application/vnd.oasis.opendocument.presentation-template otp
+application/vnd.oasis.opendocument.spreadsheet ods
+application/vnd.oasis.opendocument.spreadsheet-flat-xml fods
+application/vnd.oasis.opendocument.spreadsheet-template ots
+application/vnd.oasis.opendocument.chart odc
+application/vnd.oasis.opendocument.formula odf
+application/vnd.oasis.opendocument.image odi
+application/vnd.sun.xml.writer sxw
+application/vnd.sun.xml.writer.template stw
+application/vnd.sun.xml.writer.global sxg
+application/vnd.stardivision.writer sdw vor
+application/vnd.stardivision.writer-global sgl
+application/vnd.sun.xml.calc sxc
+application/vnd.sun.xml.calc.template stc
+application/vnd.stardivision.calc sdc
+application/vnd.stardivision.chart sds
+application/vnd.sun.xml.impress sxi
+application/vnd.sun.xml.impress.template sti
+application/vnd.stardivision.impress sdd sdp
+application/vnd.sun.xml.draw sxd
+application/vnd.sun.xml.draw.template std
+application/vnd.stardivision.draw sda
+application/vnd.sun.xml.math sxm
+application/vnd.stardivision.math smf
+application/vnd.sun.xml.base odb
+application/vnd.openofficeorg.extension oxt
+application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
+application/vnd.ms-word.document.macroEnabled.12 docm
+application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
+application/vnd.ms-word.template.macroEnabled.12 dotm
+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
+application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
+application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
+application/vnd.ms-excel.template.macroEnabled.12 xltm
+application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
+application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
+application/vnd.openxmlformats-officedocument.presentationml.template potx
+application/vnd.ms-powerpoint.template.macroEnabled.12 potm
+END
+else
+cat ${PKG_INSTALL_ROOT}/etc/mime.types
+fi
diff --git a/sysui/desktop/solaris/pkginfo b/sysui/desktop/solaris/pkginfo
new file mode 100644
index 000000000..f1b86a85e
--- /dev/null
+++ b/sysui/desktop/solaris/pkginfo
@@ -0,0 +1,16 @@
+PKG=%pkgprefix3-desktop-int
+NAME=%PRODUCTNAME Solaris desktop integration
+CATEGORY=application
+BASEDIR=/
+VENDOR=The Document Foundation
+HOTLINE=Please contact your local service provider
+EMAIL=
+MAXINST=1000
+SUNW_PKGTYPE=usr
+SUNW_PKGVERS=1.0
+CLASSES=none build
+OFFICE_PATH=
+LEGACY_GNOME="false"
+DESC=Desktop integration for %PRODUCTNAME
+SUNW_PRODNAME=%PRODUCTNAME
+SUNW_PRODVERS=3
diff --git a/sysui/desktop/solaris/postinstall b/sysui/desktop/solaris/postinstall
new file mode 100755
index 000000000..594db276b
--- /dev/null
+++ b/sysui/desktop/solaris/postinstall
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+
+# check whether /usr is writable
+tiptoe="${PKG_INSTALL_ROOT}/usr/_.$$"
+touch "$tiptoe" >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+ exit 0
+fi
+rm -f "$tiptoe"
+
+# update shared mime database
+if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database "${PKG_INSTALL_ROOT}"/usr/share/mime
+fi
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q
+elif (which update-desktop-database); then
+ update-desktop-database -q /usr/share/applications
+fi
+
+
+exit 0
diff --git a/sysui/desktop/solaris/postremove b/sysui/desktop/solaris/postremove
new file mode 100755
index 000000000..7db44e061
--- /dev/null
+++ b/sysui/desktop/solaris/postremove
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+
+# check whether /usr is writable
+tiptoe="${PKG_INSTALL_ROOT}/usr/_.$$"
+touch "$tiptoe" >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+ exit 0
+fi
+rm -f "$tiptoe"
+
+# update shared mime database
+if [ -x /usr/bin/update-mime-database ]; then
+ update-mime-database "${PKG_INSTALL_ROOT}"/usr/share/mime
+fi
+
+exit 0
diff --git a/sysui/desktop/solaris/prototype b/sysui/desktop/solaris/prototype
new file mode 100644
index 000000000..201005e32
--- /dev/null
+++ b/sysui/desktop/solaris/prototype
@@ -0,0 +1,58 @@
+i pkginfo=pkginfo
+i copyright=./copyright
+i depend=depend
+i postinstall=postinstall
+i postremove=postremove
+d none etc 0755 root sys
+d none usr 0755 root sys
+d none usr/bin 0755 root bin
+s none usr/bin/soffice=../../opt/%PREFIX/program/soffice
+f none usr/bin/%PREFIX=%SOURCE/openoffice.sh 0755 root bin
+d none usr/share 0755 root sys
+d none usr/share/applications 0755 root other
+d none usr/share/mime 0755 root root
+d none usr/share/mime/packages 0755 root root
+d none usr/share/pixmaps 0755 root other
+d none share/mime 0755 root other
+d none share/mime/packages 0755 root other
+!default 0644 root bin
+e build etc/mime.types=./mime.types
+e build etc/mailcap=mailcap
+f none usr/share/mime/packages/%PREFIX.xml=%SOURCE/openoffice.org.xml
+s none usr/share/applications/%PREFIX-writer.desktop=../../../opt/%PREFIX/share/xdg/writer.desktop
+s none usr/share/applications/%PREFIX-calc.desktop=../../../opt/%PREFIX/share/xdg/calc.desktop
+s none usr/share/applications/%PREFIX-draw.desktop=../../../opt/%PREFIX/share/xdg/draw.desktop
+s none usr/share/applications/%PREFIX-impress.desktop=../../../opt/%PREFIX/share/xdg/impress.desktop
+s none usr/share/applications/%PREFIX-math.desktop=../../../opt/%PREFIX/share/xdg/math.desktop
+s none usr/share/applications/%PREFIX-base.desktop=../../../opt/%PREFIX/share/xdg/base.desktop
+f none usr/share/pixmaps/%ICONPREFIX-writer.png=../icons/hicolor/48x48/apps/writer.png
+f none usr/share/pixmaps/%ICONPREFIX-calc.png=../icons/hicolor/48x48/apps/calc.png
+f none usr/share/pixmaps/%ICONPREFIX-draw.png=../icons/hicolor/48x48/apps/draw.png
+f none usr/share/pixmaps/%ICONPREFIX-impress.png=../icons/hicolor/48x48/apps/impress.png
+f none usr/share/pixmaps/%ICONPREFIX-math.png=../icons/hicolor/48x48/apps/math.png
+f none usr/share/pixmaps/%ICONPREFIX-base.png=../icons/hicolor/48x48/apps/base.png
+f none usr/share/pixmaps/%ICONPREFIX-text.png=../icons/hicolor/48x48/mimetypes/text.png
+f none usr/share/pixmaps/%ICONPREFIX-text-template.png=../icons/hicolor/48x48/mimetypes/text-template.png
+f none usr/share/pixmaps/%ICONPREFIX-spreadsheet.png=../icons/hicolor/48x48/mimetypes/spreadsheet.png
+f none usr/share/pixmaps/%ICONPREFIX-spreadsheet-template.png=../icons/hicolor/48x48/mimetypes/spreadsheet-template.png
+f none usr/share/pixmaps/%ICONPREFIX-drawing.png=../icons/hicolor/48x48/mimetypes/drawing.png
+f none usr/share/pixmaps/%ICONPREFIX-drawing-template.png=../icons/hicolor/48x48/mimetypes/drawing-template.png
+f none usr/share/pixmaps/%ICONPREFIX-presentation.png=../icons/hicolor/48x48/mimetypes/presentation.png
+f none usr/share/pixmaps/%ICONPREFIX-presentation-template.png=../icons/hicolor/48x48/mimetypes/presentation-template.png
+f none usr/share/pixmaps/%ICONPREFIX-master-document.png=../icons/hicolor/48x48/mimetypes/master-document.png
+f none usr/share/pixmaps/%ICONPREFIX-formula.png=../icons/hicolor/48x48/mimetypes/formula.png
+f none usr/share/pixmaps/%ICONPREFIX-database.png=../icons/hicolor/48x48/mimetypes/database.png
+f none usr/share/pixmaps/%ICONPREFIX-extension.png=../icons/hicolor/48x48/mimetypes/extension.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-text.png=../icons/hicolor/48x48/mimetypes/oasis-text.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-text-template.png=../icons/hicolor/48x48/mimetypes/oasis-text-template.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-spreadsheet.png=../icons/hicolor/48x48/mimetypes/oasis-spreadsheet.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-spreadsheet-template.png=../icons/hicolor/48x48/mimetypes/oasis-spreadsheet-template.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-drawing.png=../icons/hicolor/48x48/mimetypes/oasis-drawing.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-drawing-template.png=../icons/hicolor/48x48/mimetypes/oasis-drawing-template.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-presentation.png=../icons/hicolor/48x48/mimetypes/oasis-presentation.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-presentation-template.png=../icons/hicolor/48x48/mimetypes/oasis-presentation-template.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-master-document.png=../icons/hicolor/48x48/mimetypes/oasis-master-document.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-formula.png=../icons/hicolor/48x48/mimetypes/oasis-formula.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-database.png=../icons/hicolor/48x48/mimetypes/oasis-database.png
+f none usr/share/pixmaps/%ICONPREFIX-oasis-web-template.png=../icons/hicolor/48x48/mimetypes/oasis-web-template.png
+