Package: mtink / 1.0.16-11

do-not-require-root Patch series | download
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Description: Do not require root for installing binaries
Forwarded: no
Author: Graham Inggs <ginggs@debian.org>
Last-Update: 2020-07-05

--- a/Makefile.ORG
+++ b/Makefile.ORG
@@ -289,7 +289,7 @@
 
 install-mtink:
 	@#echo install mtink
-	@if id | grep '=0(root)' >/dev/null; \
+	@if true; \
 	then \
 	   mkdir -p $(prefix)/bin >/dev/null 2>&1; \
 	   if [ -d $(prefix)/doc ]; \
@@ -318,7 +318,7 @@
 
 install-ttink:
 	@#echo install ttink
-	@if id | grep '=0(root)' >/dev/null; \
+	@if true; \
 	then \
 	   mkdir -p $(prefix)/bin >/dev/null 2>&1; \
 	   cp ttink $(prefix)/bin; \
@@ -343,7 +343,7 @@
 	@#echo install askPrinter utility
 	@if [ `uname` = Linux ];\
 	then \
-	   if id | grep '=0(root)' >/dev/null; \
+	   if true; \
 	   then \
 	      mkdir -p $(prefix)/sbin >/dev/null 2>&1; \
 	      cp $(DETDIR)/askPrinter $(prefix)/sbin; \
@@ -356,7 +356,7 @@
 	@#echo install mtink daemon
 	@if [ `uname` = Linux ];\
 	then \
-	   if id | grep '=0(root)' >/dev/null; \
+	   if true; \
 	   then \
 	      mkdir -p $(prefix)/sbin >/dev/null 2>&1; \
 	      cp mtinkd $(prefix)/sbin; \