aboutsummaryrefslogtreecommitdiffstats
path: root/package/socketcand/socketcand-replace-cp-by-install.patch
blob: 4462ddfc461407a3bea96f17373711684788419c (plain)
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
From 9d2797ce08034aba0087e6fe45873c3ccd8db489 Mon Sep 17 00:00:00 2001
From: Maxime Ripard <maxime.ripard@free-electrons.com>
Date: Tue, 3 Apr 2012 10:35:09 +0200
Subject: [PATCH] Remove cp -n which might not exist on old system and rely on install instead

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 Makefile.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 40d8193..290a8dd 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -38,6 +38,6 @@ install: socketcand
 	mkdir -p $(DESTDIR)$(sysroot)$(mandir)
 	cp $(srcdir)/socketcand.1 $(DESTDIR)$(sysroot)$(mandir)/
 	mkdir -p $(DESTDIR)$(sysroot)/etc/
-	cp -n $(srcdir)/etc/socketcand.conf $(DESTDIR)$(sysroot)/etc/
+	install -m 0644 $(srcdir)/etc/socketcand.conf $(DESTDIR)$(sysroot)/etc/
 	if [ $(init_script) = yes ]; then mkdir -p $(DESTDIR)$(sysroot)/etc/init.d; install --mode=755 $(srcdir)/init.d/socketcand $(DESTDIR)$(sysroot)/etc/init.d/socketcand; fi
 	if [ $(rc_script) = yes ]; then install --mode=755 $(srcdir)/rc.d/socketcand $(DESTDIR)$(sysroot)/etc/rc.d/socketcand; fi
-- 
1.7.4.1