summaryrefslogtreecommitdiff
path: root/package/socketcand
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2012-04-03 10:55:32 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2012-04-03 23:05:42 +0200
commit5fd8f38fbc9742530efeec5f751c28fe7afbf4e0 (patch)
tree4b8922436357586cce5bc1c3a13e7e5c7e834044 /package/socketcand
parentd58777fdf0d18da7c08f6b604d36f85aae2ec5bb (diff)
socketcand: fix installation on old systems
[Peter: adjust patch to do install -m 0644 and not -D] Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/socketcand')
-rw-r--r--package/socketcand/socketcand-replace-cp-by-install.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/socketcand/socketcand-replace-cp-by-install.patch b/package/socketcand/socketcand-replace-cp-by-install.patch
new file mode 100644
index 000000000..4462ddfc4
--- /dev/null
+++ b/package/socketcand/socketcand-replace-cp-by-install.patch
@@ -0,0 +1,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
+