summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2011-06-30 10:16:21 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2011-06-30 10:16:21 +0000
commite7909126bc9e27394c5efc5c2c3441b78c819818 (patch)
treeb75a4318717246a6bafc1d734b2db6757d194d58 /sys-fs/mtpfs
parentStable on amd64 wrt bug #373415 (diff)
downloadhistorical-e7909126bc9e27394c5efc5c2c3441b78c819818.tar.gz
historical-e7909126bc9e27394c5efc5c2c3441b78c819818.tar.bz2
historical-e7909126bc9e27394c5efc5c2c3441b78c819818.zip
Initial import wrt bug 189304, thanks to everyone involved
Package-Manager: portage-2.2.0_alpha41/cvs/Linux x86_64
Diffstat (limited to 'sys-fs/mtpfs')
-rw-r--r--sys-fs/mtpfs/ChangeLog10
-rw-r--r--sys-fs/mtpfs/Manifest17
-rw-r--r--sys-fs/mtpfs/files/mtpfs-0.9-overflow.patch16
-rw-r--r--sys-fs/mtpfs/metadata.xml14
-rw-r--r--sys-fs/mtpfs/mtpfs-0.9.ebuild46
5 files changed, 103 insertions, 0 deletions
diff --git a/sys-fs/mtpfs/ChangeLog b/sys-fs/mtpfs/ChangeLog
new file mode 100644
index 000000000000..a686e5486d3a
--- /dev/null
+++ b/sys-fs/mtpfs/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-fs/mtpfs
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mtpfs/ChangeLog,v 1.1 2011/06/30 10:16:21 xarthisius Exp $
+
+*mtpfs-0.9 (30 Jun 2011)
+
+ 30 Jun 2011; Kacper Kowalik <xarthisius@gentoo.org> +mtpfs-0.9.ebuild,
+ +files/mtpfs-0.9-overflow.patch, +metadata.xml:
+ Initial import wrt bug 189304, thanks to everyone involved
+
diff --git a/sys-fs/mtpfs/Manifest b/sys-fs/mtpfs/Manifest
new file mode 100644
index 000000000000..c039de68caec
--- /dev/null
+++ b/sys-fs/mtpfs/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX mtpfs-0.9-overflow.patch 534 RMD160 ad4328a966a771f341f19c187cb50e79f10f2b9b SHA1 f4008444499302db5b8d5deba163320d5220ae5e SHA256 f1ad8f1bca88b3e37040b2e20997b763059c937e90c2bfc9088d4a0ba7a07420
+DIST mtpfs_0.9.orig.tar.gz 95100 RMD160 220b85d3c3c9fba4343707d0f923c5e7e08636e2 SHA1 fc4bd7efb8d7cb09dc0d46aa5e9061bdcfb6975c SHA256 ead194b5d130f9a45fcd99b186f38e98b365c9fe505e9676921c1ca75b2cf837
+EBUILD mtpfs-0.9.ebuild 1073 RMD160 983943fd22317eac6e0229fb2899b05389731024 SHA1 b9269f3c38ddb254c710b5442869b97e56dc5baa SHA256 bdc245104bf48aeae4103040b88f66e25752e61a760260242c9df3bf0ce8e5ac
+MISC ChangeLog 412 RMD160 7e6f52b83fa9b82a942a6fa2c10ec14a2c9483a9 SHA1 c9e4018d165ab70bc283c8c6b04a48d48cbc8d0c SHA256 c6c12273a240224f908e8b79f6080c05b7f8dcdb3cf60e5bee8e0326e9c747ed
+MISC metadata.xml 503 RMD160 009fe60edce39c258415901c14ee9424dc9b7c31 SHA1 aec2bce69377ea1c778c59abac0407e9e12dc2c7 SHA256 b3857adb1f20deeb26cc9f864d34a90a02fece8e2c36d790953078276574bd6b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iJwEAQEIAAYFAk4MTP4ACgkQIiMqcbOVdxTC+QP/ZyEhUfeQki26A1pirkEqrVQj
+upXdrAXHzi47ve8LMJCeovQoFcUCAEbDvXstLt/eLHWfBXD99gNTaRDRTf6GGCAd
+Cj0RiFzsAOqpXM+zqu3UVh+qvvfoaJCS0qhBn+ziCa/Oy3NP4D0AmZB8mRevPqdX
+Bd+iik1mR0eEywCfG9A=
+=/shk
+-----END PGP SIGNATURE-----
diff --git a/sys-fs/mtpfs/files/mtpfs-0.9-overflow.patch b/sys-fs/mtpfs/files/mtpfs-0.9-overflow.patch
new file mode 100644
index 000000000000..dfc5e1576b24
--- /dev/null
+++ b/sys-fs/mtpfs/files/mtpfs-0.9-overflow.patch
@@ -0,0 +1,16 @@
+Prevent possible overflow of destination buffer, as
+strncat appends the first num characters of source
+to destination, _plus_ a terminating null-character.
+
+Patch written by Kacper Kowalik <xarthisius@gentoo.org>
+--- a/id3read.c
++++ b/id3read.c
+@@ -269,7 +269,7 @@
+ if (strlen (trackstr) == 1) {
+ strcat (trackno, "0");
+ }
+- strncat (trackno, trackstr, sizeof (trackno));
++ strncat (trackno, trackstr, sizeof (trackno)-1);
+ g_free (trackstr);
+ g_free (posstr);
+ } else {
diff --git a/sys-fs/mtpfs/metadata.xml b/sys-fs/mtpfs/metadata.xml
new file mode 100644
index 000000000000..fa496483d762
--- /dev/null
+++ b/sys-fs/mtpfs/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>xarthisius@gentoo.org</email>
+ <name>Kacper Kowalik</name>
+ </maintainer>
+ <longdescription>
+ MTPfs is a FUSE filesystem that supports reading and writing from any
+ MTP device, as supported by libmtp. MTPfs includes extra features such
+ as playlist and meta information support for MP3 players.
+ </longdescription>
+</pkgmetadata>
diff --git a/sys-fs/mtpfs/mtpfs-0.9.ebuild b/sys-fs/mtpfs/mtpfs-0.9.ebuild
new file mode 100644
index 000000000000..03395eb4c700
--- /dev/null
+++ b/sys-fs/mtpfs/mtpfs-0.9.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mtpfs/mtpfs-0.9.ebuild,v 1.1 2011/06/30 10:16:21 xarthisius Exp $
+
+EAPI=4
+
+inherit base
+
+DESCRIPTION="A FUSE filesystem providing access to MTP devices"
+HOMEPAGE="http://www.adebenham.com/mtpfs/"
+SRC_URI="http://www.adebenham.com/debian/${P/-/_}.orig.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="dev-libs/glib:2
+ media-libs/libid3tag
+ media-libs/libmad
+ media-libs/libmtp
+ sys-fs/fuse"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}.orig
+
+PATCHES=( "${FILESDIR}"/${P}-overflow.patch )
+DOCS=(AUTHORS NEWS README)
+
+src_configure() {
+ econf $(use_enable debug)
+}
+
+pkg_postinst() {
+ einfo "To mount your MTP device, issue:"
+ einfo " /usr/bin/mtpfs <mountpoint>"
+ echo
+ einfo "To unmount your MTP device, issue:"
+ einfo " /usr/bin/fusermount -u <mountpoint>"
+
+ if use debug; then
+ echo
+ einfo "You have enabled debugging output."
+ einfo "Please make sure you run mtpfs with the -d flag."
+ fi
+}