aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/utils/usb-modeswitch/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-05-31 15:41:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-05-31 15:41:17 +0000
commitb1df77669d3dbd804723f15ec3fa37d6cbd20f1a (patch)
treea71e1aa13092d5de98a88e53b81ca085211db864 /package/system/utils/usb-modeswitch/Makefile
parent041ac5dbff0ba3c782572000c3fa7de73971f315 (diff)
downloadupstream-b1df77669d3dbd804723f15ec3fa37d6cbd20f1a.tar.gz
upstream-b1df77669d3dbd804723f15ec3fa37d6cbd20f1a.tar.bz2
upstream-b1df77669d3dbd804723f15ec3fa37d6cbd20f1a.zip
replace usb-modeswitch with a rewrite that should be more reliable
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36812
Diffstat (limited to 'package/system/utils/usb-modeswitch/Makefile')
-rw-r--r--package/system/utils/usb-modeswitch/Makefile82
1 files changed, 0 insertions, 82 deletions
diff --git a/package/system/utils/usb-modeswitch/Makefile b/package/system/utils/usb-modeswitch/Makefile
deleted file mode 100644
index d82a83c56a..0000000000
--- a/package/system/utils/usb-modeswitch/Makefile
+++ /dev/null
@@ -1,82 +0,0 @@
-#
-# Copyright (C) 2008-2012 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=usb-modeswitch
-PKG_VERSION:=1.2.5
-PKG_DATA_VERSION:=20121109
-PKG_RELEASE:=1
-
-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
-
-PKG_DATA_PATH:=usb-modeswitch-data-$(PKG_DATA_VERSION)
-PKG_DATA_FILENAME:=$(PKG_DATA_PATH).tar.bz2
-
-PKG_MAINTAINER := Felix Fietkau <nbd@openwrt.org>
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/usb-modeswitch
- SECTION:=utils
- CATEGORY:=Utilities
- DEPENDS:=+libusb-compat
- TITLE:=USB ModeSwitch
- URL:=http://www.draisberghof.de/usb_modeswitch/
-endef
-
-define Package/usb-modeswitch/description
- A mode switching tool for controlling
- "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)
- MD5SUM:=a7d23a03157871013a0d708ab2b1b6df
-endef
-$(eval $(call Download,data))
-
-define Build/Compile
- tar xvfj $(DL_DIR)/$(PKG_DATA_FILENAME) -C $(PKG_BUILD_DIR)
- $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) \
- -lusb \
- -o $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt \
- $(PKG_BUILD_DIR)/usb_modeswitch.c
-endef
-
-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))