aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/usb-modeswitch
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@buglabs.net>2011-02-10 16:45:38 +0100
committerStefan Schmidt <stefan@buglabs.net>2011-02-10 16:46:04 +0100
commit6a5cfd3156cecb9434a59f0aee62328dbf800f4f (patch)
tree00ab47bd6ca16c72d4ac9f77ccac3df54bd9b023 /recipes/usb-modeswitch
parent1379a59cfd339da62374c08092c9769a95fcfaf5 (diff)
downloadopenembedded-6a5cfd3156cecb9434a59f0aee62328dbf800f4f.tar.gz
usb-modeswitch-data: Patch makefile to use portable install options.
Without this it fails with our install wrapper whcih does only support portable options.
Diffstat (limited to 'recipes/usb-modeswitch')
-rw-r--r--recipes/usb-modeswitch/usb-modeswitch-data/fix-install-in-makefile.patch22
-rw-r--r--recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb6
2 files changed, 26 insertions, 2 deletions
diff --git a/recipes/usb-modeswitch/usb-modeswitch-data/fix-install-in-makefile.patch b/recipes/usb-modeswitch/usb-modeswitch-data/fix-install-in-makefile.patch
new file mode 100644
index 0000000000..fd11f11260
--- /dev/null
+++ b/recipes/usb-modeswitch/usb-modeswitch-data/fix-install-in-makefile.patch
@@ -0,0 +1,22 @@
+Index: usb-modeswitch-data-20100826/Makefile
+===================================================================
+--- usb-modeswitch-data-20100826.orig/Makefile 2011-02-10 16:33:59.000000000 +0100
++++ usb-modeswitch-data-20100826/Makefile 2011-02-10 16:39:24.000000000 +0100
+@@ -18,14 +18,14 @@
+
+ files-install:
+ install -d $(ETCDIR)/usb_modeswitch.d
+- install -D --mode=644 40-usb_modeswitch.rules $(RULESDIR)/40-usb_modeswitch.rules
++ install -D -m 644 40-usb_modeswitch.rules $(RULESDIR)/40-usb_modeswitch.rules
+
+ db-install:
+- install --mode=644 -t $(ETCDIR)/usb_modeswitch.d ./usb_modeswitch.d/*
++ install -m 644 ./usb_modeswitch.d/* $(ETCDIR)/usb_modeswitch.d
+
+ db-install-packed:
+ cd ./usb_modeswitch.d; tar -czf ../configPack.tar.gz *
+- install --mode=644 -t $(ETCDIR)/usb_modeswitch.d ./configPack.tar.gz
++ install -m 644 ./configPack.tar.gz $(ETCDIR)/usb_modeswitch.d
+ rm -f ./configPack.tar.gz
+
+
diff --git a/recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb b/recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb
index 2383edb736..91c41d2a76 100644
--- a/recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb
+++ b/recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb
@@ -4,9 +4,11 @@ RDEPENDS_${PN} = "\
usb-modeswitch \
tcl \
"
-PR="r1"
+PR="r2"
-SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2"
+SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2 \
+ file://fix-install-in-makefile.patch \
+ "
SRC_URI[md5sum] = "85c16bb87a6f05c2d04b93a22fe87e91"
SRC_URI[sha256sum] = "a81821d3d9ad9e1d3a31ea11d0da9841ca84350f0b445a8f9ea2dbd142cefb46"