at master 24 lines 1.1 kB view raw
1diff --git a/Makefile.am b/Makefile.am 2index 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