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.

158 lines
7.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../openssl/lib64.patch
  5. # Copyright (C) 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. lib64 support. Uses the same variable, LIBDIR, as the Debian one but also
  17. installs the engins in the correct dir. LIBDIR must be defined additionaly.
  18. Done in T2 with the gcc wrapper.
  19. - Rene Rebe <rene@exactcode.de>
  20. --- openssl-0.9.8a/Makefile.org 2005-10-11 12:21:48.000000000 +0200
  21. +++ openssl-0.9.8a/Makefile.org 2006-01-11 17:49:27.000000000 +0100
  22. @@ -170,7 +170,7 @@
  23. CC='${CC}' CFLAG='${CFLAG}' \
  24. AS='${CC}' ASFLAG='${CFLAG} -c' \
  25. AR='${AR}' PERL='${PERL}' RANLIB='${RANLIB}' \
  26. - SDIRS='${SDIRS}' LIBRPATH='${INSTALLTOP}/lib' \
  27. + SDIRS='${SDIRS}' LIBRPATH='${INSTALLTOP}/${LIBDIR}' \
  28. INSTALL_PREFIX='${INSTALL_PREFIX}' \
  29. INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' \
  30. MAKEDEPEND='$$$${TOP}/util/domd $$$${TOP} -MD ${MAKEDEPPROG}' \
  31. @@ -282,7 +282,7 @@
  32. libcrypto.pc: Makefile
  33. @ ( echo 'prefix=$(INSTALLTOP)'; \
  34. echo 'exec_prefix=$${prefix}'; \
  35. - echo 'libdir=$${exec_prefix}/lib'; \
  36. + echo 'libdir=$${exec_prefix}/${LIBDIR}'; \
  37. echo 'includedir=$${prefix}/include'; \
  38. echo ''; \
  39. echo 'Name: OpenSSL-libcrypto'; \
  40. @@ -295,7 +295,7 @@
  41. libssl.pc: Makefile
  42. @ ( echo 'prefix=$(INSTALLTOP)'; \
  43. echo 'exec_prefix=$${prefix}'; \
  44. - echo 'libdir=$${exec_prefix}/lib'; \
  45. + echo 'libdir=$${exec_prefix}/${LIBDIR}'; \
  46. echo 'includedir=$${prefix}/include'; \
  47. echo ''; \
  48. echo 'Name: OpenSSL'; \
  49. @@ -308,7 +308,7 @@
  50. openssl.pc: Makefile
  51. @ ( echo 'prefix=$(INSTALLTOP)'; \
  52. echo 'exec_prefix=$${prefix}'; \
  53. - echo 'libdir=$${exec_prefix}/lib'; \
  54. + echo 'libdir=$${exec_prefix}/${LIBDIR}'; \
  55. echo 'includedir=$${prefix}/include'; \
  56. echo ''; \
  57. echo 'Name: OpenSSL'; \
  58. @@ -458,9 +458,9 @@
  59. install_sw:
  60. @$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \
  61. - $(INSTALL_PREFIX)$(INSTALLTOP)/lib \
  62. - $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines \
  63. - $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig \
  64. + $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR} \
  65. + $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/engines \
  66. + $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/pkgconfig \
  67. $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \
  68. $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \
  69. $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \
  70. @@ -475,10 +475,10 @@
  71. do \
  72. if [ -f "$$i" ]; then \
  73. ( echo installing $$i; \
  74. - cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
  75. - $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
  76. - chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
  77. - mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \
  78. + cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new; \
  79. + $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new; \
  80. + chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new; \
  81. + mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i ); \
  82. fi; \
  83. done;
  84. @set -e; if [ -n "$(SHARED_LIBS)" ]; then \
  85. @@ -488,22 +488,22 @@
  86. if [ -f "$$i" -o -f "$$i.a" ]; then \
  87. ( echo installing $$i; \
  88. if [ "$(PLATFORM)" != "Cygwin" ]; then \
  89. - cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
  90. - chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
  91. - mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
  92. + cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new; \
  93. + chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new; \
  94. + mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i; \
  95. else \
  96. c=`echo $$i | sed 's/^lib\(.*\)\.dll\.a/cyg\1-$(SHLIB_VERSION_NUMBER).dll/'`; \
  97. cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \
  98. chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new; \
  99. mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \
  100. - cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
  101. - chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new; \
  102. - mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \
  103. + cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new; \
  104. + chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new; \
  105. + mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/$$i; \
  106. fi ); \
  107. fi; \
  108. done; \
  109. ( here="`pwd`"; \
  110. - cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \
  111. + cd $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}; \
  112. $(MAKE) -f $$here/Makefile HERE="$$here" link-shared ); \
  113. if [ "$(INSTALLTOP)" != "/usr" ]; then \
  114. echo 'OpenSSL shared libraries have been installed in:'; \
  115. @@ -512,12 +512,12 @@
  116. sed -e '1,/^$$/d' doc/openssl-shared.txt; \
  117. fi; \
  118. fi
  119. - cp libcrypto.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig
  120. - chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig/libcrypto.pc
  121. - cp libssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig
  122. - chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig/libssl.pc
  123. - cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig
  124. - chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/pkgconfig/openssl.pc
  125. + cp libcrypto.pc $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/pkgconfig
  126. + chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/pkgconfig/libcrypto.pc
  127. + cp libssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/pkgconfig
  128. + chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/pkgconfig/libssl.pc
  129. + cp openssl.pc $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/pkgconfig
  130. + chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/${LIBDIR}/pkgconfig/openssl.pc
  131. install_docs:
  132. @$(PERL) $(TOP)/util/mkdir-p.pl \
  133. --- openssl-0.9.8a/engines/Makefile.orig 2006-02-04 02:49:34.000000000 +0100
  134. +++ openssl-0.9.8a/engines/Makefile 2006-05-07 12:31:40.000000000 +0200
  135. @@ -97,13 +97,13 @@
  136. *DSO_DL*) sfx="sl";; \
  137. *) sfx="bad";; \
  138. esac; \
  139. - cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
  140. + cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \
  141. else \
  142. sfx="so"; \
  143. - cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
  144. + cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \
  145. fi; \
  146. - chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
  147. - mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx ); \
  148. + chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \
  149. + mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx ); \
  150. done; \
  151. fi