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.

95 lines
2.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../hotplug2/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. --- ./docs/Makefile.orig 2007-06-10 12:42:15.000000000 -0400
  17. +++ ./docs/Makefile 2007-06-10 12:43:57.000000000 -0400
  18. @@ -2,12 +2,13 @@
  19. BINS=
  20. SUBDIRS=
  21. -
  22. +DESTDIR=
  23. +MANDIR=/usr/share/man
  24. all:
  25. install:
  26. - $(INSTALL) $(wildcard *.8) /usr/share/man/man8/
  27. + $(INSTALL) $(wildcard *.8) $(DESTDIR)$(MANDIR)/man8/
  28. include ../common.mak
  29. --- ./Makefile.orig 2007-06-10 12:41:27.000000000 -0400
  30. +++ ./Makefile 2007-06-10 12:41:57.000000000 -0400
  31. @@ -2,12 +2,13 @@
  32. BINS=hotplug2 hotplug2-dnode
  33. SUBDIRS=linux24_compat docs examples
  34. +DESTDIR=
  35. all: $(BINS)
  36. install:
  37. - $(INSTALL_BIN) $(BINS) /sbin/
  38. + $(INSTALL_BIN) $(BINS) $(DESTDIR)/sbin/
  39. hotplug2: hotplug2.o childlist.o mem_utils.o rules.o
  40. --- ./linux24_compat/Makefile.orig 2007-06-10 12:45:14.000000000 -0400
  41. +++ ./linux24_compat/Makefile 2007-06-10 12:45:38.000000000 -0400
  42. @@ -2,13 +2,14 @@
  43. BINS=generate_alias hotplug2-coldplug-2.4 hotplug2-modwrap
  44. SUBDIRS=
  45. +DESTDIR=
  46. all: $(BINS)
  47. install:
  48. - $(INSTALL_BIN) hotplug2-coldplug-2.4 hotplug2-modwrap /sbin/
  49. - $(INSTALL_BIN) generate_alias /usr/sbin/
  50. + $(INSTALL_BIN) hotplug2-coldplug-2.4 hotplug2-modwrap $(DESTDIR)/sbin/
  51. + $(INSTALL_BIN) generate_alias $(DESTDIR)/usr/sbin/
  52. hotplug2-coldplug-2.4: hotplug2-coldplug-2.4.o ../parser_utils.o ../filemap_utils.o ../mem_utils.o
  53. --- ./examples/Makefile.orig 2007-06-10 12:44:09.000000000 -0400
  54. +++ ./examples/Makefile 2007-06-10 12:47:48.000000000 -0400
  55. @@ -2,17 +2,19 @@
  56. BINS=
  57. SUBDIRS=
  58. +DESTDIR=
  59. +KERNELVER=`uname -r`
  60. all:
  61. install:
  62. - case "`uname -r`" in \
  63. + case "$(KERNELVER)" in \
  64. 2.6.*) \
  65. - $(INSTALL) hotplug2.rules-2.6kernel /etc/hotplug2.rules \
  66. + $(INSTALL) hotplug2.rules-2.6kernel $(DESTDIR)/etc/hotplug2.rules \
  67. ;; \
  68. *) \
  69. - $(INSTALL) hotplug2.rules-2.4kernel /etc/hotplug2.rules \
  70. + $(INSTALL) hotplug2.rules-2.4kernel $(DESTDIR)/etc/hotplug2.rules \
  71. ;; \
  72. esac