aboutsummaryrefslogtreecommitdiffstats
path: root/testing/usb-modeswitch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2011-03-08 09:27:11 +0000
committerLeonardo Arena <rnalrd@gmail.com>2011-03-08 09:27:38 +0000
commitb63a45d46b9489a128379f98482f7022ad5d6061 (patch)
tree09dd9c9b022cfd72e0038e9701273150c0690cb8 /testing/usb-modeswitch
parentac0cf8d026433de1a9e7cc70f0a9def32d73bd2f (diff)
downloadaports-b63a45d46b9489a128379f98482f7022ad5d6061.tar.bz2
aports-b63a45d46b9489a128379f98482f7022ad5d6061.tar.xz
testing/usb-modeswitch: update data
Diffstat (limited to 'testing/usb-modeswitch')
-rw-r--r--testing/usb-modeswitch/APKBUILD20
-rw-r--r--testing/usb-modeswitch/Makefile.patch16
2 files changed, 28 insertions, 8 deletions
diff --git a/testing/usb-modeswitch/APKBUILD b/testing/usb-modeswitch/APKBUILD
index 6d4b4c7f2a..d446316194 100644
--- a/testing/usb-modeswitch/APKBUILD
+++ b/testing/usb-modeswitch/APKBUILD
@@ -1,8 +1,8 @@
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=usb-modeswitch
pkgver=1.1.7
-pkgrel=0
-_pkgdata=20100418
+pkgrel=1
+_pkgdata=20110227
pkgdesc="A mode switching tool for controlling flip flop (multiple device) USB gear"
url="http://www.draisberghof.de/usb_modeswitch/"
arch="all"
@@ -13,7 +13,8 @@ install=
subpackages="$pkgname-doc"
source="http://www.draisberghof.de/usb_modeswitch/${pkgname}-${pkgver}.tar.bz2
http://www.draisberghof.de/usb_modeswitch/${pkgname}-data-${_pkgdata}.tar.bz2
- http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.setup"
+ http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.setup
+ Makefile.patch"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -23,10 +24,12 @@ prepare() {
mkdir -p $pkgdir/etc || return 1
mkdir -p $pkgdir/usr/share/man/man1 || return 1
make clean || return 1
- sed -i -e 's/--mode=/-m/' Makefile
+ sed -i -e 's/--mode=/-m/' Makefile || return 1
+
cd ../${pkgname}-data-${_pkgdata}
- sed -i -e 's%install --mode=644 -t $(ETCDIR)/usb_modeswitch.d \./usb_modeswitch.d/\*%cp -R ./usb_modeswitch.d/\* $(ETCDIR)/usb_modeswitch.d%' Makefile
- sed -i -e 's/--mode=/-m/' Makefile
+# sed -i -e 's%install -m644 -t $(PREFIX)/share/usb_modeswitch ./usb_modeswitch.d/*%cp -R $(PREFIX)/share/usb_modeswitch/* ./usb_modeswitch.d/%' Makefile || return 1
+ sed -i -e 's/--mode=/-m/' Makefile || return 1
+ patch -p1 < ../Makefile.patch
}
build() {
@@ -52,5 +55,6 @@ package() {
}
md5sums="b75e42b7b2d30e9d4cbd5c159f925247 usb-modeswitch-1.1.7.tar.bz2
-659c9633513fa2f84465244a50c351b3 usb-modeswitch-data-20100418.tar.bz2
-9a25756669937ac86774bb55733f09cd usb_modeswitch.setup"
+2f5e5bfa21a97b705a22f95bec367793 usb-modeswitch-data-20110227.tar.bz2
+9a25756669937ac86774bb55733f09cd usb_modeswitch.setup
+84de2517de202c22801b678f49a07e37 Makefile.patch"
diff --git a/testing/usb-modeswitch/Makefile.patch b/testing/usb-modeswitch/Makefile.patch
new file mode 100644
index 0000000000..d7f526aa1e
--- /dev/null
+++ b/testing/usb-modeswitch/Makefile.patch
@@ -0,0 +1,16 @@
+--- a/Makefile
++++ b/Makefile
+@@ -21,11 +21,11 @@
+ install -D -m644 40-usb_modeswitch.rules $(RULESDIR)/40-usb_modeswitch.rules
+
+ db-install:
+- install -m644 -t $(PREFIX)/share/usb_modeswitch ./usb_modeswitch.d/*
++ cp ./usb_modeswitch.d/* $(PREFIX)/share/usb_modeswitch
+
+ db-install-packed:
+ cd ./usb_modeswitch.d; tar -czf ../configPack.tar.gz *
+- install -m644 -t $(PREFIX)/share/usb_modeswitch ./configPack.tar.gz
++ install -m644 $(PREFIX)/share/usb_modeswitch ./configPack.tar.gz
+ rm -f ./configPack.tar.gz
+
+