summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Prugh <ken69267@gentoo.org>2010-04-21 17:07:45 +0000
committerKenneth Prugh <ken69267@gentoo.org>2010-04-21 17:07:45 +0000
commiteb7e21be68202dc07cbe864927b3820514ba79bd (patch)
tree5fb7124f46e4ca63ed6a1f29246d13c4393b0639 /media-libs/libmtp
parentBug #316369: install iptables-apply util as well. (diff)
downloadgentoo-2-eb7e21be68202dc07cbe864927b3820514ba79bd.tar.gz
gentoo-2-eb7e21be68202dc07cbe864927b3820514ba79bd.tar.bz2
gentoo-2-eb7e21be68202dc07cbe864927b3820514ba79bd.zip
Fix device permissions - bug #288736
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libmtp')
-rw-r--r--media-libs/libmtp/ChangeLog7
-rw-r--r--media-libs/libmtp/libmtp-1.0.2-r1.ebuild47
2 files changed, 53 insertions, 1 deletions
diff --git a/media-libs/libmtp/ChangeLog b/media-libs/libmtp/ChangeLog
index 18c1e6f864e2..fc5c597157fe 100644
--- a/media-libs/libmtp/ChangeLog
+++ b/media-libs/libmtp/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-libs/libmtp
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/ChangeLog,v 1.76 2010/02/22 23:23:17 ken69267 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/ChangeLog,v 1.77 2010/04/21 17:07:45 ken69267 Exp $
+
+*libmtp-1.0.2-r1 (21 Apr 2010)
+
+ 21 Apr 2010; Kenneth Prugh <ken69267@gentoo.org> +libmtp-1.0.2-r1.ebuild:
+ Fix device permissions - bug #288736
*libmtp-1.0.2 (22 Feb 2010)
diff --git a/media-libs/libmtp/libmtp-1.0.2-r1.ebuild b/media-libs/libmtp/libmtp-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..98b5539c6cba
--- /dev/null
+++ b/media-libs/libmtp/libmtp-1.0.2-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmtp/libmtp-1.0.2-r1.ebuild,v 1.1 2010/04/21 17:07:45 ken69267 Exp $
+
+EAPI=2
+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 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc examples static-libs"
+
+RDEPEND="virtual/libusb:0"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ sys-apps/findutils"
+
+src_prepare() {
+ # Fix device permissions
+ sed -i -e "s:666:660:" examples/hotplug.c || die "sed failed"
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ rm -f $(find "${D}" -name '*.la')
+ dodoc AUTHORS ChangeLog README TODO || die "dodoc failed"
+
+ insinto /etc/udev/rules.d
+ newins libmtp.rules 65-mtp.rules
+
+ insinto /usr/share/hal/fdi/information/20thirdparty
+ newins libmtp.fdi 10-libmtp.fdi
+
+ if use examples; then
+ docinto examples
+ dodoc examples/*.{c,h,sh}
+ fi
+}