diff options
author | Thomas Cort <tcort@gentoo.org> | 2006-09-02 05:48:20 +0000 |
---|---|---|
committer | Thomas Cort <tcort@gentoo.org> | 2006-09-02 05:48:20 +0000 |
commit | e3c82aaa9b83cfb91a0c305e401d2ffcf49bc78d (patch) | |
tree | d53b6369fa08e84ab0f6e0155ae5a11e1108c039 /media-libs/libmtp | |
parent | new foo2zjs_devices.desc (diff) | |
download | gentoo-2-e3c82aaa9b83cfb91a0c305e401d2ffcf49bc78d.tar.gz gentoo-2-e3c82aaa9b83cfb91a0c305e401d2ffcf49bc78d.tar.bz2 gentoo-2-e3c82aaa9b83cfb91a0c305e401d2ffcf49bc78d.zip |
Add udev permissions patch wrt Bug #144010.
(Portage version: 2.1-r2)
Diffstat (limited to 'media-libs/libmtp')
-rw-r--r-- | media-libs/libmtp/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libmtp/files/digest-libmtp-0.0.16-r1 | 3 | ||||
-rw-r--r-- | media-libs/libmtp/files/libmtp-0.0.16-udev_perm.patch | 12 | ||||
-rw-r--r-- | media-libs/libmtp/libmtp-0.0.16-r1.ebuild | 45 |
4 files changed, 67 insertions, 1 deletions
diff --git a/media-libs/libmtp/ChangeLog b/media-libs/libmtp/ChangeLog index 7dcddc38a5f8..e9b777f49165 100644 --- a/media-libs/libmtp/ChangeLog +++ b/media-libs/libmtp/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/libmtp # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/ChangeLog,v 1.1 2006/08/31 19:29:20 tcort Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/ChangeLog,v 1.2 2006/09/02 05:48:20 tcort Exp $ + +*libmtp-0.0.16-r1 (02 Sep 2006) + + 02 Sep 2006; Thomas Cort <tcort@gentoo.org> + +files/libmtp-0.0.16-udev_perm.patch, +libmtp-0.0.16-r1.ebuild: + Add udev permissions patch wrt Bug #144010. *libmtp-0.0.16 (31 Aug 2006) diff --git a/media-libs/libmtp/files/digest-libmtp-0.0.16-r1 b/media-libs/libmtp/files/digest-libmtp-0.0.16-r1 new file mode 100644 index 000000000000..43587de8f64f --- /dev/null +++ b/media-libs/libmtp/files/digest-libmtp-0.0.16-r1 @@ -0,0 +1,3 @@ +MD5 c98073c5dd226ec74c58be216a0cbb25 libmtp-0.0.16.tar.gz 442241 +RMD160 6cf1dd50eb2e5a459ad9edc9da9226d6121c944a libmtp-0.0.16.tar.gz 442241 +SHA256 20dd1f12cff5b57f948c70e9ff3d2bdd8b3826f176516aa98d5361850bd73b79 libmtp-0.0.16.tar.gz 442241 diff --git a/media-libs/libmtp/files/libmtp-0.0.16-udev_perm.patch b/media-libs/libmtp/files/libmtp-0.0.16-udev_perm.patch new file mode 100644 index 000000000000..844bcc60ee5d --- /dev/null +++ b/media-libs/libmtp/files/libmtp-0.0.16-udev_perm.patch @@ -0,0 +1,12 @@ +diff -urN libmtp-0.0.16.orig/examples/hotplug.c libmtp-0.0.16/examples/hotplug.c +--- libmtp-0.0.16.orig/examples/hotplug.c 2006-09-02 01:38:32.000000000 -0400 ++++ libmtp-0.0.16/examples/hotplug.c 2006-09-02 01:39:07.000000000 -0400 +@@ -23,7 +23,7 @@ + extern int optind; + extern char *optarg; + char *udev_action = NULL; +- char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", MODE=\"666\""; ++ char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", GROUP=\"plugdev\", MODE=\"660\""; + + while ( (opt = getopt(argc, argv, "ua:")) != -1 ) { + switch (opt) { diff --git a/media-libs/libmtp/libmtp-0.0.16-r1.ebuild b/media-libs/libmtp/libmtp-0.0.16-r1.ebuild new file mode 100644 index 000000000000..5c49e022f04d --- /dev/null +++ b/media-libs/libmtp/libmtp-0.0.16-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/libmtp-0.0.16-r1.ebuild,v 1.1 2006/09/02 05:48:20 tcort Exp $ + +inherit eutils + +DESCRIPTION="An implementation of Microsoft's Media Transfer Protocol (MTP)." +HOMEPAGE="http://libmtp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +RDEPEND=">=dev-libs/libusb-0.1.7 + sys-libs/ncurses + sys-libs/zlib" + +DEPEND="doc? ( app-doc/doxygen ) + ${RDEPEND}" + +src_unpack() { + unpack "${A}" + cd "${S}" + epatch "${FILESDIR}"/${P}-udev_perm.patch +} + +src_compile() { + econf --enable-hotplugging || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog README TODO + + insinto /etc/udev/rules.d + newins libmtp.rules 65-mtp.rules + + if use examples ; then + docinto examples + dodoc examples/*.{c,h} + fi +} |