biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / arp-scan / remove-install-exec-hook.patch
blob38421400384c127cbe27c81395f9273b7737f247
1 diff --git a/Makefile.am b/Makefile.am
2 index c02e1cc..0dd6321 100644
3 --- a/Makefile.am
4 +++ b/Makefile.am
5 @@ -29,19 +29,3 @@ arp-scan.1: arp-scan.1.dist Makefile
6 $(do_subst) < $(srcdir)/arp-scan.1.dist > arp-scan.1
7 get-oui.1: get-oui.1.dist Makefile
8 $(do_subst) < $(srcdir)/get-oui.1.dist > get-oui.1
9 -# Install arp-scan with cap_net_raw if possible, otherwise SUID root
10 -install-exec-hook:
11 - @if command -v setcap > /dev/null; then \
12 - if setcap cap_net_raw+p $(DESTDIR)$(bindir)/arp-scan$(EXEEXT); then \
13 - echo "setcap cap_net_raw+p $(DESTDIR)$(bindir)/arp-scan$(EXEEXT)"; \
14 - chmod u-s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT); \
15 - else \
16 - echo "Setcap failed on $(DESTDIR)$(bindir)/arp-scan$(EXEEXT), falling back to setuid" >&2; \
17 - echo "chmod u+s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT)"; \
18 - chmod u+s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT); \
19 - fi \
20 - else \
21 - echo "Setcap is not installed, falling back to setuid" >&2 ; \
22 - echo "chmod u+s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT)" ;\
23 - chmod u+s $(DESTDIR)$(bindir)/arp-scan$(EXEEXT) ;\
24 - fi