New package: usb-modeswitch-data-20140529
This commit is contained in:
parent
89e9f51569
commit
4c542c125e
2 changed files with 71 additions and 0 deletions
58
srcpkgs/usb-modeswitch-data/patches/0001-fix-destdir.patch
Normal file
58
srcpkgs/usb-modeswitch-data/patches/0001-fix-destdir.patch
Normal file
|
@ -0,0 +1,58 @@
|
|||
--- Makefile 2014-12-08 09:11:10.188596202 +0100
|
||||
+++ Makefile 2014-12-08 09:11:17.556595651 +0100
|
||||
@@ -1,9 +1,9 @@
|
||||
PROG = usb-modeswitch-data
|
||||
VERS = 20140529
|
||||
RM = /bin/rm -f
|
||||
-PREFIX = $(DESTDIR)/usr
|
||||
-ETCDIR = $(DESTDIR)/etc
|
||||
-RULESDIR = $(DESTDIR)/lib/udev/rules.d
|
||||
+PREFIX = /usr
|
||||
+ETCDIR = /etc
|
||||
+RULESDIR = /lib/udev/rules.d
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
@@ -18,26 +18,26 @@ install: all files-install db-install ru
|
||||
install-packed: files-install db-install-packed rules-reload
|
||||
|
||||
files-install:
|
||||
- install -d $(PREFIX)/share/usb_modeswitch
|
||||
- install -d $(ETCDIR)/usb_modeswitch.d
|
||||
- install -D --mode=644 40-usb_modeswitch.rules $(RULESDIR)/40-usb_modeswitch.rules
|
||||
+ install -d $(DESTDIR)/$(PREFIX)/share/usb_modeswitch
|
||||
+ install -d $(DESTDIR)/$(ETCDIR)/usb_modeswitch.d
|
||||
+ install -D --mode=644 40-usb_modeswitch.rules $(DESTDIR)/$(RULESDIR)/40-usb_modeswitch.rules
|
||||
|
||||
40-usb_modeswitch.rules:
|
||||
./gen-rules.tcl
|
||||
|
||||
db-install: files-install
|
||||
- install --mode=644 -t $(PREFIX)/share/usb_modeswitch ./usb_modeswitch.d/*
|
||||
+ install --mode=644 -t $(DESTDIR)/$(PREFIX)/share/usb_modeswitch ./usb_modeswitch.d/*
|
||||
|
||||
db-install-packed:
|
||||
@# Create a compressed tar without gzip timestamp, so tar.gz
|
||||
@# differs only if content is different
|
||||
cd ./usb_modeswitch.d; tar -cf ../configPack.tar *
|
||||
gzip -f9n ./configPack.tar
|
||||
- install --mode=644 -t $(PREFIX)/share/usb_modeswitch ./configPack.tar.gz
|
||||
+ install --mode=644 -t $(DESTDIR)/$(PREFIX)/share/usb_modeswitch ./configPack.tar.gz
|
||||
rm -f ./configPack.tar.gz
|
||||
|
||||
rules-reload:
|
||||
- @if [ -f $(ETCDIR)/issue ]; then \
|
||||
+ @if [ -f $(DESTDIR)/$(ETCDIR)/issue ]; then \
|
||||
UDEVADM=`which udevadm 2>/dev/null`; \
|
||||
if [ "x$$UDEVADM" != "x" ]; then \
|
||||
UDEVADM_VER=`$$UDEVADM -V 2>/dev/null`; \
|
||||
@@ -57,7 +57,7 @@ rules-reload:
|
||||
uninstall: files-uninstall rules-reload
|
||||
|
||||
files-uninstall:
|
||||
- $(RM) $(RULESDIR)/40-usb_modeswitch.rules
|
||||
- $(RM) -R $(PREFIX)/share/usb_modeswitch
|
||||
+ $(RM) $(DESTDIR)/$(RULESDIR)/40-usb_modeswitch.rules
|
||||
+ $(RM) -R $(DESTDIR)/$(PREFIX)/share/usb_modeswitch
|
||||
|
||||
.PHONY: clean install uninstall
|
13
srcpkgs/usb-modeswitch-data/template
Normal file
13
srcpkgs/usb-modeswitch-data/template
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Template file for 'usb-modeswitch-data'
|
||||
pkgname=usb-modeswitch-data
|
||||
version=20140529
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
short_desc="Mode switching tool for controlling 'multi-mode' USB devices (data files)"
|
||||
maintainer="Enno Boland <eb@s01.de>"
|
||||
license="GPL-2"
|
||||
homepage="http://www.draisberghof.de/usb_modeswitch/"
|
||||
distfiles="http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${version}.tar.bz2"
|
||||
checksum=53889157937109e04dafe897c098ec94f3f44f9c0c83fc6ec8417aa9a587e536
|
||||
make_install_args="RULESDIR=/usr/lib/udev/rules.d"
|
||||
noarch=yes
|
Loading…
Reference in a new issue