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.

308 lines
12 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xfsprogs/destdir.patch
  5. # Copyright (C) 2007 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. --- ./db/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  17. +++ ./db/Makefile 2007-10-12 12:38:37.000000000 -0400
  18. @@ -35,10 +35,10 @@
  19. include $(BUILDRULES)
  20. install: default
  21. - $(INSTALL) -m 755 -d $(PKG_BIN_DIR)
  22. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR)
  23. - $(INSTALL) -m 755 xfs_admin.sh $(PKG_BIN_DIR)/xfs_admin
  24. - $(INSTALL) -m 755 xfs_check.sh $(PKG_BIN_DIR)/xfs_check
  25. - $(INSTALL) -m 755 xfs_ncheck.sh $(PKG_BIN_DIR)/xfs_ncheck
  26. - $(INSTALL) -m 755 xfs_metadump.sh $(PKG_BIN_DIR)/xfs_metadump
  27. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_BIN_DIR)
  28. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_BIN_DIR)
  29. + $(INSTALL) -m 755 xfs_admin.sh $(DESTDIR)$(PKG_BIN_DIR)/xfs_admin
  30. + $(INSTALL) -m 755 xfs_check.sh $(DESTDIR)$(PKG_BIN_DIR)/xfs_check
  31. + $(INSTALL) -m 755 xfs_ncheck.sh $(DESTDIR)$(PKG_BIN_DIR)/xfs_ncheck
  32. + $(INSTALL) -m 755 xfs_metadump.sh $(DESTDIR)$(PKG_BIN_DIR)/xfs_metadump
  33. install-dev:
  34. --- ./io/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  35. +++ ./io/Makefile 2007-10-12 12:40:17.000000000 -0400
  36. @@ -64,9 +64,10 @@
  37. include $(BUILDRULES)
  38. install: default
  39. - $(INSTALL) -m 755 -d $(PKG_BIN_DIR)
  40. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR)
  41. - $(LTINSTALL) -m 755 xfs_bmap.sh $(PKG_BIN_DIR)/xfs_bmap
  42. - $(LTINSTALL) -m 755 xfs_freeze.sh $(PKG_BIN_DIR)/xfs_freeze
  43. - $(LTINSTALL) -m 755 xfs_mkfile.sh $(PKG_BIN_DIR)/xfs_mkfile
  44. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_BIN_DIR)
  45. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_BIN_DIR)
  46. + $(LTINSTALL) -m 755 xfs_bmap.sh $(DESTDIR)$(PKG_BIN_DIR)/xfs_bmap
  47. + $(LTINSTALL) -m 755 xfs_freeze.sh $(DESTDIR)$(PKG_BIN_DIR)/xfs_freeze
  48. + $(LTINSTALL) -m 755 xfs_mkfile.sh $(DESTDIR)$(PKG_BIN_DIR)/xfs_mkfile
  49. +
  50. install-dev:
  51. --- ./doc/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  52. +++ ./doc/Makefile 2007-10-12 12:40:10.000000000 -0400
  53. @@ -16,12 +16,12 @@
  54. $(ZIP) --best -c < CHANGES > $@
  55. install: default
  56. - $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
  57. - $(INSTALL) -m 644 PORTING CHANGES.gz CREDITS $(PKG_DOC_DIR)
  58. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_DOC_DIR)
  59. + $(INSTALL) -m 644 PORTING CHANGES.gz CREDITS $(DESTDIR)$(PKG_DOC_DIR)
  60. ifeq ($(PKG_DISTRIBUTION), debian)
  61. - $(INSTALL) -S CHANGES.gz $(PKG_DOC_DIR)/changelog.gz
  62. + $(INSTALL) -S CHANGES.gz $(DESTIDIR)$(PKG_DOC_DIR)/changelog.gz
  63. else
  64. - $(INSTALL) -m 644 COPYING $(PKG_DOC_DIR)
  65. + $(INSTALL) -m 644 COPYING $(DESTDIR)$(PKG_DOC_DIR)
  66. endif
  67. install-dev:
  68. --- ./copy/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  69. +++ ./copy/Makefile 2007-10-12 12:40:38.000000000 -0400
  70. @@ -18,6 +18,7 @@
  71. include $(BUILDRULES)
  72. install: default
  73. - $(INSTALL) -m 755 -d $(PKG_BIN_DIR)
  74. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR)
  75. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_BIN_DIR)
  76. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_BIN_DIR)
  77. +
  78. install-dev:
  79. --- ./fsck/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  80. +++ ./fsck/Makefile 2007-10-12 12:40:56.000000000 -0400
  81. @@ -12,6 +12,7 @@
  82. include $(BUILDRULES)
  83. install: default
  84. - $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
  85. - $(INSTALL) -m 755 xfs_fsck.sh $(PKG_SBIN_DIR)/fsck.xfs
  86. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_SBIN_DIR)
  87. + $(INSTALL) -m 755 xfs_fsck.sh $(DESTDIR)$(PKG_SBIN_DIR)/fsck.xfs
  88. +
  89. install-dev:
  90. --- ./mkfs/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  91. +++ ./mkfs/Makefile 2007-10-12 12:41:20.000000000 -0400
  92. @@ -26,6 +26,7 @@
  93. $(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LIBDISK) $(PLDLIBS)
  94. install: default
  95. - $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
  96. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_SBIN_DIR)
  97. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_SBIN_DIR)
  98. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_SBIN_DIR)
  99. +
  100. install-dev:
  101. --- ./rtcp/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  102. +++ ./rtcp/Makefile 2007-10-12 12:41:37.000000000 -0400
  103. @@ -14,6 +14,7 @@
  104. include $(BUILDRULES)
  105. install: default
  106. - $(INSTALL) -m 755 -d $(PKG_BIN_DIR)
  107. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR)
  108. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_BIN_DIR)
  109. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_BIN_DIR)
  110. +
  111. install-dev:
  112. --- ./Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  113. +++ ./Makefile 2007-10-12 12:42:07.000000000 -0400
  114. @@ -53,8 +53,8 @@
  115. install: default
  116. $(SUBDIRS_MAKERULE)
  117. - $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
  118. - $(INSTALL) -m 644 README $(PKG_DOC_DIR)
  119. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_DOC_DIR)
  120. + $(INSTALL) -m 644 README $(DESTDIR)$(PKG_DOC_DIR)
  121. install-dev: default
  122. $(SUBDIRS_MAKERULE)
  123. --- ./quota/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  124. +++ ./quota/Makefile 2007-10-12 12:42:22.000000000 -0400
  125. @@ -33,6 +33,7 @@
  126. include $(BUILDRULES)
  127. install: default
  128. - $(INSTALL) -m 755 -d $(PKG_BIN_DIR)
  129. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR)
  130. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_BIN_DIR)
  131. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_BIN_DIR)
  132. +
  133. install-dev:
  134. --- ./debian/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  135. +++ ./debian/Makefile 2007-10-12 12:43:26.000000000 -0400
  136. @@ -15,20 +15,20 @@
  137. install: default
  138. ifeq ($(PKG_DISTRIBUTION), debian)
  139. - $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
  140. - $(INSTALL) -m 644 changelog $(PKG_DOC_DIR)/changelog.Debian
  141. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_DOC_DIR)
  142. + $(INSTALL) -m 644 changelog $(DESTDIR)$(PKG_DOC_DIR)/changelog.Debian
  143. endif
  144. install-dev: default
  145. ifeq ($(PKG_DISTRIBUTION), debian)
  146. - $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
  147. - $(INSTALL) -m 755 -d $(DEV_DOC_DIR)
  148. - $(INSTALL) -m 644 copyright $(DEV_DOC_DIR)
  149. - $(INSTALL) -m 644 changelog $(DEV_DOC_DIR)/changelog.Debian
  150. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_DOC_DIR)
  151. + $(INSTALL) -m 755 -d $(DESTDIR)$(DEV_DOC_DIR)
  152. + $(INSTALL) -m 644 copyright $(DESTDIR)$(DEV_DOC_DIR)
  153. + $(INSTALL) -m 644 changelog $(DESTDIR)$(DEV_DOC_DIR)/changelog.Debian
  154. endif
  155. install-d-i: default
  156. ifeq ($(PKG_DISTRIBUTION), debian)
  157. - $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
  158. - $(INSTALL) -m 755 $(BOOT_MKFS_BIN) $(PKG_SBIN_DIR)/mkfs.xfs
  159. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_SBIN_DIR)
  160. + $(INSTALL) -m 755 $(BOOT_MKFS_BIN) $(DESTDIR)$(PKG_SBIN_DIR)/mkfs.xfs
  161. endif
  162. --- ./growfs/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  163. +++ ./growfs/Makefile 2007-10-12 12:43:47.000000000 -0400
  164. @@ -19,7 +19,8 @@
  165. include $(BUILDRULES)
  166. install: default
  167. - $(INSTALL) -m 755 -d $(PKG_BIN_DIR)
  168. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR)
  169. - $(INSTALL) -m 755 xfs_info.sh $(PKG_BIN_DIR)/xfs_info
  170. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_BIN_DIR)
  171. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_BIN_DIR)
  172. + $(INSTALL) -m 755 xfs_info.sh $(DESTDIR)$(PKG_BIN_DIR)/xfs_info
  173. +
  174. install-dev:
  175. --- ./repair/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  176. +++ ./repair/Makefile 2007-10-12 12:45:37.000000000 -0400
  177. @@ -45,6 +45,7 @@
  178. #CFLAGS += ...
  179. install: default
  180. - $(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
  181. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_SBIN_DIR)
  182. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_SBIN_DIR)
  183. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_SBIN_DIR)
  184. +
  185. install-dev:
  186. --- ./logprint/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  187. +++ ./logprint/Makefile 2007-10-12 12:45:53.000000000 -0400
  188. @@ -21,6 +21,7 @@
  189. include $(BUILDRULES)
  190. install: default
  191. - $(INSTALL) -m 755 -d $(PKG_BIN_DIR)
  192. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR)
  193. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_BIN_DIR)
  194. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_BIN_DIR)
  195. +
  196. install-dev:
  197. --- ./mdrestore/Makefile.orig 2007-10-12 12:37:26.000000000 -0400
  198. +++ ./mdrestore/Makefile 2007-10-12 12:46:12.000000000 -0400
  199. @@ -17,6 +17,7 @@
  200. include $(BUILDRULES)
  201. install:
  202. - $(INSTALL) -m 755 -d $(PKG_BIN_DIR)
  203. - $(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_BIN_DIR)
  204. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_BIN_DIR)
  205. + $(LTINSTALL) -m 755 $(LTCOMMAND) $(DESTDIR)$(PKG_BIN_DIR)
  206. +
  207. install-dev:
  208. --- ./include/Makefile.orig 2007-10-12 13:03:00.000000000 -0400
  209. +++ ./include/Makefile 2007-10-12 13:04:40.000000000 -0400
  210. @@ -46,8 +46,8 @@
  211. include $(BUILDRULES)
  212. install-dev: default
  213. - $(INSTALL) -m 755 -d $(PKG_INC_DIR)
  214. - $(INSTALL) -m 644 $(HFILES) $(PKG_INC_DIR)
  215. - $(INSTALL) -m 644 platform_defs.h $(PKG_INC_DIR)
  216. - $(INSTALL) -m 755 -d $(DK_INC_DIR)
  217. - $(INSTALL) -m 644 $(DKHFILES) $(DK_INC_DIR)
  218. + $(INSTALL) -m 755 -d $(DESTDIR)$(PKG_INC_DIR)
  219. + $(INSTALL) -m 644 $(HFILES) $(DESTDIR)$(PKG_INC_DIR)
  220. + $(INSTALL) -m 644 platform_defs.h $(DESTDIR)$(PKG_INC_DIR)
  221. + $(INSTALL) -m 755 -d $(DESTDIR)$(DK_INC_DIR)
  222. + $(INSTALL) -m 644 $(DKHFILES) $(DESTDIR)$(DK_INC_DIR)
  223. --- ./include/buildmacros.orig 2007-10-12 13:09:39.000000000 -0400
  224. +++ ./include/buildmacros 2007-10-12 13:14:34.000000000 -0400
  225. @@ -55,9 +55,9 @@
  226. ifeq ($(ENABLE_SHARED),yes)
  227. INSTALL_LTLIB = \
  228. cd $(TOPDIR)/$(LIBNAME)/.libs; \
  229. - ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
  230. - ../$(INSTALL) -m 644 -T so_dot_version $(LIBNAME).lai $(PKG_LIB_DIR); \
  231. - ../$(INSTALL) -T so_dot_current $(LIBNAME).lai $(PKG_LIB_DIR)
  232. + ../$(INSTALL) -m 755 -d $(DESTDIR)$(PKG_LIB_DIR); \
  233. + ../$(INSTALL) -m 644 -T so_dot_version $(LIBNAME).lai $(DESTDIR)$(PKG_LIB_DIR); \
  234. + ../$(INSTALL) -T so_dot_current $(LIBNAME).lai $(DESTDIR)$(PKG_LIB_DIR)
  235. endif
  236. # Libtool thinks the static and shared libs should be in the same dir, so
  237. @@ -69,22 +69,22 @@
  238. ifeq ($(ENABLE_SHARED),yes)
  239. INSTALL_LTLIB_DEV = \
  240. cd $(TOPDIR)/$(LIBNAME)/.libs; \
  241. - ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR); \
  242. - ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_DEVLIB_DIR); \
  243. - ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_DEVLIB_DIR)/$(LIBNAME).la ; \
  244. - ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
  245. - ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_LIB_DIR); \
  246. - ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \
  247. - ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \
  248. - ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(PKG_DEVLIB_DIR)/$(LIBNAME).so
  249. + ../$(INSTALL) -m 755 -d $(DESTDIR)$(PKG_DEVLIB_DIR); \
  250. + ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(DESTDIR)$(PKG_DEVLIB_DIR); \
  251. + ../$(INSTALL) -m 644 $(LIBNAME).lai $(DESTDIR)$(PKG_DEVLIB_DIR)/$(LIBNAME).la ; \
  252. + ../$(INSTALL) -m 755 -d $(DESTDIR)$(PKG_LIB_DIR); \
  253. + ../$(INSTALL) -T so_base $(LIBNAME).lai $(DESTDIR)$(PKG_LIB_DIR); \
  254. + ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(DESTDIR)$(PKG_LIB_DIR)/$(LIBNAME).a; \
  255. + ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(DESTDIR)$(PKG_LIB_DIR)/$(LIBNAME).la; \
  256. + ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).so $(DESTDIR)$(PKG_DEVLIB_DIR)/$(LIBNAME).so
  257. else
  258. INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC)
  259. endif
  260. INSTALL_LTLIB_STATIC = \
  261. cd $(TOPDIR)/$(LIBNAME)/.libs; \
  262. - ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR); \
  263. - ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_DEVLIB_DIR)
  264. + ../$(INSTALL) -m 755 -d $(DESTDIR)$(PKG_DEVLIB_DIR); \
  265. + ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(DESTDIR)$(PKG_DEVLIB_DIR)
  266. INSTALL_MAN = \
  267. @for d in $(MAN_PAGES); do \
  268. @@ -96,7 +96,7 @@
  269. -e 's/\\\f[0-9]//g' -e 's/ / /g;q'`; \
  270. do \
  271. [ -z "$$m" -o "$$m" = "\\" ] && continue; \
  272. - t=$(MAN_DEST)/$$m.$(MAN_SECTION); \
  273. + t=$(DESTDIR)$(MAN_DEST)/$$m.$(MAN_SECTION); \
  274. if $$first; then \
  275. if $(HAVE_ZIPPED_MANPAGES); then \
  276. $(ZIP) -9 -c $$d > $$d.gz; _sfx=.gz; \
  277. @@ -116,7 +116,7 @@
  278. INSTALL_LINGUAS = \
  279. @for l in $(LINGUAS) ""; do \
  280. if test -f "$$l.mo" ; then \
  281. - ldir=$(PKG_LOCALE_DIR)/$$l/LC_MESSAGES; \
  282. + ldir=$(DESTDIR)$(PKG_LOCALE_DIR)/$$l/LC_MESSAGES; \
  283. $(INSTALL) -m 755 -d $$ldir; \
  284. $(INSTALL) -m 644 $$l.mo $$ldir/$(PKG_NAME).mo; \
  285. fi; \