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.

155 lines
6.4 KiB

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