summaryrefslogtreecommitdiff
path: root/user/mtr/handle-program-suffix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/mtr/handle-program-suffix.patch')
-rw-r--r--user/mtr/handle-program-suffix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/mtr/handle-program-suffix.patch b/user/mtr/handle-program-suffix.patch
new file mode 100644
index 000000000..283966ff4
--- /dev/null
+++ b/user/mtr/handle-program-suffix.patch
@@ -0,0 +1,15 @@
+--- mtr-0.93/Makefile.am.old 2019-08-03 08:31:26.000000000 +0000
++++ mtr-0.93/Makefile.am 2019-08-06 03:44:08.329829268 +0000
+@@ -40,9 +40,10 @@
+ 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
++ f="`echo mtr-packet | sed '$(transform)'`"; \
++ `setcap cap_net_raw+ep $(DESTDIR)$(sbindir)/$$f` \
++ || chmod u+s $(DESTDIR)$(sbindir)/$$f
+
+ mtr_SOURCES = ui/mtr.c ui/mtr.h \
+ ui/net.c ui/net.h \