summaryrefslogtreecommitdiff
path: root/security/dropbear/files/patch-Makefile.in
blob: 9f5847b89c4b77da154d7c816e11d7f61d26dcd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- Makefile.in.old	Tue Jan 13 12:42:39 2004
+++ Makefile.in	Wed Jan 14 12:05:53 2004
@@ -55,18 +55,9 @@
 	-$(STRIP) dropbearconvert
 
 install: all
-	$(INSTALL) -d -m 755 $(DESTDIR)$(sbindir)
-	$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
-	$(INSTALL) -m 755 dropbear $(DESTDIR)$(sbindir)
-	$(INSTALL) -m 755 dropbearkey $(DESTDIR)$(bindir)
-	$(INSTALL) -m 755 dropbearconvert $(DESTDIR)$(bindir)
-	# chown might fail, so do it separately to the install
-	-chown root $(DESTDIR)$(sbindir)/dropbear
-	-chgrp 0 $(DESTDIR)$(sbindir)/dropbear
-	-chown root $(DESTDIR)$(bindir)/dropbearkey
-	-chgrp 0 $(DESTDIR)$(bindir)/dropbearkey
-	-chown root $(DESTDIR)$(bindir)/dropbearconvert
-	-chgrp 0 $(DESTDIR)$(bindir)/dropbearconvert
+	$(BSD_INSTALL_PROGRAM) -m 755 dropbear $(DESTDIR)$(sbindir)
+	$(BSD_INSTALL_PROGRAM) -m 755 dropbearkey $(DESTDIR)$(bindir)
+	$(BSD_INSTALL_PROGRAM) -m 755 dropbearconvert $(DESTDIR)$(bindir)
 
 
 static: dropbear-static dropbearkey-static dropbearconvert-static