usb_modeswitch: bump to version 1.2.6
Remove 'usb_modeswitch-makefile.patch' because it was merged upstream. This package contains a dispatcher (wrapper) that can be installed as Tcl script or as binary without further dependency. If Tcl is selected and the binary interpreter is installed (BR2_PACKAGE_TCL && !BR2_PACKAGE_TCL_SHLIB_ONLY) the dispatcher will be installed as Tcl script otherwise as binary. Signed-off-by: Patrick Ziegler <patrick.ziegler@fh-kl.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
4eb64b232c
commit
d3e4db4e34
@ -1,31 +0,0 @@
|
||||
Removed the -s from the install command. Without this, usb_modeswitch would
|
||||
fail to install.
|
||||
|
||||
Signed-off-by: J.C. Woltz <jwoltz@gmail.com>
|
||||
|
||||
Index: b/Makefile
|
||||
===================================================================
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -46,7 +46,7 @@
|
||||
cd jim && $(MAKE) distclean
|
||||
|
||||
install-common: all
|
||||
- install -D -s --mode=755 usb_modeswitch $(SBINDIR)/usb_modeswitch
|
||||
+ install -D --mode=755 usb_modeswitch $(SBINDIR)/usb_modeswitch
|
||||
install -D --mode=755 usb_modeswitch.sh $(UDEVDIR)/usb_modeswitch
|
||||
install -D --mode=644 usb_modeswitch.conf $(ETCDIR)/usb_modeswitch.conf
|
||||
install -D --mode=644 usb_modeswitch.1 $(MANDIR)/usb_modeswitch.1
|
||||
@@ -67,10 +67,10 @@
|
||||
install: install-common install-script
|
||||
|
||||
install-shared: dispatcher-dynamic install-common
|
||||
- install -D -s --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
|
||||
+ install -D --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
|
||||
|
||||
install-static: dispatcher-static install-common
|
||||
- install -D -s --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
|
||||
+ install -D --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
|
||||
|
||||
uninstall:
|
||||
$(RM) $(SBINDIR)/usb_modeswitch
|
@ -4,19 +4,32 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
USB_MODESWITCH_VERSION = 1.2.5
|
||||
USB_MODESWITCH_VERSION = 1.2.6
|
||||
USB_MODESWITCH_SOURCE = usb-modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2
|
||||
USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch
|
||||
USB_MODESWITCH_DEPENDENCIES = libusb-compat
|
||||
USB_MODESWITCH_LICENSE = GPLv2+
|
||||
USB_MODESWITCH_LICENSE_FILES = COPYING
|
||||
|
||||
USB_MODESWITCH_BUILD_TARGETS = static
|
||||
USB_MODESWITCH_INSTALL_TARGETS = install-static
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TCL)$(BR2_PACKAGE_TCL_SHLIB_ONLY),y)
|
||||
USB_MODESWITCH_DEPENDENCIES += tcl
|
||||
USB_MODESWITCH_BUILD_TARGETS = script
|
||||
USB_MODESWITCH_INSTALL_TARGETS = install-script
|
||||
endif
|
||||
|
||||
define USB_MODESWITCH_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE -Wall -I." \
|
||||
-C $(@D) $(USB_MODESWITCH_BUILD_TARGETS)
|
||||
endef
|
||||
|
||||
define USB_MODESWITCH_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
||||
DESTDIR=$(TARGET_DIR) \
|
||||
-C $(@D) $(USB_MODESWITCH_INSTALL_TARGETS)
|
||||
endef
|
||||
|
||||
|
||||
@ -25,12 +38,7 @@ define USB_MODESWITCH_CLEAN_CMDS
|
||||
endef
|
||||
|
||||
define USB_MODESWITCH_UNINSTALL_CMDS
|
||||
$(RM) -f $(TARGET_DIR)/usr/sbin/usb_modeswitch
|
||||
$(RM) -f $(TARGET_DIR)/lib/udev/usb_modeswitch
|
||||
$(RM) -f $(TARGET_DIR)/etc/usb_modeswitch.setup
|
||||
$(RM) -f $(TARGET_DIR)/usr/share/man/man1/usb_modeswitch.1
|
||||
$(RM) -rf $(TARGET_DIR)/var/lib/usb_modeswitch
|
||||
$(RM) -f $(TARGET_DIR)/usr/sbin/usb_modeswitch_dispatcher
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) uninstall
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
Loading…
Reference in New Issue
Block a user