File: install_on_usrbin.patch

package info (click to toggle)
mtr 0.92-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,512 kB
  • sloc: ansic: 9,573; sh: 4,448; python: 571; makefile: 477
file content (27 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Install on usr/bin instead of usr/sbin
Author: Robert Woodcock <rcw@debian.org>
Index: mtr/Makefile.am
===================================================================
--- mtr.orig/Makefile.am
+++ mtr/Makefile.am
@@ -5,7 +5,8 @@ EXTRA_DIST = \
 	img/mtr_icon.xpm
 	$(TEST_FILES)
 
-sbin_PROGRAMS = mtr mtr-packet
+# We don't want these in /usr/sbin - rcw
+bin_PROGRAMS = mtr mtr-packet
 TESTS = \
 	test/cmdparse.py \
 	test/param.py \
@@ -41,8 +42,8 @@ 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
+	`setcap cap_net_raw+ep $(DESTDIR)$(bindir)/mtr-packet` \
+	|| chmod u+s $(DESTDIR)$(bindir)/mtr-packet
 
 mtr_SOURCES = ui/mtr.c ui/mtr.h \
               ui/net.c ui/net.h \