Dash:
[t2.git] / package / java / sun-jre-150 / mime-type-remove.diff
blobdd8a2b3e4a186d42064ce21d70514264043186e1
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../sun-jre-150/mime-type-remove.diff
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
16 we don't want java touching /etc/mailcap
17 Alejandro
19 we dont want java touching /usr/share/ registry files
20 mipe
22 we can't add new lines to .bin file because it does tail to checksum and to
23 generate tarball
24 Alejandro
26 Just a remark without modification: safe_mimetypeadd can not be used to add
27 mimetypes safely. This is done in postsysfiles.in. Create both mimetype and
28 mailcap entries.
29 Minto
31 --- jdk-1_5_0_03-linux-i586-orig.bin 2005-06-08 17:26:07.000000000 +0000
32 +++ jdk-1_5_0_03-linux-i586.bin 2005-06-08 17:50:13.000000000 +0000
33 @@ -356,7 +356,7 @@
34 if [ -w `dirname ${MAILCAP_FILE}` ]; then
35 MC_TEXT="${MC_TEXT}\n${MC_COMMENT}"
36 MC_TEXT="${MC_TEXT}\n${MIME_TYPE}; $LATEST_JAVAWS_PATH %s"
37 - echo ${echo_args}"${MC_TEXT}" > ${MAILCAP_FILE}
38 + #echo ${echo_args}"${MC_TEXT}" > ${MAILCAP_FILE}
39 else
40 echo "WARNING - cannot write to file:"
41 echo " ${MAILCAP_FILE}"
42 @@ -379,11 +379,11 @@
44 # Create the file if it does not exist
45 if [ ! -w ${MIME_FILE} ]; then
46 - if [ -w `dirname ${MIME_FILE}` ]; then
47 - echo "${NS_COMMENT1}" > ${MIME_FILE}
48 - echo "${NS_COMMENT2}" >> ${MIME_FILE}
49 - echo "${NS_COMMENT3}" >> ${MIME_FILE}
50 - else
51 + if [ ! -w `dirname ${MIME_FILE}` ]; then
52 + # echo "${NS_COMMENT1}" > ${MIME_FILE}
53 + # echo "${NS_COMMENT2}" >> ${MIME_FILE}
54 + # echo "${NS_COMMENT3}" >> ${MIME_FILE}
55 + #else
56 echo "WARNING - cannot write to file:"
57 echo " ${MIME_FILE}"
58 echo "Check permissions."
59 @@ -391,9 +391,9 @@
62 # Add the jnlp entry if it does not already exist.
63 - if [ -z "`grep ${MIME_TYPE} ${MIME_FILE}`" ]; then
64 - echo ${JNLP_ENTRY} >> ${MIME_FILE}
65 - fi
66 + #if [ -z "`grep ${MIME_TYPE} ${MIME_FILE}`" ]; then
67 + # echo ${JNLP_ENTRY} >> ${MIME_FILE}
68 + #fi
70 # End of UpdateMimeTypes
72 @@ -496,32 +496,32 @@
74 # since we are pretty certain this is a valid GNOME installation, create
75 # the required association directories in case they don't already exist.
76 - mkdir -p ${_gnome_dir}/${MIME_INFO}
77 - mkdir -p ${_gnome_dir}/${APP_REGISTRY}
78 + #mkdir -p ${_gnome_dir}/${MIME_INFO}
79 + #mkdir -p ${_gnome_dir}/${APP_REGISTRY}
81 GNOME_KEYS_FILE=${_gnome_dir}/${MIME_INFO}/${_name}.keys
82 GNOME_MIME_FILE=${_gnome_dir}/${MIME_INFO}/${_name}.mime
83 GNOME_APPS_FILE=${_gnome_dir}/${APP_REGISTRY}/${_name}.applications
85 # Create the keys file.
86 - echo "${_mime_type}" > $GNOME_KEYS_FILE
87 - echo " description=${_description}" >> $GNOME_KEYS_FILE
88 - echo " icon_filename=${_icon}" >> $GNOME_KEYS_FILE
89 - echo " default_action_type=application" >> $GNOME_KEYS_FILE
90 - echo " default_application_id=${_name}" >> $GNOME_KEYS_FILE
91 - echo " short_list_application_user_additions=${_name}" >> $GNOME_KEYS_FILE
92 + #echo "${_mime_type}" > $GNOME_KEYS_FILE
93 + #echo " description=${_description}" >> $GNOME_KEYS_FILE
94 + #echo " icon_filename=${_icon}" >> $GNOME_KEYS_FILE
95 + #echo " default_action_type=application" >> $GNOME_KEYS_FILE
96 + #echo " default_application_id=${_name}" >> $GNOME_KEYS_FILE
97 + #echo " short_list_application_user_additions=${_name}" >> $GNOME_KEYS_FILE
99 # Create the mime file.
100 - echo "${_mime_type}" > $GNOME_MIME_FILE
101 - echo " ext: ${_extension}" >> $GNOME_MIME_FILE
102 + #echo "${_mime_type}" > $GNOME_MIME_FILE
103 + #echo " ext: ${_extension}" >> $GNOME_MIME_FILE
105 # Create the apps file.
106 - echo "${_name}" > $GNOME_APPS_FILE
107 - echo " command=${_command}" >> $GNOME_APPS_FILE
108 - echo " name=${_name}" >> $GNOME_APPS_FILE
109 - echo " can_open_multiple_files=false" >> $GNOME_APPS_FILE
110 - echo " requires_terminal=false" >> $GNOME_APPS_FILE
111 - echo " mime_types=${_mime_type}" >> $GNOME_APPS_FILE
112 + #echo "${_name}" > $GNOME_APPS_FILE
113 + #echo " command=${_command}" >> $GNOME_APPS_FILE
114 + #echo " name=${_name}" >> $GNOME_APPS_FILE
115 + #echo " can_open_multiple_files=false" >> $GNOME_APPS_FILE
116 + #echo " requires_terminal=false" >> $GNOME_APPS_FILE
117 + #echo " mime_types=${_mime_type}" >> $GNOME_APPS_FILE
120 # End of AddGNOME
121 @@ -639,21 +639,21 @@
124 # Setup the GNOME associations
125 - AddGNOME application/java-archive \
126 - jar \
127 - java-archive \
128 - "${LATEST_JRE_PATH}/bin/java -jar" \
129 - sun-java \
130 - png \
131 - "Java Archive"
133 - AddGNOME ${MIME_TYPE} \
134 - jnlp \
135 - java-web-start \
136 - ${LATEST_JAVAWS_PATH} \
137 - sun-java \
138 - png \
139 - "Java Web Start Application"
140 + #AddGNOME application/java-archive \
141 + # jar \
142 + # java-archive \
143 + # "${LATEST_JRE_PATH}/bin/java -jar" \
144 + # sun-java \
145 + # png \
146 + # "Java Archive"
148 + #AddGNOME ${MIME_TYPE} \
149 + # jnlp \
150 + # java-web-start \
151 + # ${LATEST_JAVAWS_PATH} \
152 + # sun-java \
153 + # png \
154 + # "Java Web Start Application"