Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 335f3295 authored by Robert Nelson's avatar Robert Nelson
Browse files

umtp-responder (1.4.3-0bbbio1)


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent db433b1f
Branches
No related merge requests found
Showing
with 202 additions and 171 deletions
umtp-responder (1.4.3-0bbbio1~bookworm+20240605) bookworm; urgency=low
* Rebuild umtp-responder_1.4.3-0bbbio1 for repos.rcn-ee.com
-- Robert Nelson <robertcnelson@gmail.com> Wed, 05 Jun 2024 16:21:37 -0500
umtp-responder (1.4.1-0bbbio1~bookworm+20240605) bookworm; urgency=low
* Rebuild umtp-responder_1.4.1-0bbbio1 for repos.rcn-ee.com
......
0001-Makefile-honor-CPPFLAGS.patch
0002-umtprd-ffs.sh-fix-incorrect-shebang.patch
#0001-Makefile-honor-CPPFLAGS.patch
#0002-umtprd-ffs.sh-fix-incorrect-shebang.patch
......@@ -7,9 +7,6 @@ DEB_BUILD_OPTIONS=noautodbgsym
%:
dh $@
override_dh_installsystemd:
dh_installsystemd --no-start --no-enable --no-stop-on-upgrade
override_dh_auto_install:
dh_auto_install
install -D -m 0755 conf/umtprd-ffs.sh $(CURDIR)/debian/umtp-responder/usr/sbin/umtprd-ffs
umtprd usr/bin
debian/umtprd.conf etc/umtprd
conf/umtprd.conf etc/umtprd
[Unit]
Description=Transfer files through the USB port via MTP
Documentation=https://github.com/viveris/uMTP-Responder
Documentation=/usr/share/doc/umtp-responder/README.Debian
ConditionPathExists=/etc/umtprd/umtprd.conf
[Service]
Type=simple
ExecStart=/usr/sbin/umtprd-ffs
# ExecStart=/usr/bin/umtprd
# Sandboxing
# CapabilityBoundingSet=CAP_NET_BIND_SERVICE
LockPersonality=yes
NoNewPrivileges=yes
PrivateDevices=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=full
ReadOnlyDirectories=/
ReadWriteDirectories=-/proc
ReadWriteDirectories=-/var/run
ReadWriteDirectories=-/var/lib/umtp
# RestrictAddressFamilies=AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
[Install]
WantedBy=multi-user.target
#
# uMTP Responder config file
#
# Loop / daemon mode
# Set to 0 to shutdown when the link is disconnected.
loop_on_disconnect 1
# storage command : Create add a storage entry point. Up to 16 entry points supported
# Syntax : storage "PATH" "NAME"
# NOTICE: currently the systemd unit file allows r/w
# access only to /var/lib/umtp
# See /usr/share/doc/umtp-responder/README.Debian
storage "/var/lib/umtp" "shared folder" "rw"
# storage "/home/USER/foo" "home folder" "rw"
# storage "/www" "www folder" "ro,notmounted"
#
# Uncomment the following line if you want to
# override the system default umask value for
# the uploaded files.
#
#umask 022
# Set the USB manufacturer string
manufacturer "Viveris Technologies"
# Set the USB Product string
product "Viveris Technologies"
# Set the USB Serial number string
serial "01234567"
# Set the MTP firmware version
firmware_version "Rev A"
# Set the USB interface string. Should be always "MTP"
interface "MTP"
# Set the USB Vendor ID, Product ID and class
usb_vendor_id 0x1D6B # Linux Foundation
usb_product_id 0x0100 # PTP Gadget
usb_class 0x6 # Image
usb_subclass 0x1 # Still Imaging device
usb_protocol 0x1 #
# Device version
usb_dev_version 0x3008
# inotify support
# If you want disable the events support (beta), uncomment the following line :
# no_inotify 0x1
#
# Internal buffers size
#
# Internal default usb_max_rd_buffer_size and usb_max_wr_buffer_size value set to 0x10000.
# Internal default read_buffer_cache_size value set to 0x100000.
# Uncomment the following lines to reduce the buffers sizes to fix USB issues on iMX6 based systems.
# usb_max_rd_buffer_size 0x200 # MAX usb read size. Must be a multiple of 512 and be less than read_buffer_cache_size
# usb_max_wr_buffer_size 0x200 # MAX usb write size. Must be a multiple of 512.
# read_buffer_cache_size 0x4000 # Read file cache buffer. Must be a 2^x value.
#
# USB gadget device driver path
#
########################################################################
#
# -- Generic FunctionFS Mode --
#
########################################################################
usb_functionfs_mode 0x1
usb_dev_path "/dev/ffs-mtp/ep0"
usb_epin_path "/dev/ffs-mtp/ep1"
usb_epout_path "/dev/ffs-mtp/ep2"
usb_epint_path "/dev/ffs-mtp/ep3"
usb_max_packet_size 0x200
########################################################################
#
# -- GadgetFS Mode : Atmel Sama5D2Xplained board --
#
########################################################################
#usb_functionfs_mode 0x0
#usb_dev_path "/dev/gadget/atmel_usba_udc"
#usb_epin_path "/dev/gadget/ep1"
#usb_epout_path "/dev/gadget/ep2"
#usb_epint_path "/dev/gadget/ep3"
# Max USB packet size
#usb_max_packet_size 0x200
########################################################################
#
# -- GadgetFS Mode : Raspberry PI Zero / Raspberry PI Zero W Boards --
#
########################################################################
#usb_functionfs_mode 0x0
#usb_dev_path "/dev/gadget/20980000.usb"
#usb_epin_path "/dev/gadget/ep1in"
#usb_epout_path "/dev/gadget/ep2out"
#usb_epint_path "/dev/gadget/ep3in"
# Max USB packet size
#usb_max_packet_size 0x200
umtp-responder for Debian
-------------------------
The daemon is at an early stage of development and does not
provide access control by password or build-in sandboxing.
As now, the systemd unit file at /lib/systemd/system/umtp-responder.service
allows r/w access only to /var/lib/umtp
The unit file is not enabled nor started when the package is installed.
umtp-responder (1.4.3-0bbbio1~noble+20240605) noble; urgency=low
* Rebuild umtp-responder_1.4.3-0bbbio1 for repos.rcn-ee.com
-- Robert Nelson <robertcnelson@gmail.com> Wed, 05 Jun 2024 16:21:37 -0500
umtp-responder (1.4.1-0bbbio1~bookworm+20240605) bookworm; urgency=low
* Rebuild umtp-responder_1.4.1-0bbbio1 for repos.rcn-ee.com
-- Robert Nelson <robertcnelson@gmail.com> Wed, 05 Jun 2024 16:12:05 -0500
umtp-responder (1.3.10-1bbbio1~bookworm+20240605) bookworm; urgency=low
* Rebuild umtp-responder_1.3.10-1bbbio1 for repos.rcn-ee.com
-- Robert Nelson <robertcnelson@gmail.com> Wed, 05 Jun 2024 16:05:14 -0500
umtp-responder (1.3.10-1) unstable; urgency=medium
[ Arnaud Ferraris ]
* Initial Debian release (Closes: #974346)
-- Federico Ceratto <federico@debian.org> Wed, 25 Nov 2020 14:45:50 +0000
Source: umtp-responder
Section: misc
Priority: optional
Maintainer: DebianOnMobile Maintainers <debian-on-mobile-maintainers@alioth-lists.debian.net>
Uploaders: Arnaud Ferraris <arnaud.ferraris@gmail.com>, Federico Ceratto <federico@debian.org>
Standards-Version: 4.5.0
Build-Depends: debhelper-compat (=13)
Homepage: https://github.com/viveris/uMTP-Responder
Vcs-Git: https://salsa.debian.org/DebianOnMobile-team/umtp-responder.git
Vcs-Browser: https://salsa.debian.org/DebianOnMobile-team/umtp-responder
Rules-Requires-Root: no
Package: umtp-responder
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Lightweight USB Media Transfer Protocol (MTP) responder daemon
The uMTP-Responder allows files to be transferred to and from devices through
the devices USB port.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: uMTP-Responder
Upstream-Contact: Jean-François DEL NERO <Jean-Francois.DELNERO@viveris.fr>
Source: https://github.com/viveris/uMTP-Responder
Files: *
Copyright: 2018-2020 Viveris Technologies
License: GPL-3.0+
Files: debian/*
Copyright: 2020 Sebastian Spaeth
2020 Arnaud Ferraris <arnaud.ferraris@gmail.com>
2020 Federico Ceratto <federico@debian.org>
License: GPL-3.0+
Files: inc/mtp_constant.h
Copyright: 2010 The Android Open Source Project
License: Apache-2.0
Files: src/usbstring.c
Copyright: 2003 David Brownell
2018-2020 Viveris Technologies
License: GPL-3.0+
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the complete text of the Apache License, Version 2.0
can be found in "/usr/share/common-licenses/Apache-2.0".
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the full text of the GNU General Public License
version 3 can be found in the file `/usr/share/common-licenses/GPL-3'.
[DEFAULT]
pristine-tar = True
upstream-tag = umtprd-%(version)s
upstream-branch = upstream/latest
From 321de7c0f89a008f84f6394cf74729394bb5395f Mon Sep 17 00:00:00 2001
From: Arnaud Ferraris <arnaud.ferraris@gmail.com>
Date: Thu, 12 Nov 2020 00:25:25 +0100
Subject: [PATCH] Makefile: honor CPPFLAGS
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index d92a87b..7c98b63 100644
--- a/Makefile
+++ b/Makefile
@@ -13,10 +13,10 @@ umtprd: $(objects) $(ops_objects)
${CC} -o $@ $^ $(LDFLAGS) -lpthread
$(objects): obj/%.o: src/%.c
- ${CC} -o $@ $^ -c $(CFLAGS)
+ ${CC} -o $@ $^ -c $(CPPFLAGS) $(CFLAGS)
$(ops_objects): obj/%.o: src/mtp_operations/%.c
- ${CC} -o $@ $^ -c $(CFLAGS)
+ ${CC} -o $@ $^ -c $(CPPFLAGS) $(CFLAGS)
output_dir:
@mkdir -p obj
--
2.28.0
From 097d5cc223417846459c342e5ddf15de3447b031 Mon Sep 17 00:00:00 2001
From: Arnaud Ferraris <arnaud.ferraris@gmail.com>
Date: Thu, 12 Nov 2020 02:48:02 +0100
Subject: [PATCH] umtprd-ffs.sh: fix incorrect shebang
---
conf/umtprd-ffs.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/conf/umtprd-ffs.sh b/conf/umtprd-ffs.sh
index a3cd5e2..14237de 100644
--- a/conf/umtprd-ffs.sh
+++ b/conf/umtprd-ffs.sh
@@ -1,4 +1,4 @@
-#/bin/sh
+#!/bin/sh
# FunctionFS uMTPrd startup example/test script
# Must be launched from a writable/temporary folder.
--
2.28.0
#0001-Makefile-honor-CPPFLAGS.patch
#0002-umtprd-ffs.sh-fix-incorrect-shebang.patch
#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_BUILD_OPTIONS=noautodbgsym
%:
dh $@
override_dh_auto_install:
dh_auto_install
install -D -m 0755 conf/umtprd-ffs.sh $(CURDIR)/debian/umtp-responder/usr/sbin/umtprd-ffs
---
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
1.0
umtprd usr/bin
conf/umtprd.conf etc/umtprd
version=4
opts=filenamemangle=s/.+\/umtprd-(\d\S+)\.tar\.gz/umtp-responder-$1\.tar\.gz/ \
https://github.com/viveris/uMTP-Responder/tags .*/umtprd-(\d\S+)\.tar\.gz
umtp-responder (1.4.3-0bbbio1~trixie+20240605) trixie; urgency=low
* Rebuild umtp-responder_1.4.3-0bbbio1 for repos.rcn-ee.com
-- Robert Nelson <robertcnelson@gmail.com> Wed, 05 Jun 2024 16:21:37 -0500
umtp-responder (1.4.1-0bbbio1~trixie+20240605) trixie; urgency=low
* Rebuild umtp-responder_1.4.1-0bbbio1 for repos.rcn-ee.com
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment