File: install_on_usrbin.patch

package info (click to toggle)
mtr 0.95-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 900 kB
  • sloc: ansic: 10,325; python: 572; makefile: 164; sh: 141
file content (25 lines) | stat: -rw-r--r-- 752 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
Description: Install on usr/bin instead of usr/sbin
Author: Robert Woodcock <rcw@debian.org>
--- a/Makefile.am
+++ b/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 \