contrib/mtr/mtr-setcap.patch
2020-11-24 22:38:47 +11:00

15 lines
549 B
Diff

diff -pruN mtr-0.94.orig/Makefile.am mtr-0.94/Makefile.am
--- mtr-0.94.orig/Makefile.am 2020-11-24 21:39:16.129195097 +1100
+++ mtr-0.94/Makefile.am 2020-11-24 21:39:54.722073566 +1100
@@ -40,10 +40,6 @@ $(PATHFILES): Makefile
dist_man_MANS = mtr.8 mtr-packet.8
PATHFILES += man/mtr.8 man/mtr-packet.8
-install-exec-hook:
- `setcap cap_net_raw+ep $(DESTDIR)$(sbindir)/mtr-packet` \
- || chmod u+s $(DESTDIR)$(sbindir)/mtr-packet
-
mtr_SOURCES = ui/mtr.c ui/mtr.h \
ui/net.c ui/net.h \
ui/cmdpipe.c ui/cmdpipe.h \