umtprd: Add package
PATCH v2 1/1 umtprd: Add package
uMTP-Responder is a lightweight USB Media Transfer Protocol (MTP) responder daemon for GNU/Linux.
---
Notes:
v2:
- Remove patch. It used to be required but now I can compile the latest master without it, so the upstream PR was closed.
- Require toolchain with threads and kernel headers >= 3.15
- Add hash for license file
- Add entry in DEVELOPERS for the package
DEVELOPERS | 1 + package/Config.in | 1 + package/umtprd/Config.in | 11 +++++++++++ package/umtprd/umtprd.hash | 3 +++ package/umtprd/umtprd.mk | 20 ++++++++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 package/umtprd/Config.in create mode 100644 package/umtprd/umtprd.hash create mode 100644 package/umtprd/umtprd.mk
DEVELOPERS +1 -0
@@ -1800,6 +1800,7 @@ F: package/yavta/ N: Paul Cercueil <[email protected]> F: package/libiio/ F: package/lightning/ +F: package/umtprd/ N: Pedro Aguilar <[email protected]> F: package/libunistring/
package/Config.in +1 -0
@@ -550,6 +550,7 @@ endmenu source "package/udev/Config.in" source "package/udisks/Config.in" source "package/uhubctl/Config.in" + source "package/umtprd/Config.in" source "package/upower/Config.in" source "package/usb_modeswitch/Config.in" source "package/usb_modeswitch_data/Config.in"
package/umtprd/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_UMTPRD + bool "umtprd" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 + help + Lightweight USB MTP responder daemon for GNU/Linux + + https://github.com/viveris/uMTP-Responder + +comment "umtprd needs a toolchain w/ threads, headers >= 3.15" + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
package/umtprd/umtprd.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 e1301bdd89170cc2c679446c1cc5873feaacd061bf0ab547fc0a11670bae9163 umtprd-1.0.0.tar.gz +sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE
package/umtprd/umtprd.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# umtprd +# +################################################################################ + +UMTPRD_VERSION = 1.0.0 +UMTPRD_SITE = https://github.com/viveris/uMTP-Responder/archive +UMTPRD_LICENSE = GPL-3.0 +UMTPRD_LICENSE_FILES = LICENSE + +define UMTPRD_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) +endef + +define UMTPRD_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/umtprd $(TARGET_DIR)/usr/sbin/umtprd +endef + +$(eval $(generic-package))
Signature · 1 line
2.24.0
PATCH v2 1/1 umtprd: Add package
Hello Paul,
I've applied to next, after doing some small changes, see below.
Quoted 4 lines · On Wed, 13 Nov 2019 12:21:36 +0100 Paul Cercueil <[email protected]> wrote:
uMTP-Responder is a lightweight USB Media Transfer Protocol (MTP) responder daemon for GNU/Linux.
Signed-off-by Paul Cercueil <[email protected]>
The commit title should have been:
package/umtprd: new package
package/umtprd/umtprd.mk line 9
Quoted 3 lines
package/umtprd/umtprd.mk new file +3
-0+UMTPRD_VERSION = 1.0.0 +UMTPRD_SITE = https://github.com/viveris/uMTP-Responder/archive +UMTPRD_LICENSE = GPL-3.0
The license really is GPL-3.0+, all source files have the "or later" option.
Applied with those two issues fixed. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 1/1 umtprd: Add package
Hi Thomas,
Le mar., nov. 19, 2019 at 17:32, Thomas Petazzoni
<[email protected]> a ?crit :
Quoted 3 lines
Hello Paul,
I've applied to next, after doing some small changes, see below.
Alright, thanks!
-Paul
Quoted 26 lines
Quoted 4 lines · On Wed, 13 Nov 2019 12:21:36 +0100 Paul Cercueil <[email protected]> wrote:
uMTP-Responder is a lightweight USB Media Transfer Protocol (MTP) responder daemon for GNU/Linux.
Signed-off-by Paul Cercueil <[email protected]>The commit title should have been:
package/umtprd: new package
Quoted 3 lines
+UMTPRD_VERSION = 1.0.0
+UMTPRD_SITE = https://github.com/viveris/uMTP-Responder/archive
+UMTPRD_LICENSE = GPL-3.0The license really is GPL-3.0+, all source files have the "or later" option.
Applied with those two issues fixed. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com