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.

61 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../netsniff-ng/0003-add-DESTDIR.patch
  5. # Copyright (C) 2014 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. --- a/Makefile 2014-04-07 19:02:33.730426413 +0200
  17. +++ b/Makefile 2014-04-07 19:03:49.340188075 +0200
  18. @@ -28,6 +28,9 @@
  19. # Disable if you don't want it
  20. CCACHE ?= $(CONFIG_CCACHE)
  21. +# Location of installation destination directory
  22. +DESTDIR=
  23. +
  24. # Location of installation paths.
  25. SBINDIR = $(PREFIX)/usr/sbin
  26. INCDIR = $(PREFIX)/usr/include
  27. --- a/Template 2014-04-07 18:59:00.501491038 +0200
  28. +++ b/Template 2014-04-07 19:00:37.507754557 +0200
  29. @@ -8,14 +8,14 @@
  30. $(1)_clean: $(1)_clean_custom
  31. $(Q)$$(call RM,$(1)/*.o $(1)/$(1) $(1)/*.gz)
  32. $(1)_do_install:
  33. - $(Q)$$(call INSTX,$(1)/$(1),$$(SBINDIR))
  34. + $(Q)$$(call INSTX,$(1)/$(1),$$(DESTDIR)$$(SBINDIR))
  35. $(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz
  36. - $(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(MAN8DIR))
  37. - $(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(ETCDIRE));)
  38. + $(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(DESTDIR)$$(MAN8DIR))
  39. + $(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(DESTDIR)$$(ETCDIRE));)
  40. $(1)_install: $(1)_do_install $(1)_post_install
  41. $(1)_uninstall: $(1)_uninstall_custom
  42. - $(Q)$$(call RM,$$(SBINDIR)/$(1))
  43. - $(Q)$$(call RM,$$(MAN8DIR)/$(1).8.gz)
  44. + $(Q)$$(call RM,$$(DESTDIR)$$(SBINDIR)/$(1))
  45. + $(Q)$$(call RM,$$(DESTDIR)$$(MAN8DIR)/$(1).8.gz)
  46. $(1)/%.yy.o: $(1)/%.yy.c
  47. $$(CC) $$(CFLAGS) -o $$@ -c $$<
  48. $(1)/%.tab.o: $(1)/%.tab.c
  49. --- a/trafgen/Makefile 2014-04-07 20:02:43.197995226 +0200
  50. +++ b/trafgen/Makefile 2014-04-07 20:03:13.946689298 +0200
  51. @@ -31,7 +31,7 @@
  52. trafgen-confs = trafgen_stddef.h
  53. trafgen_post_install:
  54. - $(Q)mv $(ETCDIRE)/trafgen_stddef.h $(ETCDIRE)/stddef.h
  55. + $(Q)mv $(DESTDIR)$(ETCDIRE)/trafgen_stddef.h $(DESTDIR)$(ETCDIRE)/stddef.h
  56. trafgen_clean_custom:
  57. $(Q)$(call RM,$(BUILD_DIR)/*.h $(BUILD_DIR)/*.c)