mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Add usb-modeswitch-data package
@ 2016-01-22  0:26 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2016-01-22  0:26 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 rules/usb-modeswitch-data.in   | 10 ++++++
 rules/usb-modeswitch-data.make | 76 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)
 create mode 100644 rules/usb-modeswitch-data.in
 create mode 100644 rules/usb-modeswitch-data.make

diff --git a/rules/usb-modeswitch-data.in b/rules/usb-modeswitch-data.in
new file mode 100644
index 0000000..ffaacda
--- /dev/null
+++ b/rules/usb-modeswitch-data.in
@@ -0,0 +1,10 @@
+## SECTION=shell_and_console
+
+config USB_MODESWITCH_DATA
+	tristate
+	prompt "usb-modeswitch-data"
+	depends on USB_MODESWITCH && UDEV
+	help
+	  Device database and udev rules file for USB_ModeSwitch.
+
+# vim: set sw=8 ts=8 noet ft=kconfig:
diff --git a/rules/usb-modeswitch-data.make b/rules/usb-modeswitch-data.make
new file mode 100644
index 0000000..7b43f0f
--- /dev/null
+++ b/rules/usb-modeswitch-data.make
@@ -0,0 +1,76 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Ladislav Michl <ladis@linux-mips.org>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_USB_MODESWITCH_DATA) += usb-modeswitch-data
+
+#
+# Paths and names
+#
+USB_MODESWITCH_DATA_VERSION	:= 20160112
+USB_MODESWITCH_DATA_MD5		:= 040d11138fc0a61b980d704ac3b4547f
+USB_MODESWITCH_DATA		:= usb-modeswitch-data-$(USB_MODESWITCH_DATA_VERSION)
+USB_MODESWITCH_DATA_SUFFIX	:= tar.bz2
+USB_MODESWITCH_DATA_URL		:= http://www.draisberghof.de/usb_modeswitch/$(USB_MODESWITCH_DATA).$(USB_MODESWITCH_DATA_SUFFIX)
+USB_MODESWITCH_DATA_SOURCE	:= $(SRCDIR)/$(USB_MODESWITCH_DATA).$(USB_MODESWITCH_DATA_SUFFIX)
+USB_MODESWITCH_DATA_DIR		:= $(BUILDDIR)/$(USB_MODESWITCH_DATA)
+USB_MODESWITCH_DATA_LICENSE	:= GPL-2.0
+
+# ----------------------------------------------------------------------------
+# Nothing to Prepare
+# ----------------------------------------------------------------------------
+$(STATEDIR)/usb-modeswitch-data.prepare:
+	@$(call targetinfo)
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Nothing to Compile
+# ----------------------------------------------------------------------------
+$(STATEDIR)/usb-modeswitch-data.compile:
+	@$(call targetinfo)
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Nothing to Install
+# ----------------------------------------------------------------------------
+$(STATEDIR)/usb-modeswitch-data.install:
+	@$(call targetinfo)
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+$(STATEDIR)/usb-modeswitch-data.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, usb-modeswitch-data)
+	@$(call install_fixup, usb-modeswitch-data,PRIORITY,optional)
+	@$(call install_fixup, usb-modeswitch-data,SECTION,base)
+	@$(call install_fixup, usb-modeswitch-data,AUTHOR,"Ladislav Michl <ladis@linux-mips.org>")
+	@$(call install_fixup, usb-modeswitch-data,DESCRIPTION,missing)
+
+	@$(call install_copy, usb-modeswitch-data, 0, 0, 0644, \
+		$(USB_MODESWITCH_DATA_DIR)/40-usb_modeswitch.rules, \
+		 /etc/udev/rules.d/40-usb_modeswitch.rules)
+
+	@find $(USB_MODESWITCH_DATA_DIR)/usb_modeswitch.d -type f -printf '%f\n' | \
+	while read file; do \
+		$(call install_copy, usb-modeswitch-data, 0, 0, 0644, \
+			$(USB_MODESWITCH_DATA_DIR)/usb_modeswitch.d/$$file, \
+			/usr/share/usb_modeswitch/$$file) \
+	done
+
+	@$(call install_finish, usb-modeswitch-data)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.1.4


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-22  0:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-22  0:26 [ptxdist] [PATCH] Add usb-modeswitch-data package Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox