OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
6.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../sun-jre-150/mime-type-remove.diff
  5. # Copyright (C) 2004 - 2006 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. we don't want java touching /etc/mailcap
  17. Alejandro
  18. we dont want java touching /usr/share/ registry files
  19. mipe
  20. we can't add new lines to .bin file because it does tail to checksum and to
  21. generate tarball
  22. Alejandro
  23. Just a remark without modification: safe_mimetypeadd can not be used to add
  24. mimetypes safely. This is done in postsysfiles.in. Create both mimetype and
  25. mailcap entries.
  26. Minto
  27. --- jdk-1_5_0_03-linux-i586-orig.bin 2005-06-08 17:26:07.000000000 +0000
  28. +++ jdk-1_5_0_03-linux-i586.bin 2005-06-08 17:50:13.000000000 +0000
  29. @@ -356,7 +356,7 @@
  30. if [ -w `dirname ${MAILCAP_FILE}` ]; then
  31. MC_TEXT="${MC_TEXT}\n${MC_COMMENT}"
  32. MC_TEXT="${MC_TEXT}\n${MIME_TYPE}; $LATEST_JAVAWS_PATH %s"
  33. - echo ${echo_args}"${MC_TEXT}" > ${MAILCAP_FILE}
  34. + #echo ${echo_args}"${MC_TEXT}" > ${MAILCAP_FILE}
  35. else
  36. echo "WARNING - cannot write to file:"
  37. echo " ${MAILCAP_FILE}"
  38. @@ -379,11 +379,11 @@
  39. # Create the file if it does not exist
  40. if [ ! -w ${MIME_FILE} ]; then
  41. - if [ -w `dirname ${MIME_FILE}` ]; then
  42. - echo "${NS_COMMENT1}" > ${MIME_FILE}
  43. - echo "${NS_COMMENT2}" >> ${MIME_FILE}
  44. - echo "${NS_COMMENT3}" >> ${MIME_FILE}
  45. - else
  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. echo "WARNING - cannot write to file:"
  52. echo " ${MIME_FILE}"
  53. echo "Check permissions."
  54. @@ -391,9 +391,9 @@
  55. fi
  56. fi
  57. # Add the jnlp entry if it does not already exist.
  58. - if [ -z "`grep ${MIME_TYPE} ${MIME_FILE}`" ]; then
  59. - echo ${JNLP_ENTRY} >> ${MIME_FILE}
  60. - fi
  61. + #if [ -z "`grep ${MIME_TYPE} ${MIME_FILE}`" ]; then
  62. + # echo ${JNLP_ENTRY} >> ${MIME_FILE}
  63. + #fi
  64. }
  65. # End of UpdateMimeTypes
  66. @@ -496,32 +496,32 @@
  67. # since we are pretty certain this is a valid GNOME installation, create
  68. # the required association directories in case they don't already exist.
  69. - mkdir -p ${_gnome_dir}/${MIME_INFO}
  70. - mkdir -p ${_gnome_dir}/${APP_REGISTRY}
  71. + #mkdir -p ${_gnome_dir}/${MIME_INFO}
  72. + #mkdir -p ${_gnome_dir}/${APP_REGISTRY}
  73. GNOME_KEYS_FILE=${_gnome_dir}/${MIME_INFO}/${_name}.keys
  74. GNOME_MIME_FILE=${_gnome_dir}/${MIME_INFO}/${_name}.mime
  75. GNOME_APPS_FILE=${_gnome_dir}/${APP_REGISTRY}/${_name}.applications
  76. # Create the keys file.
  77. - echo "${_mime_type}" > $GNOME_KEYS_FILE
  78. - echo " description=${_description}" >> $GNOME_KEYS_FILE
  79. - echo " icon_filename=${_icon}" >> $GNOME_KEYS_FILE
  80. - echo " default_action_type=application" >> $GNOME_KEYS_FILE
  81. - echo " default_application_id=${_name}" >> $GNOME_KEYS_FILE
  82. - echo " short_list_application_user_additions=${_name}" >> $GNOME_KEYS_FILE
  83. + #echo "${_mime_type}" > $GNOME_KEYS_FILE
  84. + #echo " description=${_description}" >> $GNOME_KEYS_FILE
  85. + #echo " icon_filename=${_icon}" >> $GNOME_KEYS_FILE
  86. + #echo " default_action_type=application" >> $GNOME_KEYS_FILE
  87. + #echo " default_application_id=${_name}" >> $GNOME_KEYS_FILE
  88. + #echo " short_list_application_user_additions=${_name}" >> $GNOME_KEYS_FILE
  89. # Create the mime file.
  90. - echo "${_mime_type}" > $GNOME_MIME_FILE
  91. - echo " ext: ${_extension}" >> $GNOME_MIME_FILE
  92. + #echo "${_mime_type}" > $GNOME_MIME_FILE
  93. + #echo " ext: ${_extension}" >> $GNOME_MIME_FILE
  94. # Create the apps file.
  95. - echo "${_name}" > $GNOME_APPS_FILE
  96. - echo " command=${_command}" >> $GNOME_APPS_FILE
  97. - echo " name=${_name}" >> $GNOME_APPS_FILE
  98. - echo " can_open_multiple_files=false" >> $GNOME_APPS_FILE
  99. - echo " requires_terminal=false" >> $GNOME_APPS_FILE
  100. - echo " mime_types=${_mime_type}" >> $GNOME_APPS_FILE
  101. + #echo "${_name}" > $GNOME_APPS_FILE
  102. + #echo " command=${_command}" >> $GNOME_APPS_FILE
  103. + #echo " name=${_name}" >> $GNOME_APPS_FILE
  104. + #echo " can_open_multiple_files=false" >> $GNOME_APPS_FILE
  105. + #echo " requires_terminal=false" >> $GNOME_APPS_FILE
  106. + #echo " mime_types=${_mime_type}" >> $GNOME_APPS_FILE
  107. fi
  108. }
  109. # End of AddGNOME
  110. @@ -639,21 +639,21 @@
  111. fi
  112. # Setup the GNOME associations
  113. - AddGNOME application/java-archive \
  114. - jar \
  115. - java-archive \
  116. - "${LATEST_JRE_PATH}/bin/java -jar" \
  117. - sun-java \
  118. - png \
  119. - "Java Archive"
  120. -
  121. - AddGNOME ${MIME_TYPE} \
  122. - jnlp \
  123. - java-web-start \
  124. - ${LATEST_JAVAWS_PATH} \
  125. - sun-java \
  126. - png \
  127. - "Java Web Start Application"
  128. + #AddGNOME application/java-archive \
  129. + # jar \
  130. + # java-archive \
  131. + # "${LATEST_JRE_PATH}/bin/java -jar" \
  132. + # sun-java \
  133. + # png \
  134. + # "Java Archive"
  135. +
  136. + #AddGNOME ${MIME_TYPE} \
  137. + # jnlp \
  138. + # java-web-start \
  139. + # ${LATEST_JAVAWS_PATH} \
  140. + # sun-java \
  141. + # png \
  142. + # "Java Web Start Application"
  143. fi
  144. fi