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.

117 lines
4.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tzdata/destdir.patch
  5. # Copyright (C) 2008 The OpenSDE 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. --- ./Makefile.orig 2007-12-27 17:14:21.000000000 +0000
  17. +++ ./Makefile 2008-01-31 03:19:05.000000000 +0000
  18. @@ -242,6 +242,7 @@
  19. cc= cc
  20. CC= $(cc) -DTZDIR=\"$(TZDIR)\"
  21. +RANLIB= ranlib
  22. TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
  23. TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
  24. TZDSRCS= zdump.c localtime.c ialloc.c
  25. @@ -282,29 +283,30 @@
  26. install: all $(DATA) $(REDO) $(TZLIB) $(MANS) $(TABDATA)
  27. $(ZIC) -y $(YEARISTYPE) \
  28. - -d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
  29. - -rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab
  30. - cp iso3166.tab zone.tab $(TZDIR)/.
  31. - -mkdir $(TOPDIR) $(ETCDIR)
  32. - cp tzselect zic zdump $(ETCDIR)/.
  33. - -mkdir $(TOPDIR) $(MANDIR) \
  34. - $(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8
  35. - -rm -f $(MANDIR)/man3/newctime.3 \
  36. - $(MANDIR)/man3/newtzset.3 \
  37. - $(MANDIR)/man5/tzfile.5 \
  38. - $(MANDIR)/man8/tzselect.8 \
  39. - $(MANDIR)/man8/zdump.8 \
  40. - $(MANDIR)/man8/zic.8
  41. - cp newctime.3 newtzset.3 $(MANDIR)/man3/.
  42. - cp tzfile.5 $(MANDIR)/man5/.
  43. - cp tzselect.8 zdump.8 zic.8 $(MANDIR)/man8/.
  44. + -d $(DESTDIR)$(TZDIR) -p $(POSIXRULES)
  45. + ln -sf ..$(TZDIR)/$(LOCALTIME) $(DESTDIR)/etc/localtime
  46. + -rm -f $(DESTDIR)$(TZDIR)/iso3166.tab $(DESTDIR)$(TZDIR)/zone.tab
  47. + cp iso3166.tab zone.tab $(DESTDIR)$(TZDIR)/.
  48. + -mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(ETCDIR)
  49. + cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
  50. + -mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(MANDIR) \
  51. + $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 $(DESTDIR)$(MANDIR)/man8
  52. + -rm -f $(DESTDIR)$(MANDIR)/man3/newctime.3 \
  53. + $(DESTDIR)$(MANDIR)/man3/newtzset.3 \
  54. + $(DESTDIR)$(MANDIR)/man5/tzfile.5 \
  55. + $(DESTDIR)$(MANDIR)/man8/tzselect.8 \
  56. + $(DESTDIR)$(MANDIR)/man8/zdump.8 \
  57. + $(DESTDIR)$(MANDIR)/man8/zic.8
  58. + cp newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
  59. + cp tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
  60. + cp tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
  61. INSTALL: ALL install date.1
  62. - -mkdir $(TOPDIR) $(BINDIR)
  63. - cp date $(BINDIR)/.
  64. - -mkdir $(TOPDIR) $(MANDIR) $(MANDIR)/man1
  65. - -rm -f $(MANDIR)/man1/date.1
  66. - cp date.1 $(MANDIR)/man1/.
  67. + -mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(BINDIR)
  68. + cp date $(DESTDIR)$(BINDIR)/.
  69. + -mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(MANDIR) $(DESTDIR)$(MANDIR)/man1
  70. + -rm -f $(DESTDIR)$(MANDIR)/man1/date.1
  71. + cp date.1 $(DESTDIR)$(MANDIR)/man1/.
  72. zdump: $(TZDOBJS)
  73. $(CC) $(CFLAGS) $(LFLAGS) $(TZDOBJS) $(LDLIBS) -o $@
  74. @@ -317,10 +319,10 @@
  75. chmod +x yearistype
  76. posix_only: zic $(TDATA)
  77. - $(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L /dev/null $(TDATA)
  78. + $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) -L /dev/null $(TDATA)
  79. right_only: zic leapseconds $(TDATA)
  80. - $(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L leapseconds $(TDATA)
  81. + $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) -L leapseconds $(TDATA)
  82. # In earlier versions of this makefile, the other two directories were
  83. # subdirectories of $(TZDIR). However, this led to configuration errors.
  84. @@ -332,9 +334,9 @@
  85. # You must replace all of $(TZDIR) to switch from not using leap seconds
  86. # to using them, or vice versa.
  87. other_two: zic leapseconds $(TDATA)
  88. - $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
  89. + $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR)/posix -L /dev/null $(TDATA)
  90. $(ZIC) -y $(YEARISTYPE) \
  91. - -d $(TZDIR)-leaps -L leapseconds $(TDATA)
  92. + -d $(DESTDIR)$(TZDIR)/right -L leapseconds $(TDATA)
  93. posix_right: posix_only other_two
  94. @@ -343,10 +345,10 @@
  95. zones: $(REDO)
  96. $(TZLIB): $(LIBOBJS)
  97. - -mkdir $(TOPDIR) $(LIBDIR)
  98. - ar ru $@ $(LIBOBJS)
  99. + -mkdir $(DESTDIR)$(TOPDIR) $(DESTDIR)$(LIBDIR)
  100. + ar ru $(DESTDIR)$@ $(LIBOBJS)
  101. if [ -x /usr/ucb/ranlib -o -x /usr/bin/ranlib ] ; \
  102. - then ranlib $@ ; fi
  103. + then $(RANLIB) $(DESTDIR)$@ ; fi
  104. # We use the system's logwtmp in preference to ours if available.