usb-modeswitch-data: Patch makefile to use portable install options.
authorStefan Schmidt <stefan@buglabs.net>
Thu, 10 Feb 2011 15:45:38 +0000 (16:45 +0100)
committerStefan Schmidt <stefan@buglabs.net>
Thu, 10 Feb 2011 15:46:04 +0000 (16:46 +0100)
Without this it fails with our install wrapper whcih does only support portable
options.

recipes/usb-modeswitch/usb-modeswitch-data/fix-install-in-makefile.patch [new file with mode: 0644]
recipes/usb-modeswitch/usb-modeswitch-data_20100826.bb

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 (file)
index 0000000..fd11f11
--- /dev/null
@@ -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
index 2383edb..91c41d2 100644 (file)
@@ -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"