summaryrefslogblamecommitdiff
path: root/user/mtr/handle-program-suffix.patch
blob: 283966ff472308cd31bdf54c104fa7ffd730dc86 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 \