summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-29 12:27:17 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-29 12:27:17 +0000
commitdad5d1a11052aec1ec81e40acb188fe8fc524962 (patch)
treed759e5f710b4da206dc7c0a7d4e4c966ecbf3426
parente3d2af33ccb91700e4af70fe8c03b4c88c58c78c (diff)
usb-modeswitch: split out usb-modeswitch-data again
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35381 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/system/utils/usb-modeswitch/Makefile27
1 files changed, 23 insertions, 4 deletions
diff --git a/package/system/utils/usb-modeswitch/Makefile b/package/system/utils/usb-modeswitch/Makefile
index e78a5b476..d82a83c56 100644
--- a/package/system/utils/usb-modeswitch/Makefile
+++ b/package/system/utils/usb-modeswitch/Makefile
@@ -8,13 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=usb-modeswitch
-PKG_UTIL_VERSION:=1.2.5
+PKG_VERSION:=1.2.5
PKG_DATA_VERSION:=20121109
-PKG_VERSION:=$(PKG_UTIL_VERSION)+$(PKG_DATA_VERSION)
PKG_RELEASE:=1
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_UTIL_VERSION)
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_UTIL_VERSION).tar.bz2
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch
PKG_MD5SUM:=c393603908eceab95444c5bde790f6f0
@@ -38,6 +37,21 @@ define Package/usb-modeswitch/description
"flip flop" (multiple device) USB gear.
endef
+define Package/usb-modeswitch-data
+ SECTION:=utils
+ CATEGORY:=Utilities
+ DEPENDS:=usb-modeswitch
+ VERSION:=$(PKG_DATA_VERSION)
+ TITLE:=USB ModeSwitch - Dongle configuration database
+ URL:=http://www.draisberghof.de/usb_modeswitch/
+endef
+
+define Package/usb-modeswitch-data/description
+ Configuration database for usb-modeswitch.
+ Contains definitions for many USB devices required to
+ autoswitch "flip flop" gear.
+endef
+
define Download/data
FILE:=$(PKG_DATA_FILENAME)
URL:=$(PKG_SOURCE_URL)
@@ -57,7 +71,12 @@ define Package/usb-modeswitch/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/hotplug.d/usb
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt $(1)/usr/bin/usb_modeswitch
$(INSTALL_DATA) ./files/modeswitch.hotplug $(1)/etc/hotplug.d/usb/20-modeswitch
+endef
+
+define Package/usb-modeswitch-data/install
+ $(INSTALL_DIR) $(1)/etc
$(CP) $(PKG_BUILD_DIR)/$(PKG_DATA_PATH)/usb_modeswitch.d $(1)/etc/
endef
$(eval $(call BuildPackage,usb-modeswitch))
+$(eval $(call BuildPackage,usb-modeswitch-data))