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.

47 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../liboping/liboping-1.6.1-no-install-exec-hook.patch
  5. # Copyright (C) 2011 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. Description: Do not run install-exec-hook target avoiding the call of setcap
  17. TODO:
  18. We need to set the capabilities inside of a postinstall script, because
  19. it is not guaranteed that it is allowed to use setcap on any build host.
  20. install-exec-hook:
  21. @if test "x0" = "x$$UID"; then \
  22. if test "xLinux" = "x`uname -s`"; then \
  23. echo "Setting CAP_NET_RAW capability on binaries."; \
  24. setcap cap_net_raw=ep $(DESTDIR)$(bindir)/oping; \
  25. setcap cap_net_raw=ep $(DESTDIR)$(bindir)/noping; \
  26. else \
  27. echo "Setting set-UID bit on binaries."; \
  28. chmod u+s $(DESTDIR)$(bindir)/oping; \
  29. chmod u+s $(DESTDIR)$(bindir)/noping; \
  30. fi; \
  31. fi
  32. --- liboping-1.6.1/src/Makefile.in.orig 2011-04-20 15:30:38.844077820 +0200
  33. +++ liboping-1.6.1/src/Makefile.in 2011-04-20 15:33:55.932078104 +0200
  34. @@ -743,7 +743,7 @@
  35. install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
  36. @$(NORMAL_INSTALL)
  37. - $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
  38. + $(MAKE) $(AM_MAKEFLAGS)
  39. install-html: install-html-recursive
  40. install-html-am: