diff options
Diffstat (limited to 'app-misc/rioutil')
-rw-r--r-- | app-misc/rioutil/Manifest | 7 | ||||
-rw-r--r-- | app-misc/rioutil/files/75-rio.rules | 38 | ||||
-rw-r--r-- | app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch | 15 | ||||
-rw-r--r-- | app-misc/rioutil/metadata.xml | 8 | ||||
-rw-r--r-- | app-misc/rioutil/rioutil-1.5.0-r2.ebuild | 34 |
5 files changed, 102 insertions, 0 deletions
diff --git a/app-misc/rioutil/Manifest b/app-misc/rioutil/Manifest new file mode 100644 index 000000000000..9608839b2cd9 --- /dev/null +++ b/app-misc/rioutil/Manifest @@ -0,0 +1,7 @@ +AUX 75-rio.rules 1452 SHA256 43f50ee1aa1af9e603278bf72557581cb59226af6e84473a43315c73e724b479 SHA512 e9d953045cf4b587eb19f95ef0f429fefb1919d335662455e62334331c99ede3304952e18c52d41f0051eedd4f8148c469c75db9600c70ba954281620f760a65 WHIRLPOOL b0aef602739c93ed1fb2df7e5c30da410e67ebc5bc302ffaa05bd676296a6d596301f5c3410daeaeea2126e4b8bc050ffe53ed5df3ad2b151d1ca125a51ea735 +AUX rioutil-1.5.0-buffer-overflow.patch 515 SHA256 4dc93722ca35ece7bfff4cb472972a0a9a4d50c7847ea7c60ee2a053398e476b SHA512 6face8d7dba4f34034683a1a2bcf01c18b4feb104da2b9e15ecb57e2fc26717e4f952bd03ebdbabb92b0c63c540ca0a29f637879533dc964817744972d48edc2 WHIRLPOOL 04c03a6c172952837fd19a63425ce8f7fcd6d2834bd8df4a0c59e3d0349179b62ff30540ac9fc080ee20eef4c8e0699e7238e3622f0c0f31886468aef83d54d2 +DIST rioutil-1.5.0.tar.gz 401244 SHA256 4991cda30bcd0cd01097c4d220c5facf67e988d4bbfc2f272a359ac89d52e9a7 SHA512 3e3bf1c053e2f0146c504c5015e33cd3281daad136f41d82100d6181b6720c7f1131615c663f821573d7aeb077efc1b59e8e23a8f15a851e332ad61ea0479f1d WHIRLPOOL dbf9a1d4164dd2987e856f534a26230a57daced5c9a6f465652b16cdca94832a06514ff753c2ae5af2a5cc27d487ec1de6e143b1854b1207f1d81dd2d8f2d486 +EBUILD rioutil-1.5.0-r2.ebuild 775 SHA256 754f189bf77509c73de5aff5d99c4a9d052c67ada0b99c400fcbfdc84a3c29ca SHA512 4ddfbc0dc5a778630e3ee61343a4c9c5dc102e7ea8d46ff5575930761f41d82240e1035209e9cf9ee54d3650c2b790b58b0f9946b9d6695bbb5607f848c57134 WHIRLPOOL a31ac39147d6646724403af508230396e01f8a55a8fd52f14b4d0f4d51d42b5b49ff52c2f43e9e1b3d43fc94d1191cfa8a594e242c86a44d736309fb53c94a02 +MISC ChangeLog 2595 SHA256 9ab1012f24f80a6b41323a657e17199bc33b655f95529e2c262396dda9b8370b SHA512 6648f2c7cc1af46b14dbabd40eae5a1fe16de70d0a81e4229f58100eeb6a5c6ace45775db869157f6fb469a94615ccd7b43edcd4aaaca27366e8f349f80af792 WHIRLPOOL b25b5b01cbfd7841509b6e852818a8dcb249e291f0ff3ada849ed28ac7c7ee8e9127a4b7dbf54ac58a67a3d251f90a31beac98a1e6ccb66aa0a3edbaef6b4007 +MISC ChangeLog-2015 4830 SHA256 0dcd8b510ec8a8c3f493b2bd683934c68a9ff3757d9d6d03ce36695738260f18 SHA512 a7fdc80169f7962b03804fb143293b9d664467e7cda4454d904e5c06b47527b61794bd366842812eb5e88fe6a18ddbbc20dd696b5e884e614112b603db3c7c01 WHIRLPOOL 88dfac7f58a3c87a53fdb81528161b5e2ab13af580da67202755abeccecda669fe8fab5026acb7c2e3c8eb4e0375fbb9c63e2719b54d8ae5ef5b6a765b00f754 +MISC metadata.xml 244 SHA256 7626fc648ea82c668efad87086440a927c46104c50939c4b57b973c415518368 SHA512 01c88fac77882b2f5dce193f24b996f60601ef47bce8a95b29002be2477e45cbc5ee0b702c98d9b34583d488fd0a7c7cdc90648fa36e23826989a875c0e6ca77 WHIRLPOOL a34b332914e7e2ec0e1804b7de4a9d1976a8512d3ded06eeea41b168473809c8f66afcff0b7655e80e6b1451269288fd0b6a01957bb8cec86516115227989b3b diff --git a/app-misc/rioutil/files/75-rio.rules b/app-misc/rioutil/files/75-rio.rules new file mode 100644 index 000000000000..610131a7dbe2 --- /dev/null +++ b/app-misc/rioutil/files/75-rio.rules @@ -0,0 +1,38 @@ +ACTION!="add", GOTO="rio_rules_end" +SUBSYSTEM!="usb|usb_device", GOTO="rio_rules_end" + +# Diamond flash players +# Rio 600 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5001", MODE="0660", GROUP="usb" +# Rio 800 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5002", MODE="0660", GROUP="usb" +# Nike psa[play +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5003", MODE="0660", GROUP="usb" +# Rio S10 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5005", MODE="0660", GROUP="usb" +# Rio S50 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5006", MODE="0660", GROUP="usb" +# Rio S35 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5007", MODE="0660", GROUP="usb" +# Rio 900 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5008", MODE="0660", GROUP="usb" +# Rio S30 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5009", MODE="0660", GROUP="usb" +# Fuse +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="500d", MODE="0660", GROUP="usb" +# Chiba +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="500e", MODE="0660", GROUP="usb" +# Cali +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="500f", MODE="0660", GROUP="usb" +# Cali256 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="503f", MODE="0660", GROUP="usb" +# Rio S11 +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5010", MODE="0660", GROUP="usb" + +# Diamond hard drive players +# Rio Riot +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5202", MODE="0660", GROUP="usb" +# Nitrus +ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5220", MODE="0660", GROUP="usb" + +LABEL="rio_rules_end" diff --git a/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch b/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch new file mode 100644 index 000000000000..1739a146c485 --- /dev/null +++ b/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch @@ -0,0 +1,15 @@ +flist->genre is defined as 'char genre[17]' so don't copy 22 into it + +Patch by Kevin McCarthy <signals42@gmail.com> + +--- librioutil/file_list.c ++++ librioutil/file_list.c +@@ -241,7 +241,7 @@ + strncpy(flist->title, info.data->title, 64); + strncpy(flist->album, info.data->album, 64); + strncpy(flist->name, info.data->name, 64); +- strncpy(flist->genre, (char *)info.data->genre2, 22); ++ strncpy(flist->genre, (char *)info.data->genre2, 17); + + strncpy(flist->year, (char *)info.data->year2, 4); + diff --git a/app-misc/rioutil/metadata.xml b/app-misc/rioutil/metadata.xml new file mode 100644 index 000000000000..531ee91f3d40 --- /dev/null +++ b/app-misc/rioutil/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">rioutil</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/rioutil/rioutil-1.5.0-r2.ebuild b/app-misc/rioutil/rioutil-1.5.0-r2.ebuild new file mode 100644 index 000000000000..0250aa42cf18 --- /dev/null +++ b/app-misc/rioutil/rioutil-1.5.0-r2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +inherit multilib eutils + +DESCRIPTION="Tool for transfering mp3s to and from a Rio 600, 800, Riot, and Nike PSA/Play" +HOMEPAGE="http://rioutil.sourceforge.net/" +SRC_URI="mirror://sourceforge/rioutil/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +RDEPEND="virtual/libusb:0" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-buffer-overflow.patch +} + +src_configure() { + econf --disable-static +} + +src_install() { + emake DESTDIR="${D}" libdir="/usr/$(get_libdir)" install + find "${ED}" -name '*.la' -exec rm -f {} + + dodoc AUTHORS ChangeLog NEWS README TODO + + insinto /lib/udev/rules.d + doins "${FILESDIR}"/75-rio.rules +} |